VFW120 – Using Hidden Commands
Hidden Command Handler Anatomy
- Hidden commands are run in the same way as other commands but do not appear on tabs or in separate windows and are hidden from the user
- Are used to perform non-visual tasks.
- For Windows applications hidden commands are reusable parts with an ancestor of VF_AC020.
- Have most non-visual VL Framework and instance list services available to them.
Structurally, Hidden Command Handlers for Windows applications are similar to Windows Command Handlers with these important differences:
- They extend the base class #VF_AC020.
- They don't use the optional method .
- They don't use the optional method .
- They don't listen to events.
When using Hidden Command Handlers it is important to remember that they:
- Should always have the option set to NEVER for instance level commands or NO for business object level commands.
- Should never be used with the option set.
- Should never be attached to .
- Should never attempt to display information to the user or interact with the user. Hidden means hidden
Objectives
- To create a demonstration hidden command, 'Reverse', which will act on the current instance list entry and reverse the employee full name string.
- This is a quick and simple example to demonstrate the principle.
To achieve this objective you will complete the following steps:
Step 1. Add Reverse as a Hidden Command for Employees
Step 2. Create the Reverse Command
Step 3. Plugin and Test Reverse Command
Before You Begin
Complete exercises VFW030, VFW040 and VFW042.