Command Definitions |
![]() ![]() ![]() |
MoreMotion supports a concept called "Page Command Definitions" in order to control the way a page is accessed. The configuration element command and its child element param are used to define the valid commands and their parameters that can be given when accessing a particular page. 0 or more command definitions can be made for a page. If a command definition is made for a page then the page cannot be accessed without a command parameter ("_cmd"). The command Element
The Attributes of command Element name Attribute Defines the name of the command that can be used when accessing to the page. clearPageVars Attribute (Accepts MScript) The names of the page variables separated with commas to be cleared when this command is used. If a variable name contains an "*" at the end then it means generic delete and all the page variables starting with it are deleted when this command is used. The value "true" means delete all the page variables. clearSessionVars Attribute (Accepts MScript) The names of the session variables separated with commas to be cleared when this command is used. If a variable name contains an "*" at the end then it means generic delete and all the session variables starting with it are deleted when this command is used. The value "true" means delete all the session variables.
The nested param Element The parameters of a command is defined using the nested element param. The Attributes of param Element The name of the request parameter. scope Attribute (Accepts MScript) This attribute is specified if the value of the parameter should be saved either as page variable or a session variable. The valid values for the attribute are "p" for page variable, and "s" session variable. mandatory Attribute (Accepts MScript) Should contain true is this parameter must be supplied along with the command. nonBlank Attribute (Accepts MScript) Should contain true if the parameter must have a value when used for the command. encrypted Attribute (Accepts MScript) Should contain true or an encryption key if the parameter contains an encrypted value. If true is used as the value then the encryption key is the value of the name attribute. notAllowed Attribute (Accepts MScript) Should contain true if this parameter cannot be given with the command. initialValue Attribute (Accepts MScript) Defines the default value if this parameter is not specified of has no value.
Examples:
display.doms?pg=PageX&_cmd=ShowDetails&ID=!723wgdwgj&FULL_DETAILS=false
display.doms?pg=PageX&_cmd=Navigate&BLOCK_NUMBER=2
|