ibm-mobilefirst

How to retrieve images from existing database using sql/http adapter from worklight application

房东的猫 提交于 2019-11-29 16:50:31
I'm having an existing database and i have to show the list of images in my worklight application to user so that they can select and adds to cart. The image column in database is having only path of images at server. i.e "memory/toppings/nuts/hazelnuts.jpg" "memory/toppings/nuts/macadamia_nuts.jpg" so how to get all these images and show on my worklight application. What you should do is concatenate the server URL and the image path after you retrieve it from the database. Lets say in the database I store this: "/uploads/original/6/63935/1570735-master_chief.jpg", so the concatenation would

IBM Worklight - How to retrieve an already-deployed .wlapp file?

梦想的初衷 提交于 2019-11-29 16:29:11
I have an already running Worklight application. We are planning to move to another production cluster tomorrow but I want to get the old .wlapp that is already deployed on the first cluster. How can I get it? I could find a directory on the temp file of the WebSphere application server, but it is in an exploded form. When I zipped one of them and converted it to .wlapp, while the deployment was successfull, I had a Direct Update and the application failed to start... Is it the right path? When you build your application in Worklight Studio, the build produces .wlapp files and stores them in

SESN0008E: A user authenticated as anonymous has attempted to access a session owned by user

♀尐吖头ヾ 提交于 2019-11-29 16:25:45
Environment: MFP 6.3 Studio Windows 7 MFP 6.3 Server (WAS LC) Downloaded the form-based sample from the IBM MobileFirst Platform Developer Center. In MFP 6.3 Studio, the sample runs fine. I then change my build settings and Build All Environment -> get the new wlapp file. I get my war file from the MFP 6.3 Server. Open up and put in the modified authenticationConfig.xml Basically it's just transferring the one snippet from the studio authenticationConfig.xml to the xml file within the WAR file. <customSecurityTest name="DummyAdapter-securityTest"> <test isInternalUserID="true" realm=

IBM Worklight - “Unfortunately, HelloWorkLight has stopped” error message

我怕爱的太早我们不能终老 提交于 2019-11-29 16:24:32
I have created a simple HelloWorld application with the Android environment. When I run it in my android device (ICS version) i get this error message: Unfortunately, HelloWorkLight has stopped When I run it in the Android emulator (version 2.2), I get this error: Sorry! The application HelloWorkLight (process com.HelloWorkLight) has stopped unexpectedly. Please try again. Force Close. I have no idea what to do with this error. You are probably using ADT v22. To resolve this issue: Right-click on the native Android project in Worklight Studio and choose 'Properties'. Select 'Java Build Path'

Worklight Adapter getting pdf file from rest service

核能气质少年 提交于 2019-11-29 15:58:52
I am trying to access to a Rest Service who exposes a pdf file, but I get this response when invoking the procedure: { "errors": [ "Failed to parse the payload from backend (procedure: HttpRequest)" ], "info": [ ], "isSuccessful": false, "responseHeaders": { "Content-Type": "application\/octet-stream; type=\"application\/xop+xml\"; boundary=\"uuid:****************\"; start=\"<pdf>\"; start-info=\"application\/pdf\"", "Date": "Thu, 07 Nov 2013 14:44:54 GMT", "Server": "Apache-Coyote\/1.1", "Transfer-Encoding": "chunked", "X-Powered-By": "Servlet 2.5; **********", "content-disposition":

Creating customized push notification in Worklight

早过忘川 提交于 2019-11-29 15:50:53
is there a way to direct the user to another html page upon opening a push notification? Thank you in advanced. Idan Adar If you will take a look at the sample Worklight project for Push Notifications , you can see the following in common\js\main.js: function pushNotificationReceived(props, payload) { alert("pushNotificationReceived invoked"); alert("props :: " + JSON.stringify(props)); alert("payload :: " + JSON.stringify(payload)); } This function tells the application to display 3 alerts, telling us that: a push notification was received its props its payload Instead of the above, or in

IBM Worklight 5.0.6.1 - Bottom white space in iOS 7

南楼画角 提交于 2019-11-29 15:47:29
As you can see, at the bottom of my page remains a white space. Its height is the same of the old status bar that was present in ios6. Do i have to modify css? Because I never fixed an height for my app, worklight has always chosen the right size. EDIT: you have to save the image and open in a desktop with different color to see the white space at the bottom. * * Licensed Materials - Property of IBM * 5725-G92 (C) Copyright IBM Corp. 2011, 2013. All Rights Reserved. * US Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

WL 5.0.6.1 Android - Direct Update keeps Native/Cordova resources active/in memory (e.g. BusyIndicator) but reference is lost

筅森魡賤 提交于 2019-11-29 15:23:37
We are having a problem when we have the following sequence: App Startup Web Resources start Show a Busy Indicator (1) Connect to WL Server Direct Update gets triggered Web Resources restart Show a Busy Indicator (2) Connect to WL Server Success Load and change to welcome page Hide Busy Indicator (2) This has the effect that in the direct-updated web resources we are (of course) loosing/missing the reference to the busy indicator (1) and we are not able to hide that indicator after the direct update was triggered. So then, we have two indicators (1) (2) open and only one (2) is closed, the old

How to display a Google Map on Worklight App

[亡魂溺海] 提交于 2019-11-29 13:05:36
I have the following files in Worklight. I want to load the map on the worklight app. It is visible in the "Design" view but neither on simulator nor on emulator. Kindly help. //index.html <div id="pagePort"></div> //page1.html <script src="js/page1.js"></script> <div id="content"> <button type="button" onclick="loadPage5();">Click</button> </div> //page1.js function loadPage5() { var pagepath="page5.html"; pagesHistory.push("page1.html"); $("#pagePort").load(pagepath,function(){WL.Logger.info("Page Loaded");}); } //page5.html <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor

With a Worklight Adapter can I change the domain and port for a procedure at runtime?

梦想的初衷 提交于 2019-11-29 12:53:55
I am writing a worklight application and it will be connecting to a variety of backend services which will be decided by the consumer after installation. I would like to use adapters to connect the client to the backend services - but want to avoid editting and updating the adapter for each connecting user. Essentially each customer has a running server I want to connect to - however it will be running on a different port and domain for each customer. I want them to be able to pass those to the adapter to allow a common call to be issued to the customer's backend server. Is there a way that I