Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Selectively showing a subform according xml data.

$
0
0

Hi, I've been using choice subforms for some weeks, so far they worked like a charm.

 

Now, I need to show subforms (or not), using a difference approach, according the following (new, for me) criteria:

 

I got this xml:

 

<root>

          <account>

                    <productType>1</productType>

                    <productName>Saving account</productName>

                    <currentBalance>111111</currentBalance>

                    <availableBalance>111222</availableBalance>

                    <savingAccountField1>Saving account field 1</savingAccountField1>

          </account>

          <account>

                    <productType>2</productType>

                    <productName>Loan</productName>

                    <currentBalance>222222</currentBalance>

                    <availableBalance>222333</availableBalance>

                    <loanField1>Loan field 1</loanField1>

                    <loanField2>Loan field 2</loanCorrienteField2>

          </account>

</root>

 

(sorry I dont know how to format it in this forum)

 

I got also 2 subforms, one with fields and properties that belong to a Saving account, and other with fields and properties that belong to Loan's type of accounts, both subforms are inside a subform choice set.

 

Now, the tricky part, how can I selectively show:

 

- both subforms if I have product types 1 and 2 (first tag in the xml account node)

- one or the other if I have only one product type (1 or 2)

- neither if I dont have any of those product types present in the xml.

- multiple instances of the subforms if I have more than one type of the same product type.

 

I hope I expressed myself and the problem I have correctly.

 

Thanks!.


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>