Medtun
21st January 2016, 16:53
Hi,
I would add a new field(whwmd530.idat) to a report(whwmd543001000).
This field exists in the same record in table whwmd530 as the other fields displayed in the report.
I tried the code below. It works. but only if i specify whwmd530._index1 = "LR15091102568".
If i set whwmd530._index1 = {:whwmd530.huid}, it doesn't work.
select whwmd530.idat
from whwmd530
where whwmd530._index1 = {:whwmd530.huid} |"LR15091102568"
selectdo
IF whwmd530.idat < utc.num()
THEN F10 = whwmd530.idat
ENDIF
endselect
Do i have to use db.curr() ? if yes, can you please tell me how we can write it ?
I found no examples on the forum.
Thanks.
I would add a new field(whwmd530.idat) to a report(whwmd543001000).
This field exists in the same record in table whwmd530 as the other fields displayed in the report.
I tried the code below. It works. but only if i specify whwmd530._index1 = "LR15091102568".
If i set whwmd530._index1 = {:whwmd530.huid}, it doesn't work.
select whwmd530.idat
from whwmd530
where whwmd530._index1 = {:whwmd530.huid} |"LR15091102568"
selectdo
IF whwmd530.idat < utc.num()
THEN F10 = whwmd530.idat
ENDIF
endselect
Do i have to use db.curr() ? if yes, can you please tell me how we can write it ?
I found no examples on the forum.
Thanks.