protected virtual void SOFieldMapping_SourceObject_FieldSelecting(PXCache cache, PXFieldSelectingEventArgs e) { SOFieldMapping row = e.Row as SOFieldMapping; if (row != null) { List <string> sourceObjects = GetSourceObjects(); PXStringListAttribute.SetList <SOFieldMapping.sourceObject>(cache, row, sourceObjects.ToArray(), sourceObjects.ToArray()); } }
protected virtual void SOFieldMapping_SourceField_FieldSelecting(PXCache cache, PXFieldSelectingEventArgs e) { SOFieldMapping row = e.Row as SOFieldMapping; if (row == null || String.IsNullOrEmpty(row.SourceObject)) { return; } List <string> sourceFields = GetSourceFields(row.SourceObject); PXStringListAttribute.SetList <SOFieldMapping.sourceField>(cache, row, sourceFields.ToArray(), sourceFields.ToArray()); }
protected virtual void SOFieldMapping_TargetField_FieldSelecting(PXCache sender, PXFieldSelectingEventArgs e) { SOFieldMapping row = e.Row as SOFieldMapping; if (row == null || String.IsNullOrEmpty(row.TargetObject)) { return; } List <string> values = new List <string>(); List <string> labels = new List <string>(); GetTargetFields(values, labels, row.TargetObject); PXStringListAttribute.SetList <SOFieldMapping.targetField>(sender, row, values.ToArray(), labels.ToArray()); }