MMpy.FormSet
Syntax
MMpy.FormSet(command_name, version_number='')
Description
Create a new form set for the specified command.
Parameters
Name |
Type |
Description |
---|---|---|
command_name |
int or string | The ID or name of the command to create the form set for. |
version_number |
string (optional) | Version number of the form set. |
Returns
Type |
Description |
---|---|
MMpy.FormSet | A new form set object instance. |
Notes
Integer IDs are the preferred way of initialising a form set object. This is to ensure the best forwards compatibility with future versions of the application.
Starting from v2020, the script recorder will always record the command_name parameter as an integer ID.
If a string is passed in for the command_name parameter, be sure to provide the current version number of the application so that form sets can be dynamically upgraded in the future. Without this, the user may lose the ability to run the script with future versions.
Examples
formset = MMpy.FormSet('DBFILTER', '20.0.0.0')
Resource ID
IDPH_FORMSET_CSTR