cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Context variable of view in assistance class.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,, Thankx for the response. This is exactly what I'm trying todo.

I'm setting it in the view method by wd_this->xdate and then when I'm trying to call the attribute as ydate = xdate, it doesn't get the value. I'm I doing something wrong..

Regds,

Srini

Former Member
0 Kudos

Sorry a Typo,,

read the wd_this as wd_assist->xdate.

Regds,

Srini

Former Member
0 Kudos

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.

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

Problem solved. Program Error. Whatever, we discussed was correct. It was just a program error

Answers (0)