带按钮的LightSwitch开启表格 [英] LightSwitch Opening Form with Button
问题描述
您好。我似乎无法在LightSwitch 2010 Beta 2中做一个简单的操作。我有2个表(儿童和学校)和2个新数据表单。他们都工作得很好,关系也很有效。我现在想用一个按钮打开儿童表格中的学校表格。
Buttone工作(用showmessage测试)但我用什么代码打开表单(openmodalwindow似乎没有工作)。
Hi. I don't seem to be able to do a simple action in LightSwitch 2010 Beta 2. I have 2 tables (children and schools) and 2 new data forms. They all work fine and the relations work. I now want to open the schools form from the children form with a button. Buttone works (tested with a showmessage) but what code do I use to open the form (openmodalwindow does not seem to be working).
感谢加载! : - )
Thanks loads! :-)
推荐答案
您可以使用Application.ShowMyScreenName方法打开屏幕。在您的示例中,"ChildrenDetail"屏幕中的代码如下所示:
You can use the Application.ShowMyScreenName methods to open screens. In your example, the code from 'ChildrenDetail' screen will look like this:
Me.Application.ShowSchoolDetail(Me.Child.School.Id)
这篇关于带按钮的LightSwitch开启表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!