on 11-09-2009 10:18 AM
Dear All,
Is it possible to read the value of a context variable of the view in the assistance class method.
The scenario :
I have a context variable 'XDATE' in View1. In the Modify view of this view, I call a method of the assistance class.
Now, in the method of the asistance class, I want to read the value of 'XDATE'.
Any help would be highly appreciated.
Regds,
Srinivasan
Hi,
Create a attribute in the assistance class and update this value when the method of assistance class is called...
Later this can be used in the other methods.....of assistance class.
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you make one thing clear...do you want to read the assistance class attibute in the view's method....or viceversa...
if you want to acess the attribute of assitance class then you use wd_assist->xdate in the view's method..
What is the attribute type you have decalred in the assistance class attirbutes....Is it constant/instance specific...
Regards,
Lekha.
Hi,
1.If you want to access the context attribute value in the assistance class then
.create the importing paramater for the method of assistance class where u need to acess the attribute
'XDATE'.
While calling that method in the modify view pass this attribute so that you can acess the view's attribute.
2.if you want to access the assistant class attribute in the view you can follow the procedure mentioned by Lekha
i.e declaring the attribute in the assistance class and accessing using wd_assit->date .
Priya
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.