cancel
Showing results for 
Search instead for 
Did you mean: 

how to use local variables declared in b/t the methods in other views

Former Member
0 Kudos

Hi

i need to use the value of the local variables declared in b/w the views in one other view,as i have manipulated the value based on some condition & want to use it in 1 more view for my req.,but that variable is not global one just for once i need to use it,and i can't again write the whole for its conditions,as its there in initialization view,which if coded again,can hit the functionality there,so is it possible to use the value of such local variables thereafter or not,if yes pls let me know,or i need to declare the global variable for this.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

1.Declare an Attribute in Component controller.

2. Pass the value to this Attribute in View V1.

using :

wd_comp_controller->Att = 'Saurav'.

3. Now in view2 , you can access this Attribute using:

data lv type string.

lv = wd_comp_controller->Att .

Here Att is my attribute of type string declared in component controller.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

When ever you fire the other view, pass the parameter in outbound plug for the target view and its value so that they can be accessed in other view.

Or

You can use Saurav's code as global variable

Regards,

Lekha.

Edited by: Lekha on Oct 26, 2009 11:43 AM