project QadFinancials > class BResource > method NumberOfLinksBetweenResourceAndMndDet

function returns integer

Description

Return the number of mnd_det records that refer to a certain resources record.


Parameters


icURIinputcharacter


Internal usage


BLF
method BResource.ApiLinkResource


program code (program1/bresource.p)

define variable oiReturnStatus as integer no-undo.

<Q-1 run MenuDetailByURI (all) (Read) (NoCache)
   (input icURI, (Uri)
    output dataset tqMenuDetailByURI) in BMfgMenu >
    
assign viCnt = 0.
for each tqMenuDetailByURI:
    assign viCnt = viCnt + 1.
end.

return viCnt.