P
Partha
Given a secondary data source in the form of XML file below, I want to create
an infopath form where I have the drop down list for
testfile/customer/@cusname and upon selection of the customer, I want to see
the testfile/customer/program elements as a repeating table/section.
On saving the form, I want to see the data only relevant to the customer I
selected. Samples below.
SECONDARY DATA SOURCE:
<testfile>
<customer cusname="Microsoft">
<program prgname="prg11">
<cmdline>cmdline11</cmdline>
<duration>duration11</duration>
</program>
<program prgname="prg12">
<cmdline>cmdline12</cmdline>
<duration>duration12</duration>
</program>
</customer>
<customer cusname="SoftMicro">
<program prgname="prg21">
<cmdline>cmdline21</cmdline>
<duration>duration21</duration>
</program>
<program prgname="prg22">
<cmdline>cmdline22</cmdline>
<duration>duration22</duration>
</program>
</customer>
</testfile>
EXPECTED SAVED FORM TO BE: (when Microsoft is selected from the drop down
list):
<customer cusname="Microsoft">
<program prgname="prg11">
<cmdline>cmdline11</cmdline>
<duration>duration11</duration>
</program>
<program prgname="prg12">
<cmdline>cmdline12</cmdline>
<duration>duration12</duration>
</program>
</customer>
an infopath form where I have the drop down list for
testfile/customer/@cusname and upon selection of the customer, I want to see
the testfile/customer/program elements as a repeating table/section.
On saving the form, I want to see the data only relevant to the customer I
selected. Samples below.
SECONDARY DATA SOURCE:
<testfile>
<customer cusname="Microsoft">
<program prgname="prg11">
<cmdline>cmdline11</cmdline>
<duration>duration11</duration>
</program>
<program prgname="prg12">
<cmdline>cmdline12</cmdline>
<duration>duration12</duration>
</program>
</customer>
<customer cusname="SoftMicro">
<program prgname="prg21">
<cmdline>cmdline21</cmdline>
<duration>duration21</duration>
</program>
<program prgname="prg22">
<cmdline>cmdline22</cmdline>
<duration>duration22</duration>
</program>
</customer>
</testfile>
EXPECTED SAVED FORM TO BE: (when Microsoft is selected from the drop down
list):
<customer cusname="Microsoft">
<program prgname="prg11">
<cmdline>cmdline11</cmdline>
<duration>duration11</duration>
</program>
<program prgname="prg12">
<cmdline>cmdline12</cmdline>
<duration>duration12</duration>
</program>
</customer>