ibm-mobilefirst

Cordova resolveLocalFileSystemURL callbacks not fired

瘦欲@ 提交于 2019-12-11 07:53:44
问题 I've been trying to run the following code but the callbacks [ok() and ko()] are not called. Using Worklight 6.2 (Cordova 3.4). function wlCommonInit() { window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, success, fail); window.resolveLocalFileSystemURL(cordova.file.applicationDirectory + "www/index.html", ok, ko); } function ko(e) { alert("NO"); } function ok(fileEntry) { alert("OK"); } On the other hand requestFileSystem callbacks are called regularly. 回答1: The code snippet in the

Worklight :: JSONStore :: How to work with additional search fields

爷,独闯天下 提交于 2019-12-11 07:41:32
问题 I'm using Worklight6.2 and I have a small problem related with JSONStores. I have several on my application to aid me relating to my relational model on a third party database. To properly work with this paradigm I'm trying to use several search indexes to find documents inside my store. Let's say I have a store with this aspect var data = {GUID: 'XPTO-XPTZ-FOO', product_name= 'potatos'} Sometimes I want to access my object by GUID some other times I want to access it by product_name. So I

MobileFirst adapter is not deploying

五迷三道 提交于 2019-12-11 07:17:57
问题 When I try to deploy a MobileFirst adapter to the MobileFirst Development server, eclipse hangs with background process on 66%. At the same time the following is shown in the console: [AUDIT ] CWWKG0016I: Starting server configuration update. [AUDIT ] CWWKG0018I: The server configuration was not updated. No functional changes were detected. When I try to invoke any procedure, eclipse also hangs on 33%. I tried to reinstall eclipse, ADT, and MobileFirst. Immediately after reinstalling

How can i call adapter from another worklight project?

拟墨画扇 提交于 2019-12-11 07:00:08
问题 Is it possible that invoking adapter from separate application? Is there any example for this? 回答1: Do you mean separate application within the same worklight project? Or a different worklight project? If same Worklight project, then yes, the scope of an adapter is on the entire project. If a different project, ideally you would not. However an adapter is still a simple HTTP service that you could potentially call manually. Find the correct URL for your procedure call (see http://pic.dhe.ibm

Need help on table formatting

拜拜、爱过 提交于 2019-12-11 06:54:49
问题 I have the following code in index.html. When this page is executed, a page is displayed with login & logout buttons, when the user clicks on login another page div=AuthBody gets displayed , now when the user provides the credentials and clicks on the login button, it connects to the database and writes the data to the table div element, but the results are not displayed in the same look and feel just like the previous two pages How can i ensure the table results are displayed in the same

IBM Worklight - Unable to fix tabbar to the bottom of the screen

余生长醉 提交于 2019-12-11 06:25:55
问题 I am trying to develop a simple application that has a header and a footer (tab bar) which consist of two labels. Html: <div data-dojo-type="dojox.mobile.View" id="Img1"> <ul data-dojo-type="dojox.mobile.TabBar" fixed="bottom"> <li data-dojo-type="dojox.mobile.TabBarButton" icon="images/Arrow-turn-right-icon.png" data-dojo-props="transition:'flip',dir:'-1',moveTo:Home">Label</li> </ul> </div> When I tried this, the tab bar still appears at the top of the screen. How can i fix that at the

IBM Worklight - How to call a Stored Procedure with the “OUT” parameter?

冷暖自知 提交于 2019-12-11 05:43:14
问题 We using a SQL adapter and I'm getting the below error while invoking the Stored Procedure. we Our database is Oracle 11g. Below is our adapter and procedures. function deals(param) { return WL.Server.invokeSQLStoredProcedure({ procedure : "deals_proc", parameters : [] }); } and the procedure is create or replace procedure deals_proc(c1 out sys_refcursor ) AS begin open c1 for select CATEGORYNAME from DEALS; end deals_proc; and the error 'm getting is { "errors": [ "Runtime: Failed to

Reading local server .json file with mobileFirst javascript adapter

不羁岁月 提交于 2019-12-11 05:35:28
问题 Is there any way that I can read a .json file (located in server) from a javascript http adapter? I tried a lot of methods described in the internet but they don't seem to work because they are made for browser javascript (I get errors like XMLHttpRequest is not defined or activeObject is not defined). for example, I used this but it doesn't work: function readTextFile(file) { var rawFile = new XMLHttpRequest(); rawFile.open("GET", file, false); rawFile.onreadystatechange = function () { if

How can I tell which filesystem Worklight's <app-deployer> is referring to?

て烟熏妆下的殇ゞ 提交于 2019-12-11 04:55:30
问题 We are using Worklight's automated ANT task to deploy a Worklight application. Unfortunately, it's currently failing with this error message: BUILD FAILED /deployment/jenkins/jobs/UAT-uat2-Deploy/workspace/co.uk.homebase.strategic-app/Homebase/ciBuild/buildAndDeployAnt.xml:171: The following error occurred while executing this line: /deployment/jenkins/jobs/UAT-uat2-Deploy/workspace/co.uk.homebase.strategic-app/Homebase/ciBuild/buildAndDeployAnt.xml:186: app-deployer failed:SEVERE:Bad Request

Best practices to maintain different Worklight Studio patch versions

丶灬走出姿态 提交于 2019-12-11 03:34:53
问题 Whenever there is a new update of the worklight studio available in the eclipse market place I install it to get the latest fixes. When I restart eclipse after installing an update, Worklight triggers some kind of process to update my project to the new version. During this process worklight does some black voodoo and updates some files. I suppose that once I commit these files, the entire team should download and install the new update from the eclipse market place? Because it can't be a