Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Regarding setter and getter methods

Hi,

Can anybody tell me the use of setter and getter methods in webdynpro .

It is generated when we set the calculate property of value attribute to true .

Thanks a lot .

Former Member
Former Member replied

Hi,

Setter method is called when a value is assigned to the attribute .

This method can be called either by using

wdContext.currentContextElement().set<YOURATTRIBUTE>

or when a new value is entered by the user from the UI Element bound to this attribute.

<b>value</b> param of the setter method holds the new value.

Getter is called to retreive the value for the attribute.

wdContext.currentContextElement().get<YOURATTRIBUTE>

Regards

Ayyapparaj

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question