DLG_MAINTOPT Dialog Component
The DLG_MAINTOPT dialog component contains two radio buttons and two buttons.
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
Set to "RadioButton"
General > Enable rules set to TRUE. General > Require value set to TRUE.
Define Choices > List type is set to "Static". Define Choices > Choices is set to: Clear Empty Carts|cart Pack or Re-Index Tables |PR
Changed from "Submit" to "Run"
Changed from "Reset" to "Cancel"
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