- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi Tarek,
Sorry my last post was a bit limited. Dragging the field to the (Referenced Objects) node has the same effect as adding the <proto> tab and adding a field underneath it.
So as a simple example, I have a form with two date fields that reference a date field under the <proto> tag.
There are two ways to reference the field under the <proto> tag, the XML Source for this form shows them both.
<subform name="form1" layout="tb" locale="en_AU">
<subform w="8in" layout="tb">
<field name="Today" w="62mm" h="9mm" use="$template.#subform.DateField1"/>
<field name="Tomorrow" w="62mm" h="9mm" use="#Today"/>
<?templateDesigner expand 1?></subform>
<proto>
<field id="Today" name="DateField1" y="41.275mm" w="62mm" h="9mm">
<ui>
<dateTimeEdit>
<border>
<edge stroke="lowered"/>
</border>
<margin/>
</dateTimeEdit>
</ui>
<font typeface="Myriad Pro"/>
<margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
<para vAlign="middle"/>
<value>
<date/>
</value>
<caption reserve="25mm">
<para vAlign="middle"/>
<value>
<text>Date Field</text>
</value>
</caption>
<border>
<edge presence="hidden"/>
</border>
</field>
</proto>
</subform>
</p>
To get the use attributes on the field you need to use the XML Source view. If you are using the second method you also need to use the XML Source to add the id attribute.
It was to avoid using the XML Source view to add the use attribute that I suggested creating a custom object.
But once setup you can use the UI to change say the border color of the field under the "(Referenced Objected)" and all the fields that reference it will pick up the change
You can have a subform under a <proto> tag and that is how I would suggest you handle the AddressAC object rather than adding it to the master page
Views
Replies
Total Likes