ibm-mobilefirst

Authorizing HTTP Adapter in IBM Worklight

只谈情不闲聊 提交于 2019-12-18 05:17:12
问题 I am struggling to get an HTTP Adapter request to a protected rss feed to execute properly. I have read a ton of IBM's documentation, as well as chasing dead links to moved or "under maintenance" IBM pages. Unfortunately, none of the examples I have found show how to authorize this request. For the sake of this example, I am trying to access an rss feed from the Connections installation in the IBM Greenhouse Environment. Adapter XML: <?xml version="1.0" encoding="UTF-8"?> <wl:adapter name=

AngularJS 1.5 error bootstrap IBM Mobilefirst

丶灬走出姿态 提交于 2019-12-18 04:35:25
问题 I seem to have problems combining an MFP hybrid (no cordova) application and angular 1.5. The same application with angular 1.4.9 works fine, but if I switch to angular1.5 then i get this error: Error: [$injector:modulerr] Failed to instantiate module ng due to: TypeError: Cannot set property 'aHrefSanitizationWhitelist' of null at $$SanitizeUriProvider (http://localhost:10080/Hybrid/apps/services/preview/HelloWorld/android/1.0/default/vendor/angular5.js:17272:35) at new <anonymous> (http:/

How to change between pages using Jquery Mobile in Worklight

孤街浪徒 提交于 2019-12-17 21:33:20
问题 Im starting a project from scratch in Worklight. Im using Jquery Mobile and I need to know how Im suppose to do the transition between pages. When I drag and drop a new list view, the following code is generated using Hyperlinks: <ul data-role="listview" id="listview" data-inset="true"> <li data-role="list-divider" id="divider">Divider</li> <li id="listitem"><a href="#">Item</a></li> <li id="listitem0"><a href="#">Item</a></li> <li id="listitem1"><a href="#">Item</a></li> </ul> But if I take

IBM Worklight 5.0.6.1 - Not getting Push Notifications when phone/app is closed

对着背影说爱祢 提交于 2019-12-17 19:36:58
问题 I have a Worklight hybrid app with basic push notification working in android. If the app is running and in focus when the notification is pushed, it behaves exactly as I would expect. The notification callback in my app is called, and it pops up a SimpleDialog. All Good . If I dismiss the app by clicking on the Home Button, and a new message arrives, I see the notification in the Android notification area, and when I click on the item in the android notification list, the item gets dismissed

No runtime on my Worklight 6.2 Console

你说的曾经没有我的故事 提交于 2019-12-17 17:15:56
问题 After deploying an war file in a Worklight 6.2 environment, the console doesn't show the associated runtime environment : No runtime can be found. It's a basic usage of Worklight 6.2, but I don't know how to fix it ! What I've done : Installation of Worklight Entreprise 6.2 on WebSphere Liberty 8.5.5.2 + DB2 V10.5 customisation of the configuration-liberty-db2.xml with my settings ant -f myxmlfile admdatabases ant -f myxmlfile adminstall ant -f myxmlfile databases ant -f myxmlfile install I

How to increase the adapter procedure timeout value in Worklight?

走远了吗. 提交于 2019-12-17 16:54:10
问题 How can I increase the timeout value of a Worklight adapter procedure? My app crashes and I see the following in the exception details: "response [/apps/services/api/index/common/query] success: / -secure- {"responseID":"24","errors":["Invocation of procedure 'getFTTitle' has timed out after 30 sec."],"isSuccessful":false,"warnings":[],"info":[]} / " 回答1: There are several places in Worklight where a timeout value can be specified: CLIENT ----> WORKLIGHT SERVER -- (adapter) --> BACKEND You

IBM Worklight - How to launch another app?

こ雲淡風輕ζ 提交于 2019-12-17 16:54:06
问题 I have a requirement to open the native version of the hybrid app (.ipa/.apk/.appx) when the hybrid app is requested in a device browser. I am able to detect the environment using WL.Client.getEnvironment(); method, if it is found to be Android/iPad, I want to launch the respective .apk/.ipa file in the device. Any help is appreciated. 回答1: Re-reading this question and the comments several times... I still do not understand the actual scenario... it'd be best to rephrase it. Scenario: How to

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

Ecma Error: TypeError: Cannot call property

谁说胖子不能爱 提交于 2019-12-17 09:57:56
问题 I have written some java code in an adapter in worklight project. when i m trying to call the java method, i am getting an error saying "responseID":"6","errors": {Ecma Error: TypeError: Cannot call property downloadFile in object JavaPackage java.classes.FileIOPlugin]. It is not a function, it is \"object\".} I have followed the procedure exactly stated in the following link. Using Java in Adapters this is my project structure. Is there something wrong with this structure or should i add

Ecma Error: TypeError: Cannot call property

谁说我不能喝 提交于 2019-12-17 09:57:13
问题 I have written some java code in an adapter in worklight project. when i m trying to call the java method, i am getting an error saying "responseID":"6","errors": {Ecma Error: TypeError: Cannot call property downloadFile in object JavaPackage java.classes.FileIOPlugin]. It is not a function, it is \"object\".} I have followed the procedure exactly stated in the following link. Using Java in Adapters this is my project structure. Is there something wrong with this structure or should i add