ibm-mobilefirst

IBM MobileFirst 7.1 - Local server duplicating resources

倾然丶 夕夏残阳落幕 提交于 2019-12-12 04:17:31
问题 Every time i try to create a new Worklight server all of my resources get duplicated... and I believe its causing errors when i deploy. What I have tried to fix this issue so far: Deleted server, and created a new one. Same result Deleted my workspace and started from scratch. Same result Completed removed eclipse from my workstation. Same result Is there any other explaination for this behavior? I am using a fresh Eclipse Luna SR2 install, with a fresh install of the MFP 7.1 plugin. 回答1:

Button not working in multi-page application

戏子无情 提交于 2019-12-12 04:15:06
问题 I have created 2 buttons. The second button should go to NewFile.html but it isn't working. my index.html main file consist of div tag inside it created 2 buttons and with id ForNext for one of the button. main.js var pagesHistory = []; var currentPage = {}; var path = ""; function wlCommonInit(){ $('#ForDeviceProp').click(deviceProp); $('#ForNext').click(nextMethod); } function nextMethod() { $("#ForNext").load(path + "pages/NewFile.html", function(){ $.getScript(path + "js/NewPage.js",

IBM MobileFirst Platform is not triggering Remote disable message on iOS for Hybrid app

青春壹個敷衍的年華 提交于 2019-12-12 04:00:59
问题 We have a hybrid application that doesn't show the remote disable message once we change the state from "Active" to "Access Disabled" even though the app is actually getting disabled as we can't use it anymore. worklight.properties: wl.remoteDisable.cache.enabled=true wl.remoteDisable.cache.refreshIntervalInSeconds=1 initOption.js (I have added console.log to see what is the error in between): onErrorRemoteDisableDenial : function (message, downloadLink) { console.log(

Using Worklight(MFP) HTTP Adapters with REST/JSON Services

陌路散爱 提交于 2019-12-12 04:00:42
问题 I'm new to Worklight and I have been trying to run this example: Using IBM Worklight HTTP Adapters with REST/JSON Services. When I run the app on an android emulator and I click a button, I got the following error: alert("mobGmapLatLngFailure") ; in the app in logcat errors: 02-09 04:05:21.924: D/NONE(1435): Client registration failed with error: {"responseHeaders":{},"status":500,"responseText":"","invocationContext":null} 02-09 04:05:22.074: E/NONE(1435): [/apps/services/api/AdapterApp

Worklight Studio - error http 405 when connecting to mobile URL provided by Console

喜你入骨 提交于 2019-12-12 03:49:06
问题 I've built and deployed with success a web app with android/mobile connecting to server locally. it was ok with 5.0.5 (android preview, common preview, webapp preview and so on). I've upgraded to 5.0.6. now the URL given by the Console ("Get URL of Mobile Web App") is not working and throw me a http error 405 "Get method not supported". Is there an issue with 5.0.6 (studio) or i'm missing new settings? thanx for help 回答1: Make sure to delete the yourEclipseWorkspace\WorklightServerHome folder

Worklight 6.2 .wlapp deployment.data file format

隐身守侯 提交于 2019-12-12 03:47:32
问题 I need to deploy an application to Worklight 6.2, but the latest IDE i have only targets for MobileFirst 7.1. I am trying to manually edit the meta/dployment.data file(pasted below). I updated the platform.version to 6.2 manually. Can someone help me with: If someone can share a sample .wlapp archive targetted for WL 6.2, specifically iOSNative app with authentication disabled. Or if someone can help me plug the right values into below file. Mainly this value "app.authenticity.obscuredata=23

Pass values to IN operator in a Worklight SQL adapter

Deadly 提交于 2019-12-12 03:45:25
问题 I have started to work with SQL adapters in Worklight, but I do not understand how can I pass values to an IN condition when invoking my adapter procedure. 回答1: You will need to edit your question with your adapter's XML as well as implementation JavaScript... Also, make sure to read the SQL adapters training module. What you need to do is have your function get the values: function myFunction (value1, value2) { ... } And your SQL query will use them, like so (just as an example how to pass

Calling setActiveUser throws error

廉价感情. 提交于 2019-12-12 03:44:23
问题 I am trying assign a userid to user and I am getting error . I am following as steps below. server details. <realm loginModule="AuthLoginModule" name="AuthRealm"> <className>com.worklight.integration.auth.AdapterAuthenticator</className> <parameter name="login-function" value="AuthAdapter.onAuthRequired"/> <parameter name="logout-function" value="AuthAdapter.onLogout"/> </realm> </realms> <loginModule name="AuthLoginModule"> <className>com.worklight.core.auth.ext.NonValidatingLoginModule<

Implementing SendActionToNative in JS

戏子无情 提交于 2019-12-12 03:44:16
问题 I have extended CordovaActivity , and implemented WLInitWebFrameworkListener plus BluetoothAdapter.LeScanCallback in native code public class MainActivity extends CordovaActivity implements WLInitWebFrameworkListener, BluetoothAdapter.LeScanCallback{ Inside this class I have implemented @Override public void onInitWebFrameworkComplete(WLInitWebFrameworkResult arg0) { // if a device is connected launch application if(mConnectedGATT.connect()){ WL.getInstance().addActionReceiver(new

MobileFirst app build - failed creating temporary directory to build adapter

流过昼夜 提交于 2019-12-12 03:36:52
问题 I have working command line build setup for my MobileFirst application. However today when I ran a build, I got following error: BUILD FAILED C:\...\build.xml:29: Failed creating temporary directory to build adapter What might be the cause of this error? I'm running the build via ant: ant build Relevant part of build.xml is: <target name="build"> <app-builder worklightserverhost="${server.address}" applicationFolder="apps/MyApp" outputFolder="${build.dir}"/> <adapter-builder folder="adapters