Form MovePaletteForm
- Unit name: Dialogs.MovePalette
- Form name: TMovePaletteForm
- Old form name: form44 (unit 44)
Synopsis
Dialog to allow user to move palette to a location in the database.
Functionalities
- Edit to enter palette number.
- When changed, the current location is cleared.
- On Enter key, execute Search action.
- Button to execute Search action.
- Label to show current palette location.
- Edit to enter location.
- Disabled initially.
- On enter, execute Move action.
- Edit is enabled by search action.
- Button to execute Move action.
- Button to execute Close action.
Actions
Search
- Enabled when a palette number is present.
- When executed, executes the 'Returns.CheckPaletteLocation' service call.
- When successful:
- The result of the call is entered in the current location edit a
- The location edit is enabled, cleared and focused.
Move
- Enabled when a palette number and new location is entered: the new location must differ from the old location.
- Execute the Returns.MovePalette service call, passing the palette code and location code. If the move was successful, the form is closed with modal result mrOK.
Close
- Always enabled.
- Close dialog with mrCancel modal result.
Tables/Views
None.
Needed Service Calls
Returns.CheckPaletteLocation
To check the current location of the palette.
Returns.MovePalette
To move the pâlette to a new location.
Reports
None.