NextGen Knowledge Center

Script Functions for Trigger Script and Run Command

You can use different script functions for generating Trigger Script and Run Command for templates.

The following are the syntax and description of the script functions which support Trigger Functions and Run Command.
FunctionSyntaxDescription
CONCATCONCAT( «delimiter» , «grammar», «use caption» , «list» )Creates string list.
GETCELLTEXTGETCELLTEXT( «grid», «row», «col» )Obtains cell text value using provided row and column number.
GETCOLINDEXGETCOLINDEX( «grid», «column_name» )Obtains column index from column name.
GETROWHEIGHTGETROWHEIGHT( «grid» , «row» )Obtains height of the grid row.
ITEMDATAITEMDATA( «field», «idx» )Obtains item data associated with a template field as specified in the fields item data property.
LAUNCHDOCLAUNCHDOC( «document» , «print» , «offline»"))Opens document from provided document name.
LAUNCHIMAGELAUNCHIMAGE( «image» )Opens image from provided image name.
LAUNCHTEMPLAUNCHTEMP( «template» )Opens template.
OFFSETOFFSET( «startx», «starty», «offsetx», «offsety», «field_name\groups(s,)» )Moves fields.
PATEDUCATIONPATEDUCATION( «patedfilename», «language», «age», «source» )Opens patient education document from provided document name and settings.
REDRAWREDRAW( «grid» , «true» )Redraws grid.
RUNCOMMANDRUNCOMMAND( «command or context»,«show as menu»)Opens run command or run command menu.
SETCELLBACKCOLORSETCELLBACKCOLOR( «color», «row», «col» )Sets back color of cell using provided row and column number.
SETCELLBOLDSETCELLBOLD( «true», «row», «col» )Sets bold for cell using provided row and column number.
SETCELLFONTSETCELLFONT( «fontname», «row», «col» )Sets font for cell using provided row and column number.
SETCELLIMAGESETCELLIMAGE( «image.ico», «row», «col» )Sets image on cell using provided row and column number.
SETCELLITALICSETCELLITALIC( «true», «row», «col» )Sets italic for cell using provided row and column number.
SETCELLSTRIKETHRUSETCELLSTRIKETHRU( «true», «row», «col» )Sets strike through cell using provided row and column number.
SETCELLTEXTCOLORSETCELLTEXTCOLOR( «color», «row», «col» )Sets cell text color using provided row and column number.
SETROWHEIGHTSETROWHEIGHT( «grid» , «row», «height» )Sets row height of the grid row.
SETROWPADSETROWPAD( «padding» , «grids\#Groups» )Sets row padding for the grid.
Script Functions for Trigger Script and Run Command