MMpy.DataGrid.serialise
Syntax
datagrid.serialise()
Description
Serialises the data grid object to a string which can be then used in the form set set_field function.
Returns
Type |
Description |
---|---|
str | A string representation of the data grid object. |
Notes
This function is not used with v2020+ recorded scripts - form sets are now able to accept these objects directly.
Examples
datagrid = MMpy.DataGrid(...) ... # Older recorded scripts formset.set_field("DATAGRID", datagrid.serialise()) # Newer recorded scripts (v2020+) formset.set_field(123, datagrid)
Resource ID
IDPH_DATAGRID_SERIALISE