Highlighted

Creating repeating and non repeating subform XML using Multiple Row Module

Aditya_S_

29-01-2009

I have a form with repeating and non repeating subforms. The xml looks something like



01122009
12122009
Sam
Evaluator


Joe



Bob




The problem is in "XML Information". I cannot specify more than one repeating element.

Using one "Query for Multiple Rows as XML" module, can I create the above XML structure ?

Thanks
Aditya

Replies

Highlighted

HowardTreisman

21-02-2009

No, you can't do it directly.

You'll need to create multiple small snippets of XML from multiple invocations of the SQL query component, and then merge them together using Set Value.



You could also use SQL PLus, which allows you to inject XML results directly into an existing XML document.



Check out these resources.



Components: http://www.avoka.com/avoka/escomponents.shtml

Docs: http://avoka.dnsalias.com/confluence/display/Public/Avoka+LiveCycle+ES+Components - click on "SQL Plus"

Example: http://avoka.dnsalias.com/confluence/display/Public/Retrieving+data+from+a+database+and+populating+a...

Addons: http://www.avoka.com/avoka/addons.shtml