LightSwitch:将数据从一个屏幕传递到另一个屏幕 [英] LightSwitch: Passing data from one screen to another

查看:43
本文介绍了LightSwitch:将数据从一个屏幕传递到另一个屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

这是我的主屏幕:

我想将其中一位用户添加到Leiter"所在的位置.

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

知道如何管理它吗?哦,是的,数据来自 SharePoint...

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

推荐答案

在您的列表详细信息中,您需要创建一个数据项来存储用户名.在该数据项的属性中,您需要选中是参数".

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

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

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

这篇关于LightSwitch:将数据从一个屏幕传递到另一个屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆