cancel
Showing results for 
Search instead for 
Did you mean: 

Can i access Component Context from View?

Former Member
0 Kudos

Hi

I have component context attribute = comp_va_name

My view context attribute = va_name

My view name is View1.

I have mapped context from view to component as per the procedure.

I was just trying to access "comp_va_name" from my view i.e. View1.java? but didnt succeed.

Can u pls. let me know how can i access component context from my view.

Thanks...

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member201361
Active Contributor
0 Kudos

Hi,

Open the View Controller Editor --> properties tab -->in the required Controllers --> clikc on Add button and select the component controller anf click finish.once u have added the component controller as required controller for view, then u will be able to acces the data from the View as shown below.

wdThis.wdget<ComponentController name>.currentContextElement.getcomp_va_name();

or open the data modellar and create a data link between component controller and view Controller and use the above line to access the component controller context.

thanks and Regards

Former Member
0 Kudos

Hi Fazal, Thanks it is solved.....