12 12 Tailoring the DEFAULT_SCRIPT

LANSA Web Functions

12.12 Tailoring the DEFAULT_SCRIPT

The standard DEFAULT_SCRIPT shipped with LANSA for the Web is extensive and contains some functions which are not essential for all applications. Consequently it is possible to tailor the script to contain only the functions required by your application. This will result in improved execution performance because the volume of data being transferred to the browser is reduced.

A tailored script can be created for a specific process and named

<process name>_SCRIPT

This script will be used when the specific process is executed.

If you wish to save your tailored script as DEFAULT_SCRIPT, it is strongly recommended that you first save a back up version of the full script.

 

Script function

Required/ Optional

When required

SetButton

Optional

This function must be included if you are using non-scrolling headers. Refer to Non Scrolling Header.

HandleSubmit

Optional

This function must be included if you are using non-scrolling headers. Refer to Non Scrolling Header.

PathOnly

Required

 

GetHelp

Optional

This function handles a request for Help, so it must be included if your functions have Help enabled.

GetExtraInfo

Optional

This function is required if you are retrieving additional information from a Browse List. Refer to 12.7 Retrieve Additional Information from Browse List.

SetSelect

Required

 

SetNameLocation

Required

 

CallCalendar

Optional

This function handles the Calendar control and must be included if you have used this feature. Refer to 12.9 Embed a Calendar Control.

SetDate

Optional

This function handles the Calendar control and must be included if you have used this feature. Refer to 12.9 Embed a Calendar Control

HandleEvent

Optional

This function is required for WEBEVENT functions.

IsValidNumeric

Optional

This function is required if the Validate numerics option on the Process/Function compile was set to YES.

IsDigit

Optional

This function is required if the Validate numerics option on the Process/Function compile was set to YES.

IsValidDBCS

Optional

This is required if the LANSA development language is DBCS.

IsDBCSChar

Optional

This is required if the LANSA development language is DBCS.