divya_p02 - Tuesday, July 5, 2011 5:02 AM:
Hi,
I have a question like when ever we create a new item type, a associated form gets created automatically. But where are these forms stored(Location - in any of the folder of aras installations).
Suppose if i want to call this form in my web application (like code behind page-.cs page). how can we do so.
Any clue on this would be of great help
Regards,
Divya
eric_h - Tuesday, July 5, 2011 11:32 AM:
Divya,
When you create a new item type in Aras, quite a few things get populated in the database. A new row is added to the itemtype table. Also, a new table is created in the database named after what you called the new item type. For the form, a new row is populated in the from table and also body table. When you add fields to the form via the form builder in Aras, fields are then added to the database. Also, there is a set of core properties that are created when you create a new item type.
I guess this point is, all of this ends up residing in the database and is not stored in a folder in the file system. Aras uses the values stored in the database to generate the forms you see. I do not have enough experience to answer your second question so maybe someone else can help.
Eric
Brian - Wednesday, July 6, 2011 5:29 AM:
Hi Dvya,
As Eric says the form is not stored as a form. You could recreate the form by retrieving all the elements of the form from the database (the are all Item types in Innovator) by using the same type of code you would use to retrieve any Parent/Child hierarchy from Innovator.
If you look at the "Form" Item Type you will see that a Form has a "Body" Relationship type which in turn has a "Field" Relationship type. These are slightly unusual in that they are Null relationships which in turn have relationship types.
So you could retreive the Form item and pull the Form properties from it, then retrieve the Body Item(s) for the Form and then retrieve the Field items for the Body. The field items would have information on placement, size etc.
It should therefore be possible for you to re-create the form from the information in the database. If you wanted to do this I would look at the javascript ui_methodsEx.js and specifically at the uiTabViewItemEx code.
You might, however, find it easier to figure out what forms you want to display and re-create them in as html pages.
Hope this helps,
Brian.