Using the Client Framework Classes

The AB Suite System Modeler offers a new Framework object, Glb.ClientManager, to improve list management and dynamic attribute specification that can be integrated with the Client Framework.

The System Modeler also offers List attributes to provide dynamic list behavior. Lists can be instantiated and used in logic to hold list items, such as user-defined classes and primitive classes.

To add a List attribute, perform the following:

  1. Create a definition of the items that you want to add to a list.

    To create a user-defined class, perform the following:

    1. In the Class View window, add a class to a segment or a Technology folder.

    2. Add member attributes to the class to form a structure.

    3. Set the Visibility property of the member attributes to Public.

    To create a primitive class or Primitive type, perform the following:

    1. In the Class View window, add a class or a Primitive to a segment or a Technology folder.

    2. In the Properties window of the class, set the following properties to complete the definition:

      • Primitive – Select a primitive type, such as a String, National String, Date, Number, or Signed Number.

      • Length – Enter the maximum length (number of characters or digits) the attribute can hold.

      • Decimal – Enter the number of decimal places. This property only applies to numeric data.

  2. Create an instance of the list by performing the following:

    1. Add an attribute to the ispec where you want to use the list.

    2. In the Add New Attribute dialog box, set the Template property to the user-defined class or Primitive that you defined in Step 1.

    3. Select the List check box.

  3. Add a method to the ispec, and then open the logic editor.

  4. Use the Add() method in logic to add items to the list object.

    Refer to the Agile Business Suite Programming Reference Manual for more information on using the Add() method in logic.

The Glb.ClientManager framework class provides the ability to send a list to the client form by using the SendDynamic method. The list is exposed to the form in a DataModel as a collection, which can be easily bound to list-based controls.