on 03-26-2008 3:01 PM
Hi,
i want more information on Calculated Attribute setter method & Calculated Attribute getter method.
i have a value attribute, to which properties of CalculatedAttributeGetter & CalculatedAttributeSetter values are given with the method names.
Is it like whenever we try to set a value for that attribute the setter is called and getter is called whever tries to get value.?
Please give more info on this.
Attribute: Emp
Setter: setEmp
getter: getEmp
Thanks
Hussain
Hi Maha,
yes, you are right. Setter will be called when a value is assigned to the calculated context variable by the webdynpro. you can use it to modify the value before display.
Thanks,
S-B
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A simple example might be:
Let's say you have a table that is mapped to a particular context node. You can create a context element named "RowCount" that is calculated. In the getter method you would put code that returns the size of your node list. Then you would map the visible row count of the table to that context element. This way the table is always as long as your node list.
I do this a lot and place the table inside a scroll container so users don't have to deal with the ugly pagination (and it's resulting server round trips) in NW2004s 7.0.
hi,
hope this link will help you.
If we create a value attribute then there will be a property called "calculated",set that property as true then we get two methods called "getter" and "setter".This is to be used for setting some values to our variables and getting that.In java .
( used for Encapsulation purpose.)
[http://help.sap.com/saphelp_nw70/helpdata/en/7f/a0384162316532e10000000a1550b0/frameset.htm]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.