_setTableCells

Adds data to an array of table cells

Parameters

job_id

The id of the Appointment

changes

JSON array of changes to make

the array is 2-level. the top level has keys which ID the table that the data is for, and within that is a hash-array of data indexed by row_col coordinates. The coordinates are zero-indexed.

Example

FM_api('Appointment_setTables',['job_id'=>'322888','changes'=>'{"220335":{"0_1":"2"}}']);

In this example, the number 2 is placed into the second column of the first row of table 220335, linked to job 322888

Example 2

FM_api('Appointment_setTables',['job_id'=>'322888','changes'=>'{"220335":{"0_1":"2"},"321321":{"3_7":"4"}}']);

In this example, two pieces of data are edited for two separate tables.

On Success

{'ok':1}

Last updated