LS HTML客户端-设置详细信息模式选择器的默认值 [英] LS HTML Client - Setup default value for Details Modal Picker

查看:109
本文介绍了LS HTML客户端-设置详细信息模式选择器的默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



对于所有这些LS,HTML,Java脚本并尝试解决某些问题,我还是一个新手.

我试图在LS Html客户端中为详细信息模式选择器"(即下拉列表)设置默认值.

我实际上尝试遵循以下文章中的概念:http://social.msdn.microsoft.com/Forums/en-US/aa045754-71d1-4068-bbbb-b30df15c2f5d/html-client-preview-2-cascade-选择器问题

在我的屏幕创建方法上,我正在执行以下操作:

Hi,

I am pretty new to all this LS, HTML, java script and trying to resolve something.

I am trying to setup a default value for a Details Modal Picker (i.e. drop down list) in my LS Html Client.

I actually tried to follow the concepts from the following post: http://social.msdn.microsoft.com/Forums/en-US/aa045754-71d1-4068-bbbb-b30df15c2f5d/html-client-preview-2-cascade-pickers-issue

on my Screen created method I am doing the following:

myapp.MyScreen.created =函数(屏幕){

如果(screen.MyObject.Location === null){

screen.MyObject.Location = null;

screen.MyObject_Location.load().then(function(){

screen.MyObject.Location = msls.iterate(screen.MyObject_Location.data).where(函数(项目){

返回item.Name ==="Office";

}).first();

});

} };

myapp.MyScreen.created = function (screen) {

if (screen.MyObject.Location === null) {

screen.MyObject.Location = null;

screen.MyObject_Location.load().then(function () {

screen.MyObject.Location = msls.iterate(screen.MyObject_Location.data).where(function (item) {

return item.Name === "Office";

}).first();

});

}};

推荐答案

您好,Einavt,

Hi Einavt,

我做了类似的事情,发现下面的代码可以工作.当屏幕打开时,它从WR_CARDS实体插入与"Other"相对应的值.记录到WR_CARD1,WR_CARD2和WR_CARD3模态窗口中.

I've done a similar thing and found the code below to work. When the screen opens, it inserts the value from the WR_CARDS entity corresponding to "Other" record into the WR_CARD1, WR_CARD2, and WR_CARD3 modal windows.

问候,金丹尼先生


这篇关于LS HTML客户端-设置详细信息模式选择器的默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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