cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to do two online requests in single button on click?

Former Member
0 Kudos

Hi Experts,

   I am developing an app with oracle function that procedure is in this link in Hybrid application SMP2.3.

   http://scn.sap.com/thread/3543528

    upto this is working fine.

  In this i am login with username and password that is checking with my mbo and in the next screen i have to show the notification list from the logged in username.

Now i have a doubt how can i call the two online request at one time?

1. For Login Button i have to give online request on Validate_Login MBO.

2. For showing the notifications list based on the logged in username i have to give the online request on WF_Notifications table.

  How to do two online requests at one time, is there anyway to do this requirement.

or shall i manage this in custom.js?

Any suggestion will be appriciated.

Thanks & Regards,

Sravanya.K

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You should manage this in custom.js.

Thanks,

Andrew.

Former Member
0 Kudos

Thanks for your response Andrew,

If you have any references for this, please give to me.

Thanks,

Sravanya.K

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Have you come across this discussion

midhun_vp
Active Contributor
0 Kudos

Use custom actions to make online request without user interactions. More information is available in the thread mentioned by Jithendra.

Midhun VP

Former Member
0 Kudos

Midhun,

I read the discussion as jitendra shared, in that thread we are creating a menu item that item is hide by using jquery code in custom.js, in hybird_JQM.html file i am able to see the function which is created for that menu item. but when i created the custom menu item i am unable to see that custom menu item code in hybrid_JQM.html file.

How to know which function is calling for that custom menu item..

Thanks & Regards,

Sravanya.K

midhun_vp
Active Contributor
0 Kudos

The method name format is  menuItemCallbackApprovalGet(); where Approval is the screen key and Get is the action name. Find your method inside the workflow.js file.

Midhun VP

Former Member
0 Kudos

Thank you so much Midhun, I am able to access the custom actions.

Regards,

Sravanya.K

Answers (0)