protected override void InternalExecute(INode sender, EventParams paramsValue) { var form = paramsValue["AForm"] as IFormInterface; if (form != null && form.MainSource != null && form.MainSource.Active && form.MainSource.DataView != null && form.MainSource.DataView.Active) { var localParamsValue = new Alphora.Dataphor.DAE.Runtime.DataParams(); foreach (DataField field in form.MainSource.DataView.Fields) { localParamsValue.Add(new DAE.Runtime.DataParam(field.Name, field.DataType, DAE.Language.Modifier.Out, field.AsNative)); } BaseArgument.ApplyArguments(this, localParamsValue); } }
protected override void InternalExecute(INode sender, EventParams paramsValue) { var localParamsValue = new Alphora.Dataphor.DAE.Runtime.DataParams(); var process = HostNode.Session.DataSession.UtilityProcess; foreach (KeyValuePair <string, object> entry in paramsValue) { localParamsValue.Add ( new Alphora.Dataphor.DAE.Runtime.DataParam ( entry.Key, // If null, arbitrarily use string entry.Value == null ? process.DataTypes.SystemString : Alphora.Dataphor.DAE.Client.DataSession.ScalarTypeFromNativeType(process, entry.Value.GetType()), DAE.Language.Modifier.Out, entry.Value ) ); } BaseArgument.ApplyArguments(this, localParamsValue); }