on 01-11-2013 4:15 PM
Hi friends,
I have an doubt...
How to create a button in custom.js to perform the function "Online Request"
I tried as follows:
1 - Create a menu item / button to online request in the eclipse sdk
2 - generate workflow
3 - go to workflow.js and copy the created function "menuItemCallBack_...()" to custom.js
4 - Remove the menu item / button created in workflow
5 - create a button via code in the event custom.js "custombeforeshowscreen" and "onClick" event of the button, call the function "menuItemCallBack_...()".
But it is not working, is returning the error message that I set
Anyone know a solution?
thank you
What version of SUP are you using? You should be able to simply drag and drop a button from the palette onto the screen and specify its action.
The sample on Debugging a Hybrid App may also be useful to determine why you current code is not working.
Debugging a Mobile Workflow https://cw.sdn.sap.com/cw/docs/DOC-150957
Regards,
Dan van Leeuwen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Miquéias,
Once create a menuitem and assigned onlineRequest to it. After that you can add menuItemCallback.. to Aftermenuitemclick event as below;
function customAfterMenuItemClick(screen, menuItem) {
if (screen == "<screenKey>" && menuItem == "<menuitemkey>") {
menuItemCallback...
}
}
Regards
Tahir
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.