on 04-14-2013 12:52 PM
I want to call mbo's operation through java script .
How to implement it ?
Solution:
Create a menu item in the screen .Lets say "GetMyList".
As a result a method will be created, menuItemCallbackTest_ScreenGetMyList();
You can find it in the file workflow_jquerymobilelookandfile.html
You need to call this as below in the custom.js file as given below before opening any screen you want.
function customBeforeShowScreen(screenToShow, screenToHide) {
if(screenToHide === "First_Screen" && screenToShow==="Second_Screen") {
menuItemCallbackTest_ScreenGetMyList();
return true;
}
}
You can hide the menu item you created using jquery. If you are on SUP 2.1.3 you can create custom action instead of menu item, no need to write code to hide the menu item then.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using the Eclipse Tooling to develop your Hybrid App?
If so, one way to do this would be to add a custom menu item on a screen that invokes an MBO operation. On the properties for the menu item, specify the operation to call and perform the parameter mappings. Then generate the code for the hybrid app. In the file workflow.js or hybridapp.js(SUP 2.2 SP02), there will be a method added that when called invokes the MBO operation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.