Xataface HTML Reports Module 0.2
HTML Reports Module for Xataface
|
HTTP handler to preview the data for a particular row of a table. More...
Public Member Functions | |
handle ($params) | |
out ($params) |
HTTP handler to preview the data for a particular row of a table.
This is used by the field browser to show hints to the user of what data is stored in each field.
In order to view a row, the user must be granted both the view and export_json permissions for the record/row that is being requested. If they are not, then an error will be returned instead of the usual output.
Parameter Name | Parameter Description | Example Input |
---|---|---|
-table | The name of the table for which to return the schema | transactions |
-action=htmlreports_schemabrowser_preview_row | Specifies this action | N/A |
This handler will return a text/json response containing a JSON data structure:
{ "code":200, "values":{ "{$tool_id}":"1", "{$facility_id}":"Nanofabrication", "{$tool_name}":"Clean Room", "{$external_url}":"", "{$short_name}":"", "{$tool_type_id}":"Clean Room Access" } }
If an error occurs, then this action will simply return a JSON data structure with the following keys:
Definition at line 84 of file htmlreports_schemabrowser_preview_row.php.
handle | ( | $ | params | ) |
Definition at line 85 of file htmlreports_schemabrowser_preview_row.php.
out | ( | $ | params | ) |
Definition at line 141 of file htmlreports_schemabrowser_preview_row.php.