Table data column 1 | Table data column 2 | Table data column 3 |
Clicking a cell in the table above sends a user event to the field that contains the table. The PowerPac function pgSetTableDataCell() is then called with the submitted id from the click event and then new contents are inserted.
All of the code is on the field named myFieldContainer. The table content is retrieved using the PowerPac function XMLHttpRequest() in asynchronous mode which sends a user event when the server returns the content. Next, the user event executes setHTMLContent() to compile the HTML into this field (including these notes that follow the table).