ibm-mobilefirst

open pdf using jquery mobile

风流意气都作罢 提交于 2019-12-13 08:16:04
问题 How to open a PDF using jQuery mobile. I'm using worklight 6.o and the adapter returns the content of PDF, var content = 'some PDF content' -- which i will get from the apadapter contentType = 'PDF' -- which i will get from the adapter. I have content and contentType, based on this, I need to open the PDF, if the contentType is PDF or word,if the contentType is msword. function onSuccessDownloadAdapter (results) { try { if(results.invocationResult.isSuccessful){ if(results.invocationResult

IBM Worklight - Can't run an app on WebSphere Application Server

岁酱吖の 提交于 2019-12-13 08:09:15
问题 My app runs well on Worklight Development Server, but not on WebSphere Application Server V8.5 Liberty Profile. I tried both Oracle JDK and IBM JDK, there was no difference. There was no problem connecting to the server with jconsole, although I had to connect without ssl. On Eclipse Console, [2014-07-11 17:18:10] Starting build process: application 'U1', all environments [2014-07-11 17:18:12] Application 'U1' with all environments build finished. [2014-07-11 17:18:12] Deploying application

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:

IBM Worklight - How to re-use a function in a multipage app

时光总嘲笑我的痴心妄想 提交于 2019-12-13 08:02:47
问题 I have used the function doTimer() on the page level-one-1, and now I'm trying to reuse the function doTimer() on the second page. But it doesn't work. Can anyone help me? Here is my javascript and html code. The JS: var start = new Date().getTime(); var elapsed = '0.0'; var t; var timer_is_on=0; function timedCount() { var time = new Date().getTime() - start; elapsed = Math.floor(time / 100) / 10; if(Math.round(elapsed) == elapsed) { elapsed += '.0'; } document.getElementById('txt').value

how to use plain text in adapter worklight

别等时光非礼了梦想. 提交于 2019-12-13 07:42:07
问题 I am using worklight adapter as http adapter and i am htting on url and getting plain text from result now how to use it on client side. I am getting xml as a plian text now i want to use that xml on client side tell me how to do that. function searchData(){ var input = { method : 'post', //requestType : 'http', path : 'Mobile/Default.aspx', returnedContentType : 'plain', body : { contentType: 'application/x-www-form-urlencoded', acceptEncoding: 'gzip', content: 'xml=<HOME><REQUEST><USERID

mobilefirst ios error crashing my app

醉酒当歌 提交于 2019-12-13 07:38:08
问题 when I make a request to a url, sometimes i get a 403 response and the app crashes I have edited my entitlements-Release.plist and entitlements-debug.plist so that they contain: key-chain-access-groups: Array item 0: $(AppIdentifierPrefix)worklight.group this step let me make the call a few more times, but eventually crashed my app again mfp -v 7.1.0.00.20151227-1730 2016-01-21 12:41:49.332 kmf[2236:1264285] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 ::

MobileFirst Direct update customization using adapter

徘徊边缘 提交于 2019-12-13 07:31:09
问题 I am trying to customize direct update by getting all the messages from an adapter. I am not getting adapter success callback if direct update is triggered. I want to show a dialog giving option to the user to cancel direct update. Below is the code I am trying with: wl_directUpdateChallengeHandler.handleDirectUpdate = function (directUpdateData,directUpdateContext){ console.log("Test for directUpdate"); var invocationData = { adapter : 'DirectUpdateCustomizationAdapter', procedure :

How to disable app authenticity on IBM MobileFirst 7.1 remote server?

杀马特。学长 韩版系。学妹 提交于 2019-12-13 07:17:29
问题 Is there any way to disable app authenticity on remote mobile first server? In worklight 6.2 we can manually disable app authenticity on console but cannot find the same settings in mobilefirst 7.1. As a workaround: We are using custom security test in authenticationConfig.xml and haven't used app authenticity test realm in it. The surprise in the workaround is that it still shows basic app authenticity enabled on the mobile first console. Any pointers for the workaround dilemma as well?

IBM Worklight 6.1 - iOS 7 (iPad) WebView extending height to size of split keyboard

核能气质少年 提交于 2019-12-13 06:49:14
问题 I am wondering if anyone has come across the following issue and if there is a solution for Worklight 6.1 on iOS 7.1. When I bring up the software keyboard, it resizes the web view indefinitely. This means that when I scroll the view, it scrolls past the body content and a black underlay is displayed. The black section is the same height and width as the keyboard. To reproduce: I have created a standard Worklight project and added a simple text field to the default index.html page. Focus the

IBM Worklight - Using Canvas

萝らか妹 提交于 2019-12-13 06:29:13
问题 I want to add canvas to my Worklight project. I learned how to create canvas from this tutorial: http://dev.opera.com/articles/view/html5-canvas-painting/ I tried to add the markup and JavaScript to my project, it didn't show error, but when I build and run to my device, it says: Can't Find Canvas Element This the code that i add to my project. <div data-role="page" id="thiscanvas"> <div data-position="fixed" data-role="header" id="header"> <h3>Drawing<br>On Canvas</h3> </div> <div data-role=