on 10-26-2009 6:08 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.