cancel
Showing results for 
Search instead for 
Did you mean: 

GetWindowController-Method missing

Former Member
0 Kudos

Hello everyone. In a component I want to fire a OutboundPlug of a Window. Therefore I already used the wdThis.wdGet<Componentname>WindowController().wdFire...-Method. Now I want to do the same in another component. But there this method simply don't exists. And I really don't understand why. I haven't done anything different in the two components. I don't remember it at least,

Can anyone help me?

Greetings Marco

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Are you writing the following code in the view controller?

wdThis.wdGet<Componentname>...

Regards

Ayyapparaj

Former Member
0 Kudos

For example in the component where it works:

The Component is named: "SelectCustomerByIDComp"

The Window of the Component has an OutboundPlug "ToCreateQuoteView". Now in the implementation-Code of the Component itself i created the following Method:

public void firePlugToCreateQuoteView( ) {

//@@begin firePlugToCreateQuoteView()

wdThis.wdGetSelectCustomerByIDWindowController().wdFirePlugToCreateQuoteView();

//@@end

}

Then in the View where the Plug needs to be fired I call this method by:

wdThis.wdGetSelectCustomerByIDCompController().firePlugToCreateOrderView();

Now, in the component where I want to do the same, the equivalent wdThis.wdGet...WindowController()-Method does not exist.

Former Member
0 Kudos

Hi,

Go to the properties Tab of the controller

Under required controller

Click on the add button and add your Window from the list.

Regards

Ayyapparaj

Former Member
0 Kudos

Thank you! This solved it. But I'm wondering why I did not need to do this in the other component respectively why it has been done ther automatically..

Greetings Marco

Former Member
0 Kudos

Hi,

You might have added it some how, forgotten

Regards

Ayyapparaj

Answers (0)