Is it possible to convert following lines of code using RecordRef & FieldRef....?
...
IF Cust.FINDFIRST THEN REPEAT
CustG.SETRANGE("No.",Cust."No.");
CustG.SETFILTER("E-Mail",'<>%1','');
CustG.SETRANGE("Date Filter","Start Date","End Date");
IF CustG.FINDFIRST THEN BEGIN
REPORT.RUNMODAL("Object No.",FALSE,FALSE,CustG);
...
No, it is not possible, because you cannot use recordref when running form or report... there is no dynamic way how to run any form or report with any table as parameter... sorry...
with some changes and use the hyperlink it's possible. But not so easy.
first you must know which form / report you will call second you must set filter in Recref.
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
first you must know which form / report you will call second you must set filter in Recref.
RecordRef.SETTABLE(Rec) -> Rec := RecordRef
RecordRef.GETTABLE(Rec) -> RecordRef := Rec
Or maybe vice versa...
Regards,
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Record.SETVIEW(RecordRef.GETVIEW);
?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.