_print

Retrieve a HTML version of the Appointment report, which can be printed.

Parameters

id

The ID of the Appointment.

Example

FM_api('Appointment_print', ['id' => '222402']);

Result

<html><head><style>*{font-family:sans-serif;}table.border{border:solid #000;border-width:0 1px 1px 0;border-spacing:0}.border td,.border th{border:solid #000;border-width:1px 0 0 1px;vertical-align:top;padding:0 1mm;}th{text-align:left;background:#eee}</style></head><body onload="window.print()"><h2>Appointment with Fieldmotion</h2><table style="padding:1em; margin:1em"><tr><th style="width:150px;">Date</th><td>&nbsp;2015-10-27 14:20:00</td></tr><tr><th>Employee</th><td>&nbsp;test3@test3.test3</td></tr><tr><th>Notes</th><td>&nbsp;</td></tr><tr><th>Parent Co.</th><td>&nbsp;None</tr></table></table><br/><table class="border"><thead><b>Form Data</b></thead><tr><th>input</th><td></td></tr><tr><th>barcode</th><td></td></tr><tr><th>textarea</th><td></td></tr><tr><th>select</th><td>red</td></tr><tr><th>multiple select</th><td>red<br/>blue</td></tr><tr><th>photograph</th><td><img style="max-width:100%;max-height:100%" src="data:image/png;base64,"/></td></tr><tr><th>signature</th><td><img style="height:200px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAASElEQVR4nO3OQQ0AIAwAsctE4F8qKsh4tApadeIrsx0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOClC0ljABmTuEFeAAAAAElFTkSuQmCC"/></td></tr><tr><th>number1</th><td></td></tr><tr><th>number2</th><td></td></tr><tr><th>total1</th><td>0</td></tr><tr><th>number3</th><td></td></tr><tr><th>total2</th><td>0</td></tr><tr><th>date</th><td></td></tr><tr><th>subform</th><td><table style="width:100%"><tr><th>barcode1</th><th>barcode2</th><th>hidden text field</th><th>read only text field</th><th>date</th><th>time</th><th>selectbox</th><th>selectbox2</th><th>selectbox3</th><th>selectbox4</th><th>selectbox5</th><th>selectbox6</th><th>select7</th><th>photograph</th><th>inputxtime</th><th>mult1</th><th>mult2</th><th>add1</th><th>check</th><th>signature</th><th>user</th><th>asset</th><th>department</th></tr><tr><td></td><td></td><td></td><td></td><td>2015-10-29</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>0</td><td></td><td></td><td></td><td>1</td><td></td><td>4006</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td>2015-10-29</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>0</td><td></td><td></td><td></td><td></td><td></td><td>32</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td>2015-10-29</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>0</td><td></td><td></td><td></td><td></td><td></td><td>4657</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td>2015-10-29</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>0</td><td></td><td></td><td></td><td></td><td></td><td>4848</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td>2015-10-29</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>0</td><td></td><td></td><td></td><td></td><td></td><td>3928</td><td></td><td></td></tr></table></td></tr><tr><th>input2</th><td></td></tr><tr><th>textarea2</th><td></td></tr><tr><th>hidden</th><td></td></tr><tr><th>readonly</th><td></td></tr><tr><th>checkbox</th><td>Yes</td></tr><tr><th>time</th><td>11:30</td></tr><tr><th>second time</th><td></td></tr><tr><th>inline radio</th><td>no</td></tr></table></body></html>

Last updated