Method SetParameterIndex
SetParameterIndex(int, int, int, object, ValueType)
Sets the value of a cell in a table, identified by its 1-based row and column position, with the specified value.
Note that this method should not be used. Using SetParameterIndexByKey(int, string, int, object, ValueType) instead is highly recommended.
bool SetParameterIndex(int iID, int iX, int iY, object value, ValueType timeInfo)
Parameters
iIDintThe ID of the table parameter.
iXintThe 1-based row position.
iYintThe 1-based column position.
valueobjectThe value to set.
timeInfoValueTypeTimestamp.
Returns
- bool
Whether the cell value has changed.
trueindicates change; otherwise,false.
Examples
bool hasSucceeded = protocol.SetParameterIndex(1000, 5, 6, "MyValue", DateTime.Now);
Remarks
- The primary key can never be updated.
- In case multiple cells need to be set, it is preferred to use a single SetParametersIndex method call in order to reduce the inter-process communication between the SLScripting and SLProtocol processes.
- This method acts as a wrapper for a NotifyProtocol type 121 call NT_PUT_PARAMETER_INDEX.
- From DataMiner 10.2.9 onwards (RN 33849), if the DateTime.Kind property of
timeInfois unspecified, the timestamp will be handled as local time.
SetParameterIndex(int, int, int, object)
Sets the value of a cell in a table, identified by its 1-based row and column position, with the specified value.
Note that this method should not be used. Using SetParameterIndexByKey(int, string, int, object) instead is highly recommended.
bool SetParameterIndex(int iID, int iX, int iY, object value)
Parameters
iIDintThe ID of the table parameter.
iXintThe 1-based row position.
iYintThe 1-based column position.
valueobjectThe value to set.
Returns
- bool
Whether the cell value has changed.
trueindicates change; otherwise,false.
Examples
bool hasSucceeded = protocol.SetParameterIndex(1000, 5, 6, "MyValue");
Remarks
- The primary key can never be updated.
- In case multiple cells need to be set, it is preferred to use a single SetParametersIndex method call in order to reduce the inter-process communication between the SLScripting and SLProtocol processes.
- This method acts as a wrapper for a NotifyProtocol type 121 NT_PUT_PARAMETER_INDEX call.