on 11-05-2008 6:18 AM
Dear All,
Actually in my application ,I am retireving values from database in a table ui but i need the same value for calcualting another value that has to be displayed in table 's next column so how can i get that .
table has columns like:date,time,diff,percentage..................
So i want time value to calculate the difference that has to be displayed in table only.
Regards,
Anupama
Hi,
Create a calculated attribute under the same node that is bound to the table.
in the get method do the respective calculation.
bind this attribute to a column in the table.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
use the below statement to get the values of the particular element.
wdContext.nodeTable().getTableElementAt(wdContext.nodeTable().getLeadSelection()).get<Attribute Name you want to get>();
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
Thanks for your reply but actually i am not able to do anythng.
See following code and just try to get what i am doing:::::
ele2 = wdContext.nodeVn_detailsofserver().createVn_detailsofserverElement();
ele2.setVa_todate(retStr1(i));
i++;
ele2.setVa_fromtime(retStr1(i));
Now i want this above fromtime in one string variable fro using that string variable in calculations
Regards,
Anupama
Edited by: Anupama Bindal on Nov 5, 2008 7:32 AM
Edited by: Anupama Bindal on Nov 5, 2008 7:33 AM
hey i tried it earlier only but it was not showing anything in table if i put this thing:( and also it s showing null pointer exception in the same statement::::
String FromTime=wdContext.currentVn_detailsofserverElement().getVa_fromtime();
String EndTime=wdContext.currentVn_detailsofserverElement().getVa_totime();
what to do next?
Following line also showing null pointer exception....y this problem is occuring???
wdComponentAPI.getMessageManager().reportSuccess("value is :::"+wdContext.currentVn_detailsofserverElement().getVa_fromtime());
Regards,
Anupama
Edited by: Anupama Bindal on Nov 5, 2008 8:27 AM
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.