EditDataItemValueSet

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalBoolean EditDataItemValueSet( SalNumber nEditFlagSet, SalNumber nValue )

The EditDataItemValueSet method sets the value of a data item and optionally marks the item as edited.

Parameters

Name Description
SalNumber  nEditFlagSet Indicator to tell if the data item should be marked as edited after the value has been set. Specify true or false for this parameter.( 1- true , 0 - false)
SalNumber  nValue String handle of the value to set. For date fields the string should be formatted as YYYY-MM-DD-HH24.MI.SS, for numeric values it should be formatted with a dot (.) as the decimal number.

Returns

The return value is true if the value was successfully set, false otherwise.

Example

private void frmRiskHeaderDetail_MessageActions(ref SalMessage message)
{
	#region Actions
	switch (message.Code)
	{
		
		case Ifs.Fnd.ApplicationForms.Const.PM_DataRecordDuplicate:
			this.frmRiskHeaderDetail_OnPM_DataRecordDuplicate(ref message);
			break;
	}
	#endregion
}

private void frmRiskHeaderDetail_OnPM_DataRecordDuplicate(ref SalMessage message)
{
	#region Actions
	message.Handled = true;
	this.bReturnVal = 
Sal.SendClassMessage(Ifs.Fnd.ApplicationForms.Const.PM_DataRecordDuplicate, Sys.wParam, Sys.lParam); if (Sys.wParam == Ifs.Fnd.ApplicationForms.Const.METHOD_Execute && this.bReturnVal == true) { this.cmbRiskAnalysisId.EditDataItemValueSet(1, SalString.Null.ToHandle()); <more code....> } message.Return = this.bReturnVal; return; #endregion }