I understand that giving us an API to manipulate the app definition in the editor is probably not on the cards but there are many use cases for this type of editor feature and this is just one that I would love to have.
I want to be able to import a JSON file to set up actions. Here is how I see it might work:
Where it says Add New Action in the Actions tab, I would have an Add “New Action via JSON file” button.
The JSON file contents could look like this:
Action_Add {
"Action_Name": "Set related cols in Products",
"Target_Table": "PRODUCTS",
"Action_Type": "Data: set the values of some columns in this row",
"Set_Columns": {
"PatientName": "[OrderID].[PatientName]",
"PONum":"[PONum]+1"
},
"Appearance": {
"Display name": "Setup Billing",
"Action_icon": "paper-plane",
"Prominence": "Display prominently",
},
"Behavior": {
"Condition": "true",
"Needs_confirmation": "false",
"Confirmation_message": "",
}
}
I would expect that we could import multiple actions contained in a single file.
How about it? Thanks for considering.