LightSwitch:将数据从一个屏幕传递到另一个屏幕

时间:2021-12-07 13:53:56

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

是否可能将一个信息从一个屏幕传递到另一个屏幕?

This is my Main screen:

这是我的主屏幕:

LightSwitch:将数据从一个屏幕传递到另一个屏幕

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

我想把其中一个用户添加到写Leiter的地方。

LightSwitch:将数据从一个屏幕传递到另一个屏幕

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

有什么办法吗?是的,数据来自SharePoint。

1 个解决方案

#1


3  

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".

在列表细节中,需要创建一个数据项来存储用户名。在该数据项的属性中,您需要检查“Is参数”。

LightSwitch:将数据从一个屏幕传递到另一个屏幕

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

当您从searchuserinformationlist屏幕中的代码调用第二个屏幕时,您将该数据项的值传递给它。

this.Application.ShowZeiterfassungsListDetail(this.MyUserName);

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);

this.Application.ShowZeiterfassungsListDetail(这一点。Param1,这。Param2 this.Param3);

#1


3  

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".

在列表细节中,需要创建一个数据项来存储用户名。在该数据项的属性中,您需要检查“Is参数”。

LightSwitch:将数据从一个屏幕传递到另一个屏幕

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

当您从searchuserinformationlist屏幕中的代码调用第二个屏幕时,您将该数据项的值传递给它。

this.Application.ShowZeiterfassungsListDetail(this.MyUserName);

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);

this.Application.ShowZeiterfassungsListDetail(这一点。Param1,这。Param2 this.Param3);