Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

To define a new constant, simply go the the L4G editor , Repository menu , Constant dictionary line (or press F9 )

Image Removed Image RemovedImage Added Image Added

  • The name should be a representative name for the constant,
  • the value is what should replace the constant in the code,
  • the "Translatable constant checkbox is used when a constant must be translated (for example for a text value)

...

The multi-line property of the text object should be checked if you want to see the line return.

Image RemovedImage Added


...

Date, Time and Timestamp

...

1 - Creation of a resource

Image RemovedImage Added

A resource is defined with

...

When using an image (or icon) in a window, we should use a resource instead of importing the image from file system :

Image RemovedImage Added

3 - Benefits of resources

When a resource is used (eventually in multiple programs), if we want to modify an object (image, icon, etc) , we just need to modify the resource, then analyze the resource in order to have the usage of the resource and generate the programs found.

Image RemovedImage Added

For example, if we modify the "reduced icon" image, we just have to modify the resource used and generate the programs. We don't have to go to all the windows to change the Reduced Icon image again. 

...

In order to retrieve the name of the Adelia Logical Entity from the real name of the table , we can use the Maintenance manager accessible from the Session manager .

Image RemovedImage Added

Then, if we select File/Table as object attribute , Logical Entity as Object type , BOLLOGP* (for example) as File name and if we press Find button , the system will show us with all the Adelia Logical files that have this part of name in the physical name :

Image RemovedImage Added

2 - Property naming convention


Image RemovedImage Added

The short name starts with the entity prefix (in this case RH) followed by 4 characters.

...

To search in the source code we can use L4G editor " File / Multisource search " function with the Regular expression check box selected.

Image RemovedImage Added

1 - Search examples

...

Image RemovedImage Added

2 - Generate the JWT token

...

Image RemovedImage Added

3 - Apply the JWT token

To apply the JWT token to the rest call, press the Authorize button on top of the REST API page.

Image RemovedImage Added

Then enter "JWT" , a space character AND the token generated for your user/pass informations.

Image RemovedImage Added

Then press Authorize button.