This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Nested Forms?

RonCK - Tuesday, December 15, 2009 9:12 AM:

Hello:

 

    I saw a field type in the demo database called "nested form".  Has anyone used this?  I haven't been able to figure out a way to link that object to another form.  The form tool only seems to want to link it to an item property, which isn't very useful.  Thanks in advance,

RonCK



tstickel - Monday, December 21, 2009 10:11 AM:

Ron;

As a test, I created a new itemtype called "Test".  I defined a property on "Test, called "nested", which is of type=Item and DataSource=Form.

Then on the Form definition for "Test" I added a field called "Nested Form", with its Field Type=Nested Form and Data Source=nested.  Note that you can not directly add a Nested Form field to a form definition, so I added an HTML field instead and just changed its Field TYpe.

When I tested this new form it allowed me to set the value for the "nested" property by selected from the list of available Forms.  As soon as I changed the value of the "nested" property, Innovator would display the associated Form as a sub-form on the display.

I can see where this might be useful where you would want to set the value of the "nested" property via some method instead of manually.  For example, if you wanted a different sub-form to display based on the Classification of the Item (e.g. for Parts, you might want a different sub-form for components vs assemblies).