i have created a View InventTransWithBranchDept with following records for the Item "TV":

now here is my code, the while loop on asIsTable is just not picking the row with null or empty Department
LF_InventTransWithBranchDeptDimView grpTable;
LF_InventTransWithBranchDeptDimView asIsTable;
while select grpTable
group by grpTable.Branch , grpTable.Department, grpTable.ItemId
where grpTable.ItemId == "TV" //"10059"
{
while select asIsTable
where asIsTable.Branch == grpTable.Branch
&& asIsTable.Department == grpTable.Department
&& asIsTable.ItemId == grpTable.ItemId
{
info( strFmt( "%1 - %2", asIsTable.Qty , asIsTable.Department) );
}
}
i have tried this too but no luck -
( ( asIsTable.Department == "" && grpTable.Department == "")
|| && asIsTable.Department == grpTable.Department )
any help here would be appreciated
- San
*This post is locked for comments
I have the same question (0)