【发布时间】:2021-12-11 18:56:40
【问题描述】:
I have a stock items attribute added called ACCITEMS which is a multi select combo box and I have to pull those values to the respective sales order line when inventory id is selected, at the moment only 1 attribute value displays instead of multiple selected属性。
[PXDBString(250, IsUnicode = true)]
[PXUIField(DisplayName = "Accessories Items")]
public virtual string UsrAccessoriesFrmStkItems { get; set; }
public abstract class usrAccessoriesFrmStkItems : PX.Data.BQL.BqlString.Field<usrAccessoriesFrmStkItems> { }
#endregion ```
```protected virtual void SOLine_InventoryID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e, PXFieldUpdated InvokeBaseHandler)
{
InvokeBaseHandler?.Invoke(sender, e);
SOLine row = (SOLine)e.Row;
if (row == null) return;
CSAttributeDetail CSAns = PXSelectJoin<CSAttributeDetail, InnerJoin<CSAnswers, On<CSAnswers.attributeID, Equal<CSAttributeDetail.attributeID>>,
InnerJoin<InventoryItem, On<InventoryItem.noteID, Equal<CSAnswers.refNoteID>>>>,
Where<InventoryItem.inventoryID, Equal<Required<InventoryItem.inventoryID>>,
And<CSAttributeDetail.attributeID, Equal<Required<CSAttributeDetail.attributeID>>
>>>.Select(Base, row.InventoryID, "ACCITEMS");
SOLineExt rowExt = row.GetExtension<SOLineExt>();
rowExt.UsrAccessoriesFrmStkItems = CSAns.Description;
}```
【问题讨论】:
标签: c# attributes acumatica