Sub-forms


i haven't been able find documentation on subject of sub-forms. i've been able gather, sub-forms can created alternatives 1 , called drop down box selection. problem i'm having can't figure out how this. require script or simple link betweent drop down box selection , sub-form?

ok !<br />lets understand subform is.<br />subform simple form can drag , drop components.<br />the speciality of subform can repeat no of times per data provided in xml form or on user generated event.<br /><br />first creating subform, need select page on heirarchy window.change properties in subform tab flow content in type combofield.select option allow page breaks content <br /><br />right click on page in heirarchy window.select insert subform.<br />a new subform inserted.drag required components subform<br />now select subform , view object properties.<br />select bindings tab.<br />select checkbox saying repeat subform each data item , give min , max count.<br />and give default binding xml file.you should give xsd file connection.<br />i have put sample xml file below<br /><br /><?xml version="1.0" encoding="utf-8" ?> <br />- <phonebill xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:nonamespaceschemalocation="phonebill.xsd"><br />- <name><br />  <firstname>john</firstname> <br />  <lastname>smith</lastname> <br />  </name><br />- <address><br />  <street>11 street</street> <br />  <city>any city</city> <br />  <state>any state</state> <br />  <zipcode>00000</zipcode> <br />  </address><br />- <phonecall><br />  <date>2004-01-01t04:20:14-08:00</date> <br />  <phonenumber>555-2345</phonenumber> <br />  <airtime>40</airtime> <br />  <rate>0.07</rate> <br />  </phonecall><br />  </phonebill><br /><br />and give binding $record.phonecall[*]<br />now see preview.your subform repeated no of phonecall odes in xml doc.<br /><br />or <br /><br />if u want create subforms on user generated events.<br />do untill inserting subform , components it.<br />put button in subform , write code click as<br /> <br />this.parent.instancemanager.addinstance(1);<br /><br />you find subform repeats every user click.<br /><br />you can download sample adobe website or<br />c:\program files\adobe\designer 7.0\en\samples<br />the default adobe installation directory.<br /><br />amal<br />adodbe forms developer<br />india,monday,march 6,2006


More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments