createFormulaParameterDictionary(paramValue, minValue, maxValue, isSticky, isVisible, isReadOnly)

Sepasoft MES Module Suite

createFormulaParameterDictionary(paramValue, minValue, maxValue, isSticky, isVisible, isReadOnly) 

Method on Ignition.mes.batch.formula
Creates a python dictionary in the format expected for setFormulaParameterFields.
Note Version specific: MES 3,81.11 RC1 and later.

Returns:

No return value.

Parameters

paramValue
Optional value for the formula parameter value.

minValue
Optional value for the minimum value for the parameter.

maxValue
Optional value for the maximum value for the parameter.

isSticky
Optional value for if this parameter is sticky.

isVisible
Optional value for if this parameter is visible when not in Admin mode.

isReadOnly
Optional value for if this parameter is read only when not in Admin mode.

Returns

A python dictionary that can be passed into setFormulaParameterFields.


Python
params = {}
for p in range(phases):
	for param in range(parameters):
		paramPath = '/{}:P' + str((p+1)*2-1) + '.' + str(param)
		params[paramPath] = system.mes.batch.formula.createFormulaParameterDictionary(paramValue='123', readOnly=True, visible=True, sticky=False)

system.mes.batch.formula.setFormulaParameterValues(
	formula, 
	params
)



















Sepasoft MES Module Suite