cancel
Showing results for 
Search instead for 
Did you mean: 

Suspending the application from the another component

Former Member
0 Kudos

Hi Experts,

Please advice.

I have a component say CompA which is having an embedded component CompB. An application is created for CompA. The views of CompB are called from CompA.

Now I have a view in CompB,in which on click of a button i need to call a third party payment gateway page and i have to resume the application. I am not able to trigger the suspend plug of CompA from CompB. getting the error like "Suspend plug can be triggered only from the main window".

As a alternative way, views of CompB can be copied to CompA and can achieve this. But this will over weight the component. can this be done in any other way?

Regards,

Mugu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Kandha, try the following:

Create an event on component B. Lunch the event when you want to fire the suspend Flag.

On Component A create a handle method in order to catch the event lunched by component B. In this method you’ll be able to fire the suspend plug.

The suspend and resume plugs must be defined on Comp. A

Regards

Former Member
0 Kudos

Thanks Yaiza.. Working fine

Regards,

Mugu

Answers (1)

Answers (1)

Former Member
0 Kudos