cancel
Showing results for 
Search instead for 
Did you mean: 

Fireplugs from Component Controller

Former Member
0 Kudos

Is there a way to call a fireplug method like wdThis.wdFirePlugToUsersView(); but from a component controller instead of a view controller? Or how I'm suppose to do this?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Create a event and fire the event in the component controller.

In the view controller create a event handler which is subscribed to this event.

Inside this event handler fire the plug to the appropriate view.

Rather clumsy way to do. but it should work

Regards

Bharathwaj

Former Member
0 Kudos

How do I fire an event?

How do I subscribe to it?

Former Member
0 Kudos

Hi,

Go to Events tab and create a new event.

In the view go to methods tab and create a event handler..

Give it a name and in the event source set the component controllers event.

Message was edited by: Bharathwaj R

Former Member
0 Kudos

Hi

Open Component Controller. Create a event say "myEvent"

Then go to your validation part and when your validation is successful say

wdThis.wdFiremyEvent();

Now go to the View. Open the Methods tab and say "New". Now in the pop up that appears say "Event Handler".

After this type in some name say "HandleEvent" and then in the 2 dropdowns that appear select the respective events to subscribe to.

Now go to the View implementation of this "HandleEvent" and then write

wdThis.wdFirePlug to the desired view.

Hope that helps you.

regards

ravi

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

No it is not possible. What is your exact requirement.

regards

ravi

Former Member
0 Kudos

I have a validation procedure inside wdDoBeforeNavigation(), if the validation is successful I want to change a view

Former Member
0 Kudos

Hi

Then what you do is, if the validation is successful fire a event and handle that event in the view. In the event handler fire the plug.

hope that helps you.

regards

ravi