IBM Worklight - 如何为App Center客户端应用程序设置默认值? [英] IBM Worklight - How to set default values for the App Center client app?

查看:118
本文介绍了IBM Worklight - 如何为App Center客户端应用程序设置默认值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在WebSphere Liberty配置文件上部署了IBM Worklight Application Center。然后我还在我的移动设备中安装了客户端应用程序。但是,我第一次打开客户端时会询问服务器登录详细信息,例如:用户名,密码,服务器地址,端口,上下文等。

I have deployed IBM Worklight Application Center on WebSphere Liberty profile. I have then also installed the client app in my mobile device. However, the first time I open the client it asks for server login details, such as: username, password, server address, port, context, etc.

我想要知道是否可以使用默认值填充服务器和端口字段。

I would like to know if it is possible to fill the server and port fields with default values.

推荐答案

是的,有可能。你有几种方法可以处理你所要求的东西。

Yes, it is possible. You have several ways to handle what you're asking for.


  1. 既然你也有项目源代码,你可以自定义它。也就是说,更改HTML以便文本字段包含默认值。

  1. Since you also have the project source code, you can customize it. That is, alter the HTML so that the text fields will contain default values.

也可以使用config.json文件自定义这些值 App Center的Worklight项目:

It is also possible to customize these values using a config.json file in the App Center's Worklight project:


url
Application Center服务器的硬编码地址。如果设置了此
属性,则登录视图的地址字段不会显示

url
The hardcoded address of the Application Center server. If this property is set, the address fields of the Login view are not displayed.

defaultPort
如果url属性为null,则此属性
预填充手机上登录视图的端口字段。这是一个
的默认值;该字段可由用户编辑。

defaultPort
If the url property is null, this property prefills the port field of the Login view on a phone. This is a default value; the field can be edited by the user.

defaultContext
如果
url属性为null,则此属性预填充
的上下文字段在手机上的登录视图。这是默认值;该字段可以是用户编辑的

defaultContext
If the url property is null, this property prefills the context field of the Login view on a phone. This is a default value; the field can be edited by the user.


你可以在这里阅读更多内容:

You can read more here:

  • Application Center parent topic @ IBM Worklight Information Center

这篇关于IBM Worklight - 如何为App Center客户端应用程序设置默认值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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