controller.print(false,true)

For
controller.print(false,true)
what does false and true mean?

Along the same lines:

For
controller.showPrintPreview(false)
what does false mean?

This is all in the docs but the first boolean is used to tell if you want to print only the current record (true) and the second one to show the printdialog (true)…

Thank you Marcel. Do you recall where you found this information in the documentation? I do not see it in the “Servoy Developer Edition” manual, but perhaps I am looking in the wrong place.

No I don’t recall where it was but there is also an advanced programmers guide…

Do you recall where you found this information in the documentation? I do not see it in the “Servoy Developer Edition” manual, but perhaps I am looking in the wrong place.

Here are two ways that you can find this information:

  1. In the Servoy Developer online help.

a. Go to Help or press F1.
b. Be sure you are on the Search tab.
c. Type “print” in the search box and press “Search”.
d. Choose “form functions” - the second item in the results list.
e. Scroll in the right hand pane until you see the function “print”
(the functions are listed alphabetically).

  1. In the print version of the latest Servoy Developer Edition User’s Guide
    on page 336. (608pp available through the Servoy Store).

Hope this helps,


Marc Norman
Servoy

BTW a perfect online help is also to move an example to your code in the method editor…

Just to be sure this info is complete (sorry if it is over-complete), you do this from within the method editor. Select the second button from the right on top of the outline menu when you are in a method. This will move one or more examples to your method.