Hello All,
I need to show ProductSubType in Form InventOnHandItemListPage's Grid.
I try some methods, but no work, please help and thanks in advance.
try to get InventTable.productSubType() in Form InventOnHandItemListPage, but get empty.
try add productSubtype2() method in InventTable, then in Form InventOnHandItemListPage's Grid to show, but get empty.
public display EcoResProductSubtype productSubtype2()
{
InventTableExpanded inventTableExpanded;
EcoResProductSubtype pSubType;
select inventTableExpanded where inventTableExpanded.ItemId == this.ItemId;
pSubType = inventTableExpanded.ProductSubtype;
return pSubType;
}
try add productSubtype() method in InventSum, then then in Form InventOnHandItemListPage's Grid to show, but get empty.
public display EcoResProductSubtype productSubtype()
{
InventTableExpanded inventTableExpanded;
EcoResProductSubtype pSubType;
select inventTableExpanded where inventTableExpanded.ItemId == this.ItemId;
pSubType = inventTableExpanded.ProductSubtype;
return pSubType;
}
//Jen 191128
public display EcoResProductSubtype productSubtype2()
{
EcoResProduct eProduct;
EcoResProductSubtype pSubType;
select eProduct where eProduct.DisplayProductNumber == this.ItemId;
pSubType = eProduct.productSubtype();
return pSubType;
}
//Jen 191128
public display EcoResProductSubtype productSubtype3()
{
InventTable iTable;
EcoResProductSubtype pSubType;
select iTable where iTable.ItemId == this.ItemId;
pSubType = iTable.productSubtype();
return pSubType;
}