simonuwe / oracle-apex-json-region

An Oracle-APEX-plugin that provides for each property of a JSON-schema an input field to support an easy way to display and edit a JSON item
Apache License 2.0
6 stars 1 forks source link

Permissions for "type": "array" #133

Closed simonuwe closed 1 week ago

simonuwe commented 3 weeks ago

Add permission, so that insert/update/delete can be allowed/forbidden seperatly.

{
  "type": "array",
  ...
  "readOnly": true,
  "apex": {
    "hasInsert": "begin",
    "hasDelete": false
  }
}

With this, it should be possible to add an array of "history" entries. All entries read only, but insert can be used to add new Rows.

simonuwe commented 3 weeks ago

"hasDelete": true/false works

simonuwe commented 3 weeks ago

"hasInsert": "begin", "end", "none" works

simonuwe commented 3 weeks ago

"hasDelete": true/false works

simonuwe commented 3 weeks ago
`"readOnly": true,
"apex": {
  "hasInsert": "begin"/"end"
}

works, add new rows only