ibm-mobilefirst

i want to call a java class from the worklight adapter

旧时模样 提交于 2019-11-28 14:49:32
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 worklight adapter as function loginmodules(username, passwd) { return { result : com.worklight

Android: MobileFirst sending data from Native to cross page

假如想象 提交于 2019-11-28 14:46:29
My Task is as follows: using IBM MobileFirst create a Hybrid app and implement a JS calculator. show date retrieved from native java APIs to the web page. My attempts: I followed Documentations here and implemented the whole Native code onCreate method I found this answer"the first one" illustrating that i should use it on onInitWebFrameworkComplete, Solution provided didn't work I am working with MobileFirst version 7 full sample code is provided Suggestion: should i create the whole action bar in native code then merge it in the cross ui, is that available? I only need to send a petite

Re-route/Divert some WL.Client Adapter Invocation traffic to WL Server through different URL (for PCI payment and security requirements)?

╄→гoц情女王★ 提交于 2019-11-28 14:44:07
Worklight 5.0.6.1 We are having a specific requirement from our client about using a PCI Appliance from Intel ( http://info.intel.com/rs/intel/images/Intel_Expressway_Tokenization_Broker.pdf ) to avoid a PCI Audit for the application and server. Therefore, the Adapter calls that have something to do with payment data would need to go through this hardware appliance before hitting the worklight server. All other adapter calls should go to the worklight server directly (to not overload the appliance). The idea is to have two different URLs but the same worklight server in the background. It is

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

南楼画角 提交于 2019-11-28 14:37:56
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.JSONStore.get("users").erase(i,options); } } }); But didn't get success. Its showing all documents by

Attaching cookie to WorkLight Adapter response header

爱⌒轻易说出口 提交于 2019-11-28 14:37:31
I am developing a mobile app using WorkLight 5.0.6 and I would like to attach a secure cookie to the response returned by an adapter. We are not using a WorkLight Authentication realm because we do not wish to "bind" the session to a specific WL server in a clustered production environment. We authenticate the session by calling a sign-on adapter which authenticates the user details against a back end system. As part of the response from the sign-on adapter call I would like to create a secure cookie (http only) containing the authenticated information and attach it to the response returned

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

久未见 提交于 2019-11-28 14:34:32
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"><hr> <input type="text" value="LOCATION" id="location"><hr> <input type="submit" id="search" value=

How to change between pages using Jquery Mobile in Worklight

可紊 提交于 2019-11-28 14:25:52
Im starting a project from scratch in Worklight. Im using Jquery Mobile and I need to know how Im suppose to do the transition between pages. When I drag and drop a new list view, the following code is generated using Hyperlinks: <ul data-role="listview" id="listview" data-inset="true"> <li data-role="list-divider" id="divider">Divider</li> <li id="listitem"><a href="#">Item</a></li> <li id="listitem0"><a href="#">Item</a></li> <li id="listitem1"><a href="#">Item</a></li> </ul> But if I take into consideration the "building multiple page application" guide, I should not use hyperlinks...How

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

半腔热情 提交于 2019-11-28 13:06:13
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 result. The code prior to, and after the System.out.println() calls is executing correctly so I'm sure the

Worklight Development Server does not start

痞子三分冷 提交于 2019-11-28 13:05:24
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 cannot start because the server is not configured to handle applications of type war. That was the

How can i create local Notification in worklight

橙三吉。 提交于 2019-11-28 12:38:26
问题 I'm creating an app using Worklight. I need to show a Notification at specific time like an alarm clock. It'd work when offline so i cannot use Push Notification. I need Notification like image below. Thanks. 回答1: iOS's Local Notifications feature does not have built-in support in Worklight. One way to add Local Notifications support is by extending your application using a Cordova plug-in, which will allow you to run Native code. This means that you will natively implement it by following