From c1588208a69d2ed487e4e025369374d6c9eb089e Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 14 Dec 2020 10:57:33 +0100 Subject: [PATCH] Update AppSchema.json --- Projects/Superalgos/Schemas/AppSchema.json | 40 ++++++++++++++++++++-- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/Projects/Superalgos/Schemas/AppSchema.json b/Projects/Superalgos/Schemas/AppSchema.json index 3c2c85df7..1a038dfaf 100644 --- a/Projects/Superalgos/Schemas/AppSchema.json +++ b/Projects/Superalgos/Schemas/AppSchema.json @@ -11386,9 +11386,9 @@ }, "childrenNodesProperties": [ { - "name": "formula", + "name": "recordFormula", "type": "node", - "childType": "Formula" + "childType": "Record Formula" } ], "propertyNameAtParent": "properties" @@ -11423,10 +11423,44 @@ }, "level": 4, "attachingRules": { - "compatibleTypes": "->Target Size In Base Asset->Target Size In Quoted Asset->Target Rate->Phase->Record Property->Simulated Actual Rate->Situation->Indicator Function->" + "compatibleTypes": "->Target Size In Base Asset->Target Size In Quoted Asset->Target Rate->Phase->Simulated Actual Rate->Situation->Indicator Function->" }, "propertyNameAtParent": "formula" }, + { + "type": "Record Formula", + "menuItems": [ + { + "action": "Edit", + "label": "Edit", + "iconPathOn": "javascript-code", + "iconPathOff": "javascript-code", + "dontShowAtFullscreen": true, + "actionFunction": "uiObject.formulaEditor.activate" + }, + { + "action": "Delete UI Object", + "askConfirmation": true, + "confirmationLabel": "Confirm to Delete", + "label": "Delete", + "iconPathOn": "delete", + "iconPathOff": "delete", + "actionFunction": "payload.executeAction" + } + ], + "addLeftIcons": true, + "editors": { + "formula": true + }, + "initialValues": { + "code": "// Type your formula" + }, + "level": 4, + "attachingRules": { + "compatibleTypes": "->Record Property->" + }, + "propertyNameAtParent": "recordFormula" + }, { "type": "Announcement Formula", "menuItems": [