cancel
Showing results for 
Search instead for 
Did you mean: 

how to set global vo(value object) ?

Former Member
0 Kudos

as title as said.i put some information into vo,for example:

i saved username and password into vo(value object)after user login in EP.i hope i can get the value any time from the vo.that's equivalent to the function in jsp :

session.setAttribute("vo","xx");

VO vo =(VO)session.getAttribute("vo");

u know we cann't do it as that in web dynpro project.

i know i can set value to context of view,even shared it in the same one component.but i cann't get the value in the others compoent.

in short ,i wanna: once set value, anywhere get it.

thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

Share that in the interface controller so that it will be seen in any of the component..

Regards,

Vijayakhanna Raman

Former Member
0 Kudos

u refer to can be access in any other components after shared it in interface controller(i'v shared it in component(compA) controller)?but i don't know how to get it in another component(compB)?

thanks!

Former Member
0 Kudos

Hi,

If you have some values in the interface controller of CompA, then go to the properties view of CompB and in the "Required Controllers" section, click on the Add button. This will show a pop-up giving you which are the controllers that can be added. If you see CompA there, select it.

Then you can access CompA interface controller context in CompB Interface Controller implementation as :


wdThis.wdGetCompAInterface().wdGetAPI().getContext();

Regards,

Satyajit.

Former Member
0 Kudos

thanks!

Answers (0)