Category : Javascript

Some scripts are required if data is not displayed with the values one would expect. Often the display can be changed. Set The Display of Boolean Values The default display in a grid view is True or False whereas in a Search View it is Yes or No. If you wish to change the system ..

Read more

Run A Report: doReport (report_file) Generate a report using the current view as data source (detailView or searchView) to fill in the JasperReports template report_file: // generate a report for the current view — must be a view of MY_Schema scope.doReport(‘reports/custom/MY_Schema/detailedReport.j..

Read more

ScriptingService provides a set of helper functions which can be called thus: ScriptingService.functionName(params, if, any) findFirstInCache (schema, search_json) Retrieves an item of a specific schema from the cache (schema must be cached) based on search criteria. schema: the schema to search search_json: specific search criteria – JSON format {field:value} For Example to get a AD_Post_Codes ..

Read more

Accessing Data If a script is operating on a document (basically always) the document model can be accessed as a variable called model. Say the document is an address details and the script is going to set the zone: model.Zone = “some zone” or setting a value based on other values: Value = Quantity * ..

Read more

Javascript No attempt should be made to alter existing TLP scripts and we will not be liable for any damage caused by such action. It is recommended that any new scripts you wish to apply should first be done in the Test system before being migrated to the Live system. Return a Value A simple ..

Read more