XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Alexis ArrowsmithSubject: XML Report Table Problem
Author: Alexis Arrowsmith
Date: 06 Dec 2007 04:22 PM
I am trying to generate a simple report.
WANTED:
Part # | QA Qty | QS Qty
part1 1 10
part2 2

GETTING:
Part # | QA Qty | QS Qty
part1 1 10
2
part2 1 2

I want for each line item to return the QA Quantity into column2 and the QS quantity in column3. It appears to returning all the QA values for each item. I know how to do this in XSL but the report generator always sets the loop from the root node.

<LINLoop1>
<LIN LIN02="part1"/>
<ZALoop1>
<ZA ZA01='QA' ZA02='1'/>
<ZA ZA01='QS' ZA02='10'/>
</ZALoop1>
</LINLoop1>
<LINLoop1>
<LIN LIN02="part2"/>
<ZALoop1>
<ZA ZA01='QS' ZA02='2'/>
</ZALoop1>
</LINLoop1>


UnknownSourceFile.zip
XML Source fille and Report file

Posttop
(Deleted User) Subject: XML Report Table Problem
Author: (Deleted User)
Date: 11 Dec 2007 06:36 AM
Hi Alexis,
have you tried drag & dropping the same @ZA02 attribute in the two columns, and then editing XPath entry in the Dynamic Value property tab to say ZA[@ZA01='QA']/@ZA02 for the second column, and ZA[@ZA01='QS']/@ZA02 for the third one?

Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.