DLG_MAINTOPT Dialog Component
Description
The DLG_MAINTOPT dialog component contains two radio buttons and two buttons.
Discussion
The DLG_MAINTOPT dialog component selects an administrative maintenance operation to run. The options include:
Clear empty carts - calls the ASWPROCESSING.A5W page.
Pack or Re-Index tables - calls the ASWPACKREINDEX.A5W page
Containers
ASWMAINTOPT.A5W
Options Control Property Settings
Control Settings > Control type
Set to "RadioButton"
Control Settings > Validation rules
General > Enable rules set to TRUE. General > Require value set to TRUE.
RadioButton Properties > Choices
Define Choices > List type is set to "Static". Define Choices > Choices is set to: Clear Empty Carts|cart Pack or Re-Index Tables |PR
Notable Component Property Settings
Submit/Reset Buttons > Submit button label
Changed from "Submit" to "Run"
Submit/Reset Buttons > Reset button label
Changed from "Reset" to "Cancel"
Event Code
This AfterValidate event code calls the ASWPROCESSING.A5W page or the ASWPACKREINDEX.A5W page based on the option selected.
if alltrim(CurrentForm.Controls.Options) = "cart" CurrentForm.RedirectTarget = "aswprocessing.a5w" elseif alltrim(CurrentForm.Controls.options) = "PR" CurrentForm.RedirectTarget = "aswpackreindex.a5w" end if
See Also