worklight-adapters

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

巧了我就是萌 提交于 2019-12-18 09:37:14
问题 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. 回答1: What you should do is concatenate the server URL and the image path after you retrieve it from the database. Lets say in

IBM Worklight : WL.Client.getUserName Fails to retrieve userIdentity immediately after authentication

▼魔方 西西 提交于 2019-12-18 07:23:19
问题 I have done adapter based authentication and there is no problem in authentication and it works fine. I have faced some issues in getting the active users useridentity.The code may explain you a bit more adapterAuthRealmChallengeHandler.handleChallenge = function(response){ var authRequired = response.responseJSON.authRequired; if (authRequired == true){ if (response.responseJSON.errorMessage) alert(response.responseJSON.errorMessage); } else if (authRequired == false){

IBM Worklight - How to get OUT parameter when invoking a stored procedure?

老子叫甜甜 提交于 2019-12-17 14:56:14
问题 I want to know is it possible to get OUT parameter when invoking a stored mysql procedure using worklight SQL adapter . For example i have an employee table:- and stored procedure for above table is:- and then i query like this:- It gives the following result :- Which is working fine. But when I invoke same procedure using Worklight SQL adapter instead on query browser like: - WL.Server.invokeSQLStoredProcedure({ procedure : "usp_GetEmployeeName", parameters : [103,"@name"] }); it only return

EventTransmitterPiggybacker.onFailure(EventTransmitterPiggybacker.java:68) when trying to invoke any worklight adapter Android

五迷三道 提交于 2019-12-13 08:03:09
问题 Hey i'm creating android app which using worklight native api but i'm getting this Exception when there is connection error and i don't know how to handle it at com.worklight.location.internal.events.EventTransmitterPiggybacker.onFailure(EventTransmitterPiggybacker.java:68) 09-21 14:09:44.472 20167-20285/cloudappers.com.rta_ca E/AndroidRuntime: at com.worklight.wlclient.WLRequest.processFailureResponse(WLRequest.java:597) 09-21 14:09:44.472 20167-20285/cloudappers.com.rta_ca E/AndroidRuntime:

Issues of migrating Worklight from v6.0 to v6.1

。_饼干妹妹 提交于 2019-12-13 06:01:20
问题 Migrating my project(made up of 3 apps and 2 adapters) from Worklight v6.0 to Worklight v6.1 i'm facing problems over adapters migration. I had already deployed .war, .wlapp and .adapter files in production environment using an Ant script(for .war file). The application server used is Websphere, the dbms server used is Derby. I upgraded the worklight studio's plugin to the latest version, created a new, clean workspace, exported the project from the old workspace and imported in the new one.

userID in getUserNotificationSubscription WORKLIGHT Pushnotification

≯℡__Kan透↙ 提交于 2019-12-13 04:40:03
问题 I am implementing push notification in my IBM worklight project. Sample code in developerworks do it with some authentication challenger mechanism to do the subscription. I somehow used the same Authentication challenge to do the subscription (although my app design doesn't need to do this). In the sample code actual trigger of notification call is not written. I found out from web resource that WL.Server.getUserNotificationSubscription(eventSourceName, userId) need to be used to get the

Worklight, Java SQL Adapter, Adapter deployment failed

可紊 提交于 2019-12-13 04:07:10
问题 Im following Java SQL Adapter tutorial from IBM worklight. When I deployed both RSSAdapter and UserAdapter from sample code, the error console is Adapter deployment failed: The adapter was built with a later version of Java than is used to run the server. Im using JDK version 7. Howerver, I also try to downgrade JDK to verion 6, but it still doesn't work. Image for error 回答1: Try change compilance level. The Java 8 compiler will produce class files in the Java 8 version of the class file

Getting Error from IBM Workilght Server [It is not a function, it is \“object\”.]

核能气质少年 提交于 2019-12-13 03:30:44
问题 Using IBM Worklight version 6.1.0.02-20160314-1430 Implemented AES at adapter with reference to below link. https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/server-side-development/javascript-adapters/using-java-adapters/ Its working fine as expected in Eclipse in my local server. Generated war file and same given deployment for server. From server when I am trying to accessing getting below error response. Below things are crosschecked. Collected war file from server,

IBM Worklight - Sending HTTP POST request from the client side

纵饮孤独 提交于 2019-12-13 02:24:57
问题 I have an application which needs to send an HTTP POST request from the client side to a server every half an hour. The server would then update a database with the parameters sent by the client. My question is how do I initiate a HTTP Post request to the server from the client through Worklight? 回答1: You start by reading the server-side development section of the IBM Worklight Getting Started page: http://www.ibm.com/developerworks/mobile/worklight/getting-started.html#server-side

IBM Worklight SQL adapter for real device

拥有回忆 提交于 2019-12-13 01:23:45
问题 If i use local database, say MySQL, it works perfect on simulator and emulator but for real device, localhost won't do, So i tried online database hosting. When using online hosting from www.freemysqlhosting.net, i had setup the database in my database development perspective in Eclipse using the provided id and password, so it worked well on my simulator, emulator and real device that was connected to the same network as that system on which that database was setup, but for any anonymous