Arbortext Command Language > Callbacks > doc_add_callback > tbl_model_prompt Callback Type
  
tbl_model_prompt Callback Type
Function prototype:
function funcname (doc, tmIDs[])
The tbl_model_prompt callback is called when users try to insert a table in their document, and the cursor is in a location in which it is valid to insert more than one table model.
Arguments:
doc is the identifier of the document in which the table will be inserted.
tmIDs[] is the array of valid table model IDs.
Return arguments:
-1 — Cancels the table insertion.
0 — Displays the prompt if set prompttablemodel is on, or automatically inserts the primary table model if set prompttablemodel is off.
Non-zero integer — A one-based index value into the tmIDs array that indicates the table model to be inserted.