In LightSwitch, how to fill choice list of query parameter from a table

谁说我不能喝 提交于 2019-12-23 19:20:03

问题


In VS LightSwitch, queries can have parameters. When creating a screen, the query parameters are shown on the screen. A choice list can be defined, in which case the field appears as a drop-down-list on the screen.

Instead of defining a static choice list, how can I read the choice list from a table?


回答1:


I've found the answer to my question here: http://social.msdn.microsoft.com/Forums/en-US/lightswitch/thread/c69f23bd-4ccb-4bbf-847f-dc01e0baef07

No, a choice list is a static list of data. If you want a dynamic list of data, you should create a table and add a relationship to it from wherever you need it. That will allow you to dynamically filter it through queries, for example.



来源:https://stackoverflow.com/questions/10064263/in-lightswitch-how-to-fill-choice-list-of-query-parameter-from-a-table

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