Online documentation - Websydian v6.0 |
Users Guide | Patterns Reference | WebsydianExpress | Search |
Implementing Other Uses Parts
The Parameter Store pattern contains a single data entity.
Each instance of the ParameterValue entity specifies a stored field value. The ParameterValue entity is owned by an abstract WebOwner entity which usually will be replaced by the implemented Session entity when the pattern is applied.
Fields:
NameSpace | Key field set to the object name of the variable containing the stored field value. |
ParameterName | Key field which is set to the object name of the stored field. |
ParameterValue | Text field containing the value of the parameter field. |
One abstract function is defined.
All Websydian functions (Page Generators and Event Handlers) using the Parameter Store must inherit from the ParameterStoreShell abstract function. This function provides the Load parameters and Store parameters subroutines that need to be called in order to load and save field values to the Parameter Store.
Two meta-functions are included as Service functions in the Parameter Store pattern. Both functions must be called within a +For Variable meta-construct. These calls are part of the abstract ParameterStoreShell function, but the calls may also be specified explicitly by the developer if using the Parameter Store on other variables (see the Using Parameter Store with Other Variables section of the Other Uses page).
Saves all fields in a specified variable to the Parameter Store.
Loads all fields in a specified variable from the Parameter Store.