Loading...
You can use common script functions for generating Trigger Script and Run Command for templates.
| Function | Syntax | Description | 
|---|---|---|
| FIELDCOLOR | FIELDCOLOR( «textcolor», «backcolor», «fieldname(s,)» ) | Changes field color. | 
| GETCELLTEXT | GETCELLTEXT( «grid», «row», «col» ) | Returns cell text for cell at row and column. | 
| GETCOLINDEX | GETCOLINDEX( «grid», «column_name» ) | Returns index of column index number, helpful for formatting cell data. | 
| GETROWHEIGHT | GETROWHEIGHT( «grid», «row» ) | Gets the height of row on grid. | 
| ITEMDATA | ITEMDATA( «field», «idx» ) | Get item data from new item data field on check box, radio button, and others. Item data is ; separated and 1 index based.. 0 index returns. | 
| LAUNCHDOC | LAUNCHDOC( «document» , «print» , «offline»")); | Opens document from provided document name. | 
| LAUNCHIMAGE | LAUNCHIMAGE( «image» ) | Opens image from provided image name. | 
| LAUNCHTEMP | LAUNCHTEMP( «template» ) | Opens template. | 
| PATEDUCATION | PATEDUCATION( «patedfilename», «language», «age», «source» ) | Opens patient education document from provided document name and settings. | 
| REDRAW | REDRAW( «grid» , «true/false» ) | Turn off and on grid paint routines while setting cell contents. | 
| OFFSET | OFFSET( «startx», «starty», «offsetx», «offsety», «field_name\groups(s,)» ) | Move fields. | 
| POSX | POSX( «posx_ofpanels» ) | Sets the starting left position of the panels on the window. | 
| RESIZE | RESIZE( «width», «height», «field_name\groups(s,)» ) | Resizes field. | 
| ROWLIMIT | ROWLIMIT( «limits» , «grid» ) | Sets the row limit for # of rows to show on Auto Grow Panel. | 
| RUNCOMMAND | RUNCOMMAND( «command or context»,«show as menu») | Run command or run command menu. | 
| SETCELLBOLD | SETCELLBOLD( «true», «row», «col» ) | Sets bold for cell using provided row and column number. | 
| SETCELLFONT | SETCELLFONT( «fontname», «row», «col» ) | Sets font for cell using provided row and column number. | 
| SETCELLIMAGE | SETCELLIMAGE( «image.ico», «row», «col» ) | Sets image on cell using provided row and column number. | 
| SETCELLITALIC | SETCELLITALIC( «true», «row», «col» ) | Sets italic for cell using provided row and column number. | 
| SETCELLSTRIKETHRU | SETCELLSTRIKETHRU( «true», «row», «col» ) | Sets strike through cell using provided row and column number. | 
| SETCELLTEXTCOLOR | SETCELLTEXTCOLOR( «color», «row», «col» ) | Sets cell text color using provided row and column number. | 
| SETFILTER | SETFILTER( «grid», «filter» )} | Sets filter on specified grid. | 
| SETRANGE | SETRANGE( «min» , «max», «fields» ) | Sets range. | 
| SETRANGEMSG | SETRANGEMSG( «msg» , «fields» ) | SETRANGEMSG( «msg» , «fields» ) | 
| SETBACKCOLOR | SETBACKCOLOR( BackColor:«r,g,b,» ) | Sets color of template. | 
| SETBACKIMAGE | SETBACKIMAGE( Image:«image_name» ) | Sets back ground image of template. | 
| SETCAPTION | SETCAPTION( «caption», «field_name(s,)» ) | Sets caption on button, label, check box, radio buttons. | 
| SETFONT | SETFONT( «font_name», «font_size», «isbold», «field_name(s,)») | Sets the font for fields on the template. | 
| SETGRIDCOLOR | SETGRIDCOLOR( TextColor:«text_color», BackColor:«back_color», AltColor:«alt_row_color», «grid_name(s,)») | Sets the text, background and alternate row color on grid controls. | 
| SETITEMDATA | SETITEMDATA( «data», «field_name(s,)» ) | Sets the item data related on a field for possible context changes at design time. | 
| SETMYPHRASE | SETMYPHRASE( «phrasetype», «field_name(s,)» ) | Sets context phrase type on fields using my phrases or turn off the phrase for that field. | 
| SETTOOLTIP | SETTOOLTIP( «field_name», «title», «body» ) | Sets the tooltip on a control. | 
| SHIFTFIELDS | SHIFTFIELDS( «direction, «pixels», «fields(s)/#groups» ) | Moves fields up, down, left, or right by number of pixels. |