Developer's Guide error on Print Current Record

Just learning about printing the current record and think I found an error in the Developer’s Guide section “10.5.4 Printing the current row (record)”. One option is to isolate the current record using a method with these 3 steps

controller.omitRecord()
controller.showOmitted()
controller.printPreview()

I believe the line
controller.loadAllRecords()
should be inserted before those 3. Otherwise, won’t your found set include all other records that were recently omitted?

~ Tara

I think it would be best to do a ```
controller.printPreview(true)


This will give you the current record...

checkout the help(‘F1’) for full explantions on printPreview form method and arguments

Thanks for the replies. I did end up using the controller.print function; great to have its features all in one step.

Am I correct about my assumption about the loadAll and Omit in the method shown in the documentation? Discovered it by looking up Omit and finding Invert, and trying to discern the differences between them.

~ Tara

Hi Tara,

Just learning about printing the current record and think I found an error in the Developer’s Guide section “10.5.4 Printing the current row (record)”. One option is to isolate the current record using a method with these 3 steps

Quote:

controller.omitRecord()
controller.showOmitted()
controller.printPreview()

Thank you for pointing this out.

We will change the upcoming documentation
to match the enhanced API.

Marc Norman
Servoy