on 03-31-2008 10:20 AM
Hi,
I have a web dynpro application in which i need to implement the subtotal functionality for a table.I have a table which has 5 columns, where in the first 2 columns have datatype string.So i need to find the sub total of the third column wrt first column and second column.In the same way, i need to find the subtotal of any column with integer datatype wrt any column with string datatype.
Please suggest me how to proceed.
Regards,
Padmalatha.K
Points will be rewarded.
Hi,
Create a calculatted attribute to do the calculation
public int getSub_Col(IPrivateTestCompView.IContextElement element)
{
//@@begin getSub_Col
int x = element.getAttributeValue("<Your first attribute");
int y = Integer.parseInt(element.getAttributeValue("<Your second string attribute"))
return x+y;
//@@end
}
Pl handle the exceptions
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,
Do u have any link so that I need to review through the materials and implement I since I na new to this technology.
If any material for Subtotal Implementation will be helpful
Reagrds,
Padmalatha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ayyaparaj,
I want to calculate the subtotals.Is there any API s available that can be incorporated into Webdynro. Or do we have any inbuilt functions to find the subtotal.
Regards,
Prasanna Kumar.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
if ur problem has solved make the question as solved
Regards
Hazrath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
First get the string and change it into int by using the Integer.parseInt(String s) method.
Then u can add all the elements.
Regards
Hazrath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.