| | 1 | = S3HierarchyCRUD = |
| | 2 | [[TOC]] |
| | 3 | |
| | 4 | '''S3HierarchyCRUD''' is a REST method handler that allows interactive CRUD of a hierarchical resource using a tree view to navigate the hierarchy. |
| | 5 | |
| | 6 | [[Image(s3hierarchycrud.png)]] |
| | 7 | |
| | 8 | == URL Method == |
| | 9 | |
| | 10 | The S3HierarchyCRUD method handler is linked to the ''hierarchy'' URL method, and can be invoked both for the whole table, or just the branches under particular record: |
| | 11 | |
| | 12 | {{{ |
| | 13 | # Edit the whole table |
| | 14 | /eden/org/organisation/hierarchy |
| | 15 | }}} |
| | 16 | |
| | 17 | {{{ |
| | 18 | # Edit the hierarchy below a particular record |
| | 19 | /eden/org/organisation/1/hierarchy |
| | 20 | }}} |
| | 21 | |
| | 22 | == Code == |
| | 23 | |
| | 24 | S3HierarchyCRUD can be found in {{{modules/s3/s3hierarchy.py}}}. The corresponding JavaScript is implemented in {{{static/scripts/s3/s3.jquery.ui.hierarchicalcrud.js}}}. |
| | 25 | |