OnInit EVALUATE(varReportID,COPYSTR(CurrReport.OBJECTID(FALSE),8,STRLEN(CurrReport.OBJECTID(FALSE)) - 7)); // get ID report recRtlUsrStpRprt.SETRANGE("User Name",USERID); recRtlUsrStpRprt.SETRANGE("Report ID",varReportID); IF recRtlUsrStpRprt.FINDSET THEN BEGIN varFilter := ''; REPEAT IF varFilter = '' THEN varFilter := recRtlUsrStpRprt."Location ID" ELSE varFilter += '|' + recRtlUsrStpRprt."Location ID"; UNTIL recRtlUsrStpRprt.NEXT = 0; END ELSE ERROR(Text01,USERID); OnPreDataItem IF STRPOS(varFilter,Item.GETFILTER("Store Filter")) = 0 THEN BEGIN ERROR(Text02,USERID); CurrReport.QUIT; END;
Answers
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
update for CheckPermissionReport