ibm-mobilefirst

i want to call a java class from the worklight adapter

匆匆过客 提交于 2019-11-27 08:47:48
问题 i have followed this document module 5.5 in this url "http://www.ibm.com/developerworks/mobile/worklight/getting-started.html#authentication" or ftp://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v505/Module_05_5_-_Using_Java_in_Adapters.pdf and did the same my code structure is server/java folder name com.worklight.custonmode package name loginfunction.java java file inside com.worklight.custonmode package login java method in class loginfunction and i have called from the

IBM Worklight JSONStore | Remove Document from Collection and erase it from memory

心已入冬 提交于 2019-11-27 08:44:05
问题 I have been trying to erase all document from collection and memory before adding new one. I tried it by following methods 1. WL.JSONStore.get("users").findAll().then(function (arrayResults){ var options={push:true}; if(arrayResults.length>0){ for(var i=1;i<=arrayResults.length;i++){ WL.JSONStore.get("users").remove(i,options); } } }); 2. WL.JSONStore.get("users").findAll().then(function (arrayResults){ var options={}; if(arrayResults.length>0){ for(var i=1;i<=arrayResults.length;i++){ WL

use resultset returned by WL.Server.invokeSQLStatement within sql adapter procedure

别来无恙 提交于 2019-11-27 08:29:01
问题 I want to use the resultSet returned by invoking a SQL statement through WL.Server.invokeSQLStatement statement in a SQL adapter procedure within the procedure itself. I have tried the way we generally do by using result.invocationResult.resultSet[variable].Property inside the SQL adapter procedure, but it doesn't works. HTML <div data-role="page" id="mainPage"> <div data-role="header">search medicine</div> <br> <hr> <div data-role="content"> <input type="text" value="MEDICINE" id="medicine">

Making web service calls to a HTTPS server from Worklight Adapter - javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

做~自己de王妃 提交于 2019-11-27 08:12:14
问题 I am trying to hit a REST based HTTPS service from my adapter and my .xml file looks like this, <connectionPolicy xsi:type="http:HTTPConnectionPolicyType"> <protocol>https</protocol> <domain>myco.company.com</domain> <port>443</port> <!-- Following properties used by adapter's key manager for choosing specific certificate from key store <sslCertificateAlias></sslCertificateAlias> <sslCertificatePassword></sslCertificatePassword> --> </connectionPolicy> <loadConstraints

Worklight Development Server does not start

你说的曾经没有我的故事 提交于 2019-11-27 07:36:44
问题 I am trying to follow the Getting Started section for Worklight on developerWorks. I have installed Worklight Studio 6.1 Consumer Edition (instead of Development Edition) into Eclipse 4.3.2. I did the basic creation of an app and tried to run it. However, the Worklight Development Server that was automatically created for me will not start. I deleted the app to see if I could get it to start but it still fails. The error message is: [ERROR ] CWWKZ0005E: The application _MobileBrowserSimulator

IBM Worklight - How to connect to another Worklight Server located in another machine in the same network?

自闭症网瘾萝莉.ら 提交于 2019-11-27 07:28:04
问题 I have setup Worklight Studio in my local Machine and developed a sample application. I need to deploy that application to a Worklight Server set up in another PC in the same network (LAN). 回答1: You already have a server in your local machine - Worklight Studio contains an internal Worklight Server. But that doesn't matter... If you are using Worklight 5.x: Open application-descriptor.xml Find the worklightServerRootURL element Change its value to that of the remote Worklight Server, for

Worklight 5.0.6.1 - System.out.println() logging from Worklight adapter is not working

回眸只為那壹抹淺笑 提交于 2019-11-27 07:26:00
问题 I've installed Worklight 5.0.6.1 and when invoking Java code from my adapter I don't see the log output in the workspace\WorklightServetrHome\project\logs log files. I'm using System.out.println(). Any advice why this worked successfully in previous releases of Worklight, and is not working in v5.0.6.1? What the property settings to allow System output from Java code in Worklight that need to be set? FYI: Thinking it might be a bad install I re-installed a second time, and with the same

Worklight core-web-layer.js errors

纵然是瞬间 提交于 2019-11-27 05:41:45
Can someone help me? When I run my Worklight project on Chrome, Firefox or Opera I don't get any errors. But when I run it on IE I get these errors: Error: multipleDefine Error: multipleDefine Error: multipleDefine Error: multipleDefine SCRIPT5002: Function expected core-web-layer.js, line 311 character 160 SCRIPT438: Object doesn't support property or method '_eventHandler' core-web-layer.js, line 165 character 71 When I run it on Android, the Dojo functionality also doesn't work and I get this error: 07-09 13:12:37.817: D/CordovaLog(7180): Error: scriptError 07-09 13:12:37.817: E/Web Console

Insertion of values in database

丶灬走出姿态 提交于 2019-11-27 05:41:13
Hey I am using IBM Worklight V6.2.I want to insert values into database My Html Code is <h1>Please Enter The Car Details</h1> <form > Car No:<input type="number" id="carnum" placeholder="Please enter your no" ><br><br> Details:<input type="text" id= "details" placeholder="Please enter car details" > <br><br> <input type="submit" value="Register" onclick="loadFeeds1()"> </form> My procedure is: var users = WL.Server.createSQLStatement("insert into car(carno,details) values (?,?)"); function getusers(carno,details) { return WL.Server.invokeSQLStatement({ preparedStatement : users, parameters :

Using katzer local notification in IBM Worklight

时光毁灭记忆、已成空白 提交于 2019-11-27 05:40:57
I want to use this cordova plugin at https://github.com/katzer/cordova-plugin-local-notifications How to go about integrating this plugin with my existing IBM Worklight project? I have trying various methods to integrate it without any result. I am getting this error currently from the logcat: 02-24 11:15:03.035: D/CordovaLog(2439): file:///data/data/com.iCareApp/files/www/default/index.html: Line 17 : Uncaught TypeError: Cannot read property 'notification' of undefined Or is there any other easier alternatives to get this done? Basically i want to be able to schedule local notification on the