LightSwitch: Passing data from one screen to another

谁说我不能喝 提交于 2020-01-05 06:53:25

问题


Is it possible to pass one information from one screen to another?

This is my Main screen:

And I want to add one of the users into where "Leiter" is written.

Some idea how to manage it? Oh yeah, the data is coming from SharePoint...


回答1:


In your List Detail, you need to create a Data Item to store the User Name. In the Properties for that Data Item, you then need to check "Is Parameter".

When you call your second screen from the code in your SearchUserInformationLists screen, you pass the value of that Data Item to it.

this.Application.ShowZeiterfassungsListDetail(this.MyUserName);

The screen Parameters should be the first items in your list of Data Items on the left of the Screen Designer. You can pass more than one parameter and the order that you pass them in is the order in which they are listed in your Data Item list.

this.Application.ShowZeiterfassungsListDetail(this.Param1, this.Param2, this.Param3);



来源:https://stackoverflow.com/questions/15269515/lightswitch-passing-data-from-one-screen-to-another

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!