Append client data to a master table other than working table
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
rowObjectArray
|
||
table |
table
|
master table |
|
columns |
array
|
array of column names to drop |
|
appEnv |
appEnv
|
appEnv |
|
save |
boolean
|
<optional> |
save the table after append (default=true) |
- status object
promise
Example
To append all the rows on the client:
If data is null, the data in appEnv.state will be appended
await appendRows(mydata, {caslib: 'public, name: 'masterAccts'}, ['total', 'price'], appEnv)
Notes:
- Use addRows to add new rows to the working table
- use appendTable to append working table to a master table