ItemLedgerEntry.SETFILTER("Item No.", '1000'); ItemLedgerEntry.SETRANGE(Description, 'Bla Bla Bla'); TempXml := '<?xml version="1.0" standalone="yes"?>' +'<ReportParameters name="My Report" id="50000">' + '<Options>' + '<Field name="DummyOption">true</Field>' + '</Options>' + '<DataItems>' + '<DataItem name="Item Ledger Entry">' + ItemLedgerEntry.GETVIEW(FALSE) + '</DataItem>' + '</DataItems>' +'</ReportParameters>'; TempXml := MyReport.RUNREQUESTPAGE(TempXml); MESSAGE(TempXml);
Answers
Where MyReport (ID 50000) looks like this:
P.S: Note that the field Description is not available on default ReqFilterFields.