Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Builds the Admin index page entries for this module.
- *
- * Inputs: prgCtx - Program context for the request.
- * request - Information submitted with the request.
- *
- * Output: retVal.ok - Operation success flag
- * retVal.ErrMsg - Error message if the operation fails
- * retVal.ApiError - Actual error encountered
- * retVal.Data - Describe the data returned (if any)
- */
- function Assoc Execute( Object prgCtx, Record request )
- Assoc retVal
- retVal.ok = false
- retVal.ErrMsg = Undefined
- retVal.ApiError = Undefined
- retVal.Data = Undefined
- String scriptName = request.SCRIPT_NAME
- String modName = os.FileName(this)
- Assoc sections
- Assoc section_1 = ._NewSection()
- Assoc section_1_1 = ._NewSection()
- //Admin Section
- section_1.anchorName = [CAPNFDLU_LABEL.AdminPagesAnchorName]
- section_1.heading = [CAPNFDLU_LABEL.AdminPagesTabName]
- sections.(modName) = section_1
- //Configure Module Parameters
- section_1_1.anchorHREF = Str.Format("%1?func=capnfdlu.ConfigureModuleParameters", scriptName)
- section_1_1.heading = [CAPNFDLU_LABEL.AdminPagesConfigureModuleParametersHeading]
- section_1_1.text = [CAPNFDLU_LABEL.AdminPagesConfigureModuleParametersText]
- section_1.sections.( section_1_1.heading ) = section_1_1
- retVal.ok = true
- retVal.sections = sections
- if (!retVal.ok)
- if (IsUndefined(retVal.ErrMsg))
- retVal.ErrMsg = Str.Format("Unknown exception while executing CAPNFDLU's AdminIndexCallback.Execute")
- end
- end
- return retVal
- end
- CAPNFDLU_LABEL.AdminPagesAnchorName = capnfdlu
- CAPNFDLU_LABEL.AdminPagesTabName = capSpire Download Utility for Newfield
- CAPNFDLU_LABEL.AdminPagesConfigureModuleParametersHeading = Configure Module Parameters
- CAPNFDLU_LABEL.AdminPagesConfigureModuleParametersText = Configure settings for this module.
- CAPNFDLU_CONFIGADDITIONALPARAMS_LABEL.PageTitle = capSpire Download Utility : Configure Module Parameters
- CAPNFDLU_CONFIGADDITIONALPARAMS_LABEL.PageHeading = capSpire Download Utility Configure Additional Parameters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement