cancel
Showing results for 
Search instead for 
Did you mean: 

Defining the type of the Method in Webdynpro?

Former Member
0 Kudos

hi

I awnt to make a method whose type is Calculated attribute

getter and return type is void.

Plz help me on this problem

regards

Nidhideep

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You want to have a calculated attribute that calculates no value? What is this good for?

Armin

Former Member
0 Kudos

hi

Armin sorry that i couldnt explain my problem properly actually i want to make a method of type calculated getter.

how to achieve it?

Regards

Nidhideep

Former Member
0 Kudos

hi

Armin im able to solve the problem,bt,i m nt able to get the concept of getter and setter method ,and hw we can achieve it jst by making readonly property of context attribute true.The explanation wht i gt from SAP library is that "This means that the value of these attributes is not saved in a separate value attribute, but is calculated in the view controller when necessary (the value is required for data binding to display a view)"

Wht does that mean(conceptually)?

Regards

Nidhideep

Former Member
0 Kudos

Hi,

when you create the element with calculated the two methods are created inside the view.

try this sample

https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/0c0dcacd-0401-0010-b4bd-a05a0b4d68c8

Kind Regards

Mukesh