cancel
Showing results for 
Search instead for 
Did you mean: 

Typing to node elements in the assistance class

IanStubbings
Active Participant
0 Kudos

Hi

I have a section of code that wish to place inside my assistance class. Ideally I would use one of the nodes as an importing parameter, but how then would I create a type to the element from within my assistance class method as I wouldn't have access to the usual construct of wd_this->element_...?

Cheers

Ian

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Ian

In this way you are making the assistance class dependent on your web dynpro component, carry out the changes to context with in the component only.

coming to your question, you can not access the definition wd_this out side the component, you can copy the types declaration in wd_this interface in your assistance class local types and use it

Abhi

IanStubbings
Active Participant
0 Kudos

Cheers Abhi.

This was the conclusion I have come to also.

I have created a custom controller to separate the bapi specific context operations and then I will call the assistance class method from here.

Many thanks for your help.

Ian

Answers (0)