cancel
Showing results for 
Search instead for 
Did you mean: 

how to call a view from Interface view

Former Member
0 Kudos

Folks,

How to call a view from interface view (onPlugDefault method) . I was trying to set context of controller but it is not working . What is the work around.

Manish

Accepted Solutions (0)

Answers (1)

Answers (1)

lajitha_menon
Contributor
0 Kudos

Hi Manish,

An interface view is created for each window that you have, which in-turn has views embedded, one of which is default. If you want to pass data which you have in your interface view, do the following

- Add your component controller in your interface view properties

- In the onPlugDefault method(I assume this is where you have the data available through URL parameters),set the component controller context variables like

wdThis.wdGetComContr.wdGetContext().currentContextElement().setName("John");

-Access these context variables in your view as well by adding the component controller as the required controller

Your default view will appear automatically when you call the application.

Regards,

LM