Configuring Webforms

You can change which attributes display on the webform for an object type. The webform is the page that displays on the Summary tab when the user selects that object.

To create a type-specific webform for an object instead of using parent object's webform, you can do so following the procedure below. You can also use these instructions as a guideline for editing an existing webform.


Before you begin:

Log in to the Business application.

  1. Run the following MQL commands.
    Run MQL from the Live Collaboration Server folder or from 3DSpace. For more information, see Installation and Setup | Administrate | 3DEXPERIENCE Platform | 3DSpace | Collaboration and Approvals | Administrative Utilities | Running MQL
  2. Clone the parent webform to create a webform for the child that does not already have a type-specific webform. MQL>copy form type_MCADComponent <SYMBOLIC_NAME_OF_OBJECT_TYPE> web;
    For example, MQL>copy form type_MCADComponent type_SWComponent web;
  3. Edit child web form using following MQL commands:
    1. To add a field: MQL>modify form <SYMBOLIC_NAME_OF_OBJECT_TYPE> field name 'Subject' label 'Subject';
      For example, MQL>modify form type_SWComponent field name 'Subject' label 'Subject';
    2. Edit the expression to indicate the value that should display for that field in the webform: MQL>modify form <SYMBOLIC_NAME_OF_OBJECT_TYPE> field modify name 'Subject' businessobject '$<attribute[attribute_Subject].value>';
      For example, MQL>modify form type_SWComponent field modify name 'Subject' businessobject '$<attribute[attribute_Subject].value>';

      The attribute must be configured for the type before you add it to the webform. See Adding Attributes to Types for more details.

    3. Edit settings as shown below.

      MQL>modify form <SYMBOLIC_NAME_OF_OBJECT_TYPE> field modify name 'Subject' setting Editable TRUE setting 'Field Type' attribute setting 'Registered Suite' DesignerCentral ;

      For example:

      MQL>modify form type_SWComponent field modify name 'Subject' setting Editable TRUE setting 'Field Type' attribute setting 'Registered Suite' DesignerCentral ;

      The Field Type is set to "attribute" with Editable true or false based on need.

      The Field Type can also be a JPO for more specific customization. Refer to the Legacy ENOVIA Web Apps Customization Guidefor information on customizing JPOs.

    4. To configure access, add an Access Expression field to the settings:

      MQL>modify form <SYMBOLIC_NAME_OF_OBJECT_TYPE> field modify name 'Subject' setting 'Accesss Expression' '$<attribute[attribute_IsVersionObject].value> == False';

      For example:

      MQL>modify form type_SWComponent field modify name 'Subject' setting 'Accesss Expression' '$<attribute[attribute_IsVersionObject].value> == False';

      For example, the above Access Expression only displays the field if the business object is a revision object.

      To add individual users, roles, or groups -

      MQL>modify form <SYMBOLIC_NAME_OF_OBJECT_TYPE> field modify name 'Subject' user <USER_NAME> |all;

      For example,

      MQL>modify form type_SWComponent field modify name 'Subject' user all;

      For more information, see MQL Concepts ->Modeling Web Elements -> Forms