Low Code Example using Javascript Classes

About This Space

This example shows how to build a javascript class from database information


Last updated on November 17, 2022

Public Permissions:   View   Run   Comment  

Build Javascript Class from Database Information

This template provides an example of how to utilize a javascript class created from database information. Classes can be placed in a global variable which will allow any routine in the same Rich Display File to access the information (without requiring you to pass the information as a parameter).

Classes can also be placed into a session variable and used in any place in the application where session variables can be accessed.

Screenshot

The Create Employee Class button demonstrates creating a javascript class using information retrieved from a database.

Screenshot

The Display Employee Name button shows how methods defined within a class can be called by any Low Code routine within the Rich Display File (or any low code routing within the application if the class is stored in a session variable).

Screenshot

The Display Employee Class Information button shows another example of accessing class information by any Low Code routine within the Rich Display File (or any low code routing within the application if the class is stored in a session variable).

Using classes help achieve the following:

  • Reduces the need for writing extra code.
  • Reduces duplication of logic by promoting resuability.
  • Reduces application complexity resulting in easier maintenance.
  • Reduces Needless calls to the database, resulting in better application performance.

*NOTE: This is a Server Side Example of Class Usage

Be the first to comment:      

Comments

Write Preview Markdown: bold italic code link
Post

Filters:

Popular Recent

Session StopWatch using javascript classes

406

0

0

Simple CRUD with Edit Screen

1630

0

0

Simply Low Code Inquiry Application

2156

0

0

Example of using javascript classes with Low Code

2114

0

0

Example of using winston logger with Low Code

2217

0

0