Scripting enhancements for Lawson applications

New scripting methods

Description
ControlsUtil static methods:
  • AddHelpMenuItem: Adds a custom item to the form help dropdown
  • AddRelatedMenuItem: Add a custom item to the form related menu
  • SetupDrillSelect: Enables a custom textbox for Drill Select and to optionally perform a Rules call to retrieve the Select value description
  • AddDrillSelectKey: Adds a field that provides additional keys values required for the Selec
  • A new static class (KeyNumbers) is added to provide constants to use with SetupDrillSelect and AddDrillSelectKey. The Object Viewer of the Lawson Script Tool provides examples of its usage.
IForm methods:
  • ScriptActionSucceeded: Signals a mashup of success of a script action
  • ScriptActionFailed: Signals a mashup of failure of a script action
IForm properties:
  • IsBatchToken: Indicates whether the form is a batch token
  • IsMashupMode: Indicates whether the form is running as part of a mashup

New script examples added to developer documentation

Script examples have been added for these topics:
  • Adding menu items
  • Using SetupDrillSelect
Related documentation Smart Office Developers Guide for Infor Lawson