| 70 | |
| 71 | === CRUD Options === |
| 72 | |
| 73 | You can define which of the CRUD functions are allowed for your resource. By default, they are all True. |
| 74 | |
| 75 | {{{ |
| 76 | s3xrc.mode.configure(table, editable=True, # Records can be updated |
| 77 | insertable=True, # New records can be added |
| 78 | deletable=True, # Records can be deleted |
| 79 | listadd=True) # to have a add-record form in list view |
| 80 | }}} |
| 81 | |
| 82 | Note: |
| 83 | - these settings are completely independent from the user's permission to perform the respective actions. If you have set {{{insertable=False}}}, then adding records to this table will be impossible even if the user has the permission to add records. |
| 84 | - in standard views, the add-form in list views is hidden and can be activated by clicking the respective "Add Record" button. If {{{listadd=False}}}, then the "Add Record" button will redirect to the create-form view instead. |
| 85 | - these settings do not effect non-interactive representations |
| 86 | |