Recommendations

Visual LANSA Framework

Recommendations
  • As you develop more AJAX pages you will probably start to build up a library of common JavaScript functions. These are best externalized in a separate .JS and shared by all your AJAX pages, rather than repeated.

 

  • Set up some naming and usage standards for the content of the virtual clipboard. This will make life easier for other developers, encourage reuse and minimize information bloat. For example:

 

Major Name Space: AJAX (virtual clipboard name part 1)

Minor Name Space: CUSTOMER (virtual clipboard name part 2)

Object Name (Name Part 3) Description Type

NAME

Current Customer Name

String – max 40

ZIPCODE

Current Customer Zip Code

Number – 6 digits

 

In effect, you have AJAX.CUSTOMER.NAME and AJAX.CUSTOMER.ZIPCODE

 

Major Name Space: AJAX (virtual clipboard name part 1)

Minor Name Space: PRODUCT (virtual clipboard name part 2)

Object Name (Name Part 3) Description Type

NUMBER

Current Product Number

Number – 7 digits

NAME

Current Product Name

String – max 40

PRICE

Current Product Price

Number – 11 digits, 2 decimals

 

Major Name Space: ACCOUNTING (virtual clipboard name part 1)

Minor Name Space: USER (virtual clipboard name part 2)

Object Name (Name Part 3) Description Type

USRPRF

System i User Profile

String – max 10

PRINTER

Default Printer

String – max 10