ibm-mobilefirst

Invoking http adapter procedure failure

北战南征 提交于 2019-12-12 02:58:39
问题 I'm trying to send some values to a web server and it is going to respond with true or false using http adapter in ibm mobilefirst. When i invoke the procedure from the environment, i got this error: { "errors": [ "Runtime: Http request failed: java.net.UnknownHostException: mfpreader.comze.com\/" ], "info": [ ], "isSuccessful": false, "warnings": [ ] } Here is the link i'm using: http://mfpreader.comze.com/login.php?username=kevin&password=pass The server is working. LoginAdapter.xml

worklight 5.0.6 JsonRestStore, use of Promises

旧时模样 提交于 2019-12-12 02:54:43
问题 This was originally a question about the Worklight documentation, it transpires that my real question is about JQuery's Deferred/Promise API and the promise.then() function. Context: The documentation for the 5.0.6 JsonRestStore API gives examples of using the new Promise capability offering two possible formulations. someFunction.then( successCallback, errorCallback, optionalProgressCallback); And someFunction().then(successCallback).fail(errorCallback) These two approaches seem, as comments

Analytics tab empty in Worklight Console

允我心安 提交于 2019-12-12 02:52:19
问题 I've added an analytics server (Linux, accessible from the http:///iwap/worklight/v1/index.html) to use with my Worklight 6 server, but, the "Analytics" tab is now displaying, but, is empty. The changed the wl.analytics.url under the war configuration for "Environment entries for web modules" and restarted the app. The Worklight V6 Information Center (under "Installing and configuring the IBM Websphere Analytics PLatform"|"Configuring Worklight Server for analytics") says to use the format

IBM Worklight 6.0 - “project not initialized” error

不想你离开。 提交于 2019-12-12 02:50:02
问题 The following is my setup: WebSphere Application Server v8.0 express Edition IBM DB2 10.1 Server Edition IBM Worklight Server Consumer Edition v6.0 Worklight Studio v6.0 Consumer edition Eclipse plug-in JDK 1.7 To perform installation task i followed the IBM Worklight v6.0.0 infocenter "Installing & Configuring" section. After Deploying app on the Application Server when i am accessing app using localhost:9080/Hello/console it shows the error of "Worklight Project not initialized". Thanks,

Session is not persistence between adapter and java class (servlet) in mobilefirst server/websphere application server

断了今生、忘了曾经 提交于 2019-12-12 02:44:52
问题 I am working on mobilefirst 7.1 application which is deployed on websphere application server - network deployment.Earlier version this application is working on worklight 6.1 and everything is working fine. As per code, we are setting an attribute in session within adapter and try to access it from java class (servlet) which is part of the application and exposed as servlet using configuration in web.xml file. My worklight properties configuration : mfp.session.independent=false mfp

IBM Worklight 6.1 - Cordova plug-in not getting executed

会有一股神秘感。 提交于 2019-12-12 02:43:31
问题 I am trying to create a Cordova Plugin using IBM Worklight. I followed the instructions mentioned in the IBM Worklight Getting Started page, but while checking trying it on a device I get the following: 02-13 17:58:15.182: D/PluginManager(21057): exec() call to unknown plugin: SamPlugin I added the plugin in Config.xml as follows: <plugin name="SamPlugin" value="com.samapp.plugins.samplugin.SamPlugin"/> and then, i called the plugin from my JavaScript file as follows: cordova.exec(success

CRUD Operation in JSONStore using MobileFirst Platform 7.1

柔情痞子 提交于 2019-12-12 02:41:07
问题 I'm new to MFP and I'm trying to perform a basic CRUD operation. Nothing is happening after the following code is executed. I will highly appreciate if i can get some help. Thank you. main.js function wlCommonInit () { var collections = { people : { searchFields: {name: 'string', age: 'integer'} } }; WL.JSONStore.init(collections).then(function (collections) { // handle success - collection.people (people's collection) }).fail(function (error) { alert("alert" + error); // handle failure });

IBM MobileFirst Quality Assurance - MQA Not Defined

别来无恙 提交于 2019-12-12 02:40:28
问题 I am getting the following error in my index.js: Uncaught ReferenceError: MQA is not defined I have the following code in my index.js file: MQA.startNewSession({ //Required for IBM MobileFirst Quality Assurance // or "MARKET" if it is production mode. mode: "QA", shake: true, protocol: 'http', host: 'ourhostnamehere:80', versionName: "1.0", // app release version android: { appKey: "91719217347da8e6daf648192dc774664978bba1", versionNumber: "1" // app version number } /*ios: { applicationKey:

IBM Worklight - How to switch back to version 6.0 from 6.1?

烈酒焚心 提交于 2019-12-12 02:39:19
问题 When installing Worklight from the Eclipse Marketplace, v6.1 is being installed. How can I switch back to v6.0? 回答1: Worklight 6.0.0.x Developer Edition is not available for download via Eclipse Marketplace. Only the latest version of the Developer Edition is ever available from Eclipse Marketplace. To obtain previous versions of Worklight: If you are an IBM customer or business partner, you can get it from either Passport Advantage or Partner World respectively. For the free Developer

IBM Worklight - How to add barcode scanner phonegap plugin into config.xml in Xcode 5?

£可爱£侵袭症+ 提交于 2019-12-12 02:39:03
问题 I'm using IBM Worklight for my mobile app (iOS) project. My question is: How to add a Barcode Scanner PhoneGap plug-in into config.xml in Xcode 5? I just found this config.xml in xcode. I found this documentation from phonegap's site. config.xml: <?xml version="1.0" encoding="UTF-8"?> <widget> <preference name="AllowInlineMediaPlayback" value="false" /> <preference name="AutoHideSplashScreen" value="true" /> <preference name="BackupWebStorage" value="cloud" /> <preference name=