找回密码
 立即注册

QQ登录

只需一步,快速开始

zjc9544

注册会员

1

主题

4

帖子

54

积分

注册会员

积分
54
  • 50

    金币

  • 主题

  • 帖子

最新发帖
zjc9544
注册会员   /  发表于:2015-6-18 09:49  /   查看:6904  /  回复:9
在项目中添加屏幕,屏幕模板为ComponentOne Screen Launcher.创建后直接运行网页无法正常显示.
Home.lsml.js 如下, if判断后,会访问 http://bit.ly/c1ls-nuget  无法预览试用效果.
  1. if (typeof c1ls === "undefined") {
  2.     window.location.href = "http://bit.ly/c1ls-nuget";
  3. }

  4. myapp.Home.ScreenContent_render = function (element, contentItem) {

  5.     var ul = "<ul class='msls-tile-list ui-listview' data-role='listview' data-inset='true'>";
  6.     var liClass = "ui-li ui-btn ui-btn-up-a";
  7.     var divClass = "msls-presenter msls-list-child msls-ctl-group-custom-control msls-vauto msls-hstretch msls-compact-padding msls-presenter-content msls-hscroll";
  8.     var border = "border-left-width:1px; border-right-width:1px; border-top-width:1px; border-bottom-width:1px;";
  9.     var width = "width:254px;";

  10.     var items = [];
  11.     var excluded = ["Screen"];
  12.     excluded.push(contentItem.screen.details.getModel().name);

  13.     $.each(myapp, function (key, value) {
  14.         if (key.slice(0, 4) === "show") {
  15.             var name = key.substring(4);

  16.             if (excluded.indexOf(name) < 0) {
  17.                 myapp[name].prototype.constructor([], undefined);
  18.                 var model = myapp[name].prototype.details.getModel();
  19.                 var display = model.displayName;
  20.                 var tap = " onclick=myapp." + key + "()";
  21.                 var li = "<li title='" + display + "' class='" + liClass + "' data-msls='true' style='" + width + border + "'" + tap + ">";
  22.                 var div = "<div class='" + divClass + "'><span>" + display + "</span></div>" + "</li>";
  23.                 items.push(li + div);
  24.             }
  25.         }
  26.     });

  27.     items.sort();
  28.     ul = ul + items.join("\r\n") + "</ul>";
  29.     $(ul).appendTo($(element));

  30. };
复制代码

9 个回复

倒序浏览
zjc9544
注册会员   /  发表于:2015-6-18 09:53:00
沙发
网页截图见附件.需求高手帮助

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2015-6-18 17:50:00
板凳
回复 2楼zjc9544的帖子

感谢对该问题的反馈。
你的问题我们收到了,测试后给你反馈。
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2015-6-24 11:18:00
地板
回复 2楼zjc9544的帖子

你好。
通过最新版的Studio for LightSwitch HTML(2015v1.48) 并没有重现你的问题。
我按照你提到的步骤进行测试。在执行示例后,能够正确展示帮助文档的链接,比如:http://bit.ly/c1ls-nuget.

对于你的问题,提出如下建议:
1.使用最新版本测试Studio for LightSwitch HTML。
2.如果依然有问题,希望能够分享机器的配置信息,包含OS和VisualStudio细节,我们再帮助你继续分析。
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
zjc9544
注册会员   /  发表于:2015-6-25 14:30:00
5#
回复 4楼Alice的帖子

感谢您的帮助.我现在的问题是.这个试用版会直接展示你所说的那个帮助文档链接.无法达到试用效果.
  1. if (typeof c1ls === &quot;undefined&quot;) {
  2.     window.location.href = &quot;http://bit.ly/c1ls-nuget&quot;;
  3. }
复制代码
我希望能够看见试用效果.才能决定是否购买
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2015-6-25 18:04:00
6#
回复 5楼zjc9544的帖子

很抱歉没有理解您的意思。
你的意思是不想进入http://bit.ly/c1ls-nuget这个页面么?
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
zjc9544
注册会员   /  发表于:2015-6-26 10:07:00
7#
回复 6楼Alice的帖子

lightswitch html客户端的屏幕模板中,每一个屏幕都有这个if条件.都会进入这个http://bit.ly/c1ls-nuget地址.这样我就没法达到预览试用版的效果.按我的理解,不应该每个屏幕都跳转到这个网址吧.我选用了几种附件JT2图片中的屏幕模板,都会出现这个问题
  1. if (typeof c1ls === &quot;undefined&quot;) {
  2.     window.location.href = &quot;http://bit.ly/c1ls-nuget&quot;;
  3. }
复制代码

这个条件验证的是否是有没有购买产品?如果将判断条件注释.会出现附件图片JT中的错误

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2015-6-26 18:30:00
8#
回复 7楼zjc9544的帖子

你的需求我们了解了。
这个问题我需要校验后才能给你回复。
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2015-6-30 09:05:00
9#
回复 7楼zjc9544的帖子

首先,请确保你暗装了&quot;Wijmo for LightSwitch HTML Client&quot; Nuget package,以确保你的应用能够正常的运行不会出现问题, 从而正常显示ComponentOne Screen Launcher screen。

请参考如下的链接:
http://helpcentral.componentone. ... clientlightswitch/#
描述了如何管理LisghtSwitch Html应用的nuget packages。它建议你如何安装&quot;D3 Controls for LightSwitch HTML Client&quot;包。你可以按照同样的步骤安装&quot;Wijmo for LightSwitch HTML Client&quot;包。

一旦你安装了Wijmo for LightSwitch HTML Client包,就可以解决你面临的问题,同时展示ComponentOne Screen Launcher screen.
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2015-7-21 11:43:00
10#
回复 8楼Alice的帖子

请问问题解决了么?
为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢        
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部