A030 – Create a business object

What you will learn ?

This procedure allows to create a business object with:

  • Translations
  • Access rights
  • Location in a domain

STEP 1: Access to wizard

There are 2 ways to access the wizard :

  • From the Administration menu Create a business object
  • From an object diagram / right click Insert Business object

Prerequisites:

  • Having created a module and an application domain (menu) that contains the business object
  • Having created right groups (roles) that access to the object
  • Having set EASYMODE_DEFAULTMODULENAME system parameter to its module

Exercise:

Create an object diagram:

  • Click on  icon of the gadget Diagrams on the header
  • Select a template ModelBusinessObject  
  • Give it a name = ModelApplication and keep SVG type.
  • Click on Create to instantiate an empty model.
  • Right click on the work area of the diagram and choose Add then Create a business object

STEP 2: Create a business object

In this step, you must:

  • Complete a single name using a naming convention (such as Java object convention: upper first letter, prefixed by a code for the application)
  • Enter a name to create a physical table in the database (do not use keyword such as orderfrom, etc., only the keyword select can be used to tell Simplicité that object will be a view for advanced use).
  • Select the application module that contains the object

Click Next

Exercise:

  • Create an object AppClient on the app_client table in the MyModule module

STEP 3: Translate object

  • Enter a translation in each language
  • Click on Next

Exercise:

  • Translate AppClient by Customer

STEP 4: Give rights


In this step, you must check for each group the access rights to the object AppClient:

  • Read
  • Create
  • Update
  • Delete

Then click Next.

Exercise:

  • Give at minimum read / create / update / delete the MyAdminGroup group

STEP 5: Select a domain

In this step, you put the object into a domain:

  • Select the application domain in which the object will be available
  • Click on Next

Exercise:

  • Put the object AppClient in MyDomain

STEP 6: Access to object form

The object form allows you to change the object properties

Exercise

  • Find the property Use form
  • Change it to no
  • Clear cache and test it
  • The result is that the platform does not allow the use of form for that object (You can just see the records by list).

A020 – Create a user

Create a user and give him rights

A040 – Create an object field

This procedure allows to create a new field to an existing business object with:

  • Translations
  • Its value list
  • Position in the template of the object