Dear Support,
I have created custom field usrLookup on Inventoryitem and I want this field to add on column Purchase Order Line.
Please advise.
Thanks,
Idrus
Dear Support,
I have created custom field usrLookup on Inventoryitem and I want this field to add on column Purchase Order Line.
Please advise.
Thanks,
Idrus
Best answer by idrusm52
Thank you
After check with GPT, I got the update code as below that working well.
using PX.Data;
using PX.Data.BQL;
using PX.Objects.IN;
using PX.Objects.PO;
namespace PX.Objects.PO
{
public class InventoryItemExt : PXCacheExtension<InventoryItem>
{
[PXDBString(50, IsUnicode = true)]
[PXUIField(DisplayName = "Lookup Code")]
public string UsrLookup { get; set; }
public abstract class usrLookup : PX.Data.BQL.BqlString.Field<usrLookup> { }
}
public class POLineExtCustom : PXCacheExtension<POLine>
{
[PXString(50, IsUnicode = true)]
[PXUIField(DisplayName = "Part No.", Enabled = false)]
[PXUnboundDefault(typeof(
Search<InventoryItemExt.usrLookup,
Where<InventoryItem.inventoryID, Equal<Current<POLine.inventoryID>>>>))]
[PXFormula(typeof(Default<POLine.inventoryID>))]
public string UsrInventoryLookup { get; set; }
public abstract class usrInventoryLookup : BqlString.Field<usrInventoryLookup> { }
}
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.