How can I get string values from parameters sent... RRS feed

  • Question

  • In my LightSwitch project, I am sending the following parameters from one screen to another screen:

    "Me.Application.ShowEditableMilestone_TasksGrid(iProductNumber, iMilestoneID, sMilestone)"

    In the other screen I have a query to accept "iProductNumber" and "iMilestoneID" and the query works fine to populate a LightSwitch EditableGrid.  I would like to get the value of the other parameter "sMilestone" which has some text "This item is Closed" without using a query, etc.  I just want to display this value as a heading somewhere on my screen.

    Is there any other way to pass just general parameters from one screen to another.  Sounds so simple but I can't seem to find a solution. Thank you. 

    Edward Piccoli

    Thursday, November 7, 2013 7:29 PM


  • Hi Edward,

    You should be able to just Add Data Item (button at the top of the screen designer) of type String, name it whatever you want, and then make it a parameter. This becomes a screen property that you can access on your screen how you see fit (i.e. this.MyProperty in C# or Me.MyProperty in VB). You don't necessarily need to use parameters as inputs to queries.


    Senior Program Manager, Visual Studio Community http://www.bethmassi.com http://msdn.com/lightswitch http://dev.office.com

    Friday, November 8, 2013 12:51 AM