MMpy.FormSet.open
Syntax
formset.open(set_id, storage_type=MMpy.StorageType.project)
Description
Opens a form set from the specified storage, loading the contents into the form set object. This does not run the form set upon loading.
Parameters
Name |
Type |
Description |
---|---|---|
set_id | int | The form set ID to open. |
storage_type | MMpy.StorageType (optional) | The storage type to open the form set from. |
Returns
Type |
Description |
---|---|
bool | Returns if the open was successful or not. |
See Also
MMpy.FormSet.load()
Notes
By default the project storage type is used if no parameter is supplied.
Valid choices for storage_type are:
- MMpy.StorageType.default
- MMpy.StorageType.project
- MMpy.StorageType.global_ (global is a reserved Python keyword)
- MMpy.StorageType.user
Examples
formset = MMpy.FormSet('WS_LOAD_GRIDFILE', '15.0.0.0') formset.open(1) ... formset.set_field('FILE', 'WOLF_TND.GRD') ... formset.run()
Resource ID
IDPH_FORMSET_OPEN