on 11-08-2006 2:39 PM
Hi All
I have created one transaction in logic editor and my output is in one xml.Now i have called this in query template.
There i am facing problem for xml type query.I need to take total of rows from my xml and than want to perform some calculation.
Could anybody help me in this.
Thanks
Thomas
Hi Thomas
For this type of calculation you have to call xml type query.
After specify xml source. now you give path of your stylesheet folder and select subtotal xslt.
This xslt will provide you total of rows that you desire.
For further calculation you can go in transform tab and select proper inline transform (calculator or MultiCalculator.Here you can give your expression.
Hope this way will help you.
Regards
Ramshanker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas
If u have a xml query and want to calculate the number of rows in the o/p , the easiest way is to use X-Path to calculate.
Use and assignment block to have the following expresiion to assign to a local variable -:
queryname{count (Rowsets/Rowset/Row)}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas,
You can solve the problem as mentioned above by ram shanker...
The other way is..
1. Select crosstab from xml functions in the business logic services.
2. Add this at the end of your transaction.
3. Link the exact column by which you want the total of
rows
4. Make this as a output for your transaction.
5. Open the xacute quey and call this transaction
6. For further calculations go the transform tab and select appropriate stylesheets..
Hope this also help you....
Regards,
Kishore kumar P.S.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.