3

I need to get a value of a text box which is the parent screen in the ListDetails screen.

The parent screen gives me a list of users and the child (details) screen gives me a list of permissions associated with that user. When I add a new permission, I need the userId field (in the add new screen) to have the userId of the current user.

Diego Mijelshon
  • 52,548
  • 16
  • 116
  • 154
rizalp1
  • 6,346
  • 2
  • 17
  • 19

1 Answers1

2

Instead of referring to the parent screen add a parameter to the child screen. As you navigate from the parent screen to the child screen LightSwitch requires the parameter (e.g. userId) to show the screen. The value is then available on the child screen.

In the link below 'stateName' is passed to the child screen and used to run a query

http://www.c-sharpcorner.com/UploadFile/dbd951/8044/

Robin
  • 146
  • 4