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

SUPPORT Q&A - Regarding Forms

solidcad - Sunday, November 2, 2008 10:38 PM:

Hi

I have created a form using the aras form controls and linked it to the datasource. Now i am having two problems, they are

1. When i put a group of controls in to an html control, i am not able to access some of those controls. How to resolve this?

2. I want to show a particular set of controls, on selecting a particular product type . How can i acheive this?

I am a new user in aras and appreciate any help in this regards

regards

sriivatsav

 

 

 



tstickel - Thursday, November 13, 2008 1:23 PM:

I will give this a try by answering your second question first.


2. I want to show a particular set of controls, on selecting a particular product type . How can i acheive this?

One way to do this is to use Innovator Classification.  A quick overview on what you need to do is:

a.  Go to your Itemtype definition and create a Classification structure for the Itemtype.
As an example, look at the Classification structure that has already been defined for the Part Itemtype.

b.  For each Itemtype property that you want to appear based on the Classification structure, put an entry
in Class Path attribute.  For example you would enter "/Part/Material" as the Class Path for a property that
you only wanted to appear for Part Itemtypes with that classification.

c.  Next create a basic form for the Itemtype that contains all of the properties that will appear regardless of
the classification.  This basic form will be used as a template for the classification-specific forms.  You
must be sure to include the "classification" property on this form (its labeled as "Type" when it is
displayed on the form (again see the Part Form as an example).

d.  Next make a copy of the basic form and add the classification-specific properties that you want to appear on the form.
For example, you could copy the existing Part Form and name the copy, "PartMaterial".  Then add the properties that you
had designated as "/Part/Material" to the PartMaterial form.  Innovator will want you to place these fields at a
specific location on the form, but don't worry about this initially.  After testing it will become clear where they should be placed.

Also you must add a Form Event, calling method "Show Class-Specific Fields", as an onFormPopulated event.  This
method should already exist.  Look at the FormEvent tab on the Part Form for an example.

Repeat this entire step for classification-specific Form you need.

e.  Go back to your Itemtype definition and click on the views tab.  There will already be a default form listed.
Now add the forms that you created in step d to the list of forms.  They should all be type=default and have a
Classification entry set (e.g. "/Part/Material").

f. I would then log-off Innovator and log back on.  Then try it out,  I don't guarentee that I have the steps exactly correct!!!!

1. When i put a group of controls in to an html control, i am not able to access some of those controls. How to resolve this?

I am curious as to what controls you grouped into an html control.  I have done experiments where I placed a
set of Text controls (with Itemtype properties as data sources) into an html control that defines a html table.  Each
Text control was a detail cell in the html table.

terry



Stuart Hodder - Wednesday, September 9, 2009 12:08 AM:

My workaround for this problems is as follows:

  1. Edit the Part Item Tpye.  Create the new properites as not class-specific.  You might like to use a mnemonic name that includes the classification, e.g. SW_build_number with label Build Number.  Save the Part Item Type.
  2. Edit the Part Form.  Add the new properties to the lower part of the part form.  There is no problem adding these properties as they are not class specific.  You just have to be careful about location - want to make it with a Y value >= 250.
  3. Make the fields that pertain to Class Specific properties invisible (on the Field Physical Tab). Save, Unlock and Close the Part Form.
  4. Edit the Part Item Type again, and make the fields Class Specific.  Save, Unlock and Close the Part Item Type.
  5. Open the Part Form and select the Part/Software classification to make the class specific fields visible when editing or editing data for software.