Defining reference objects for a primary object
You can use reference objects, collection reference objects, and parent reference objects to represent relationships between primary objects. Reference objects represent association relationships between two primary objects, such as merchandising associations. Parent reference objects represent parent-child relationships between two primary objects in which each child can have only one parent, such as a product in a master category. Collection reference objects represent a parent-child relationship between two primary objects in which each child can have more than one parent, such as a sales category within another sales category.
Before you begin
- Review the Management Center modeling guidelines.
- Create the Management Center services required to support the reference object, such as create, update, or delete services.
- Work with these services to develop client libraries, new commands, and business logic.
- Create new Management Center objects.
- For more information about reference object definitions, review the following classes:
- Define a lzx/commerce/foundation/restricted/BrowseService.lzx/wcfGetChildrenService class under the parent lzx/commerce/foundation/restricted/ObjectDefinition.lzx/wcfPrimaryObjectDefinition class hat returns instances of the new reference object.
Procedure
What to do next
- Right-click LOBTools Project; then click Build OpenLaszlo Project to produce an updated ManagementCenter.swf file under the WCDE_installdir\workspace\LOBTools\WebContent directory. This setting is the default environment setting.
- Test your work by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
- Deploy your files to your production environment.