The while statement I'm about to write is as follows.
===================================================================================================================================
while select SumOth
where SumOth.ItemId == this.ItemId
join DimOth
where DimOth.inventDimId == SumOth.InventDimId
&& DimOth.InventSiteId == this.InventSiteId
join LocaOth
where LocaOth.InventLocationId == DimOth.InventLocationId
&& LocaOth.TYM_PartsSalesBranchOffice == NoYes::Yes
join CusOth
Where LocaOth.TYM_BranchOffice != CusOth.SegmentId
&& CusOth.AccountNum == this.CustAccount
{
ResultSumOth += SumOth.AvailPhysical;
}
this.OtherStock = ResultSumOth;
===================================================================================================================================
I want to add a value by adding a Computed filed
'while select statement' and
put it in a 'string computed filed'.
I expected the use of 'SysComputedColumn' in the 'while select statement' text to come out as intended, but it didn't.
If you know how to do it or have similar experiences, please leave a comment. Thank you for reading it.
I am currently using dynamic365(Finance&operations) as the visual studio 2017 version .