Creating the Virtual Business Component

You start by creating the virtual business component.

To create the virtual business component

  1. In the Object Explorer, click Business Component.

  2. In the Business Components list, create a new business component using values from the following table.
    Property Value

    Hierarchy Parent Field

    Id

  3. In Business Components list, right-click the record you created in Step 2, and then click Edit Server Scripts.

  4. In the Scripting Language dialog box, choose eScript, and then click OK.

  5. In the BusComp Script window, expand the BusComp tree, and then click BusComp_PreInvokeMethod.

  6. In the script editing window, remove the existing script, and then enter the following script:

    function BusComp_PreInvokeMethod (MethodName)
    {
    TheApplication().Trace(this.Name() + ".PreInvoke." + MethodName + "()");
     return (ContinueOperation);
    }
    
  7. In the BusComp tree, click BusComp_InvokeMethod, remove the existing script, and then enter the following script:

    function BusComp_InvokeMethod (MethodName)
    {
    TheApplication().Trace(this.Name() + ".Invoke." + MethodName + "()");
    }
    
  8. In the Object Explorer, expand the Business Components tree, and then click Field.

  9. In the Fields list, add fields to your virtual business component using values from the following table.

    Name Type

    Has Children

    DTYPE_BOOL

    Is Expanded

    DTYPE_BOOL

    Last Child Info

    DTYPE_TEXT

    Outline Number

    DTYPE_TEXT