on 05-30-2011 12:42 PM
Dear all,
I am facing problem when accessing a global attribute inside an action which is declared in component controller.
The Global attribute I have created of type DataElement which is of type int.
I am able to access this Global attribute inside WDDOINIT method.Inside WDDOINIT method I am setting a value to
this global attribute which I am expecting to carry this value to a action.
But Inside action it is not carrying the value from WDDODOINT
instead it is holding value 0(ZERO).Pls suggest where It is going wrong.
Thanks,
Reddy.
The way you described seems everything is right. Probably you need to cross check
1. Created a attribute in Component controller and marked it as public.
2. You set this attribute in the view doinit method.
wd_comp_controller->gv_mydata = 10.
3.You access the gv_mydata the same was in step 2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sudhir,
Try like this...
create attribute in Comp controller and make it as public( check check box ).
You can write code to initial in wddoinit of comp controller using
WD_THIS->VAR = '10'.
or
Go to wddoint method of view and assaign some value to this..
like..
wd_comp_controller->VAR = '10'.
And in your another method call this by using wd_comp_controller->
you will get. It is working for me i checked.
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.