Comments (5)
@westonforbes I had the same problem. I found that the only way to save the custom code was to hit the "save" dashboard button from within the edit panel. Then I had to "reload" the page to make sure it was available to test. I am not sure this is what was expected, but it is what I had to do. Hope this helps.
from volkovlabs-form-panel.
I take it back...Now none of my changes are retaining with the plugin. Something with the whole plugin is bugging out. Hmmm...
from volkovlabs-form-panel.
@rantinray Thanks for the input. That worked...This time. I found some other ways, like toggling a feature, that would work for a bit then stop working. So I'm not 100% convinced that'll work every time but thanks!
For the developer: It seems to be something bugged out inside the panel, I created another panel with the similar settings and its not doing it...mystery. Here is the JSON Model for the buggy panel....
Actually, trying to copy the JSON model to this thread with markdown may have revealed the problem...Could the backtick in my code next to "Reported Value" be causing it to prematurely escape and causing the glitch out? I dunno, I need to move with things...but maybe.
{ "id": 2, "gridPos": { "h": 15, "w": 6, "x": 0, "y": 8 }, "type": "volkovlabs-form-panel", "title": "Panel Title", "datasource": { "uid": "Xw5iJRH4z", "type": "mssql" }, "options": { "initial": { "method": "-", "contentType": "application/json", "code": "elements.map((element) => {\r\n if (element.id === 'DATE') {\r\n alert(
Reported Value: ${element.value});\r\n }\r\n});\r\nonOptionsChange(options);", "highlight": false, "highlightColor": "red" }, "update": { "method": "POST", "contentType": "application/json", "code": "", "confirm": false, "url": "http://10.5.51.100:3001" }, "layout": { "variant": "single" }, "buttonGroup": { "orientation": "center", "size": "md" }, "submit": { "variant": "primary", "foregroundColor": "yellow", "backgroundColor": "purple", "icon": "cloud-upload", "text": "Submit" }, "reset": { "variant": "hidden", "foregroundColor": "yellow", "backgroundColor": "purple", "icon": "process", "text": "Reset" }, "elements": [ { "id": "DATE", "labelWidth": 10, "section": "", "title": "For Date", "tooltip": "", "type": "datetime", "value": "2022-11-15T17:14:21.000Z" }, { "id": "AV_01", "labelWidth": 10, "section": "", "title": "AV-01", "tooltip": "", "type": "number", "value": "10" }, { "id": "AV_02", "labelWidth": 10, "section": "", "title": "AV-02", "tooltip": "", "type": "number", "value": "9" }, { "id": "AV_03", "labelWidth": 10, "section": "", "title": "AV-03", "tooltip": "", "type": "number", "value": "8" }, { "id": "BOWL_01", "labelWidth": 10, "min": 0, "section": "", "title": "BOWL-01", "tooltip": "", "type": "number", "value": "" }, { "id": "BOWL_02", "labelWidth": 10, "section": "", "title": "BOWL-02", "tooltip": "", "type": "number", "value": "6" }, { "id": "BOWL_03", "labelWidth": 10, "section": "", "title": "BOWL-03", "tooltip": "", "type": "number", "value": "" }, { "id": "BOWL_04", "labelWidth": 10, "section": "", "title": "BOWL-04", "tooltip": "", "type": "number", "value": "" }, { "id": "BOWL_05", "labelWidth": 10, "section": "", "title": "BOWL-05", "tooltip": "", "type": "number", "value": "3" }, { "id": "BOWL_06", "labelWidth": 10, "section": "", "title": "BOWL_06", "tooltip": "", "type": "number", "value": "2" } ] } }
from volkovlabs-form-panel.
@westonforbes Thank you for reporting the issue. It may be related to the custom code and how it's saved in the Dashboard's JSON file.
We are working on updating the panel this week and I will look into it.
from volkovlabs-form-panel.
@westonforbes I experienced the same issue on 9.2.2, which was not the case before 9.1.0...
I am releasing a new version with some required features, which I can't delay to fix this issue.
I have some ideas about why it's happening and will look into it.
from volkovlabs-form-panel.
Related Issues (20)
- Pre-define already selected type for a new option
- `ElementDateEditor` cyclically transforms non UTC dates to UTC on every onChange() HOT 1
- Auto showing data triggered after choose value of payload HOT 1
- conditional panel load HOT 1
- Custom table update HOT 1
- Bypass `Content-Security-Policy` HOT 1
- How to set default values for a drop down when the element is not visible yet? HOT 2
- Custom code to GET values to fill form elements in Multiselect Option - Needed Information HOT 2
- Handling variables in grafana HOT 1
- Load values from data on element change HOT 1
- Collapsible Sections
- When defining show if true, dashboard crashes HOT 2
- Data Manipulation Plugin, Select With Custom Options. Options not getting selected. HOT 1
- Issues with Content-Security-Policy When Using Data Manipulation Plugin in Managed Grafana HOT 1
- Improve Unit Tests
- Cannot show a specific HTTP Response Header value in notification message HOT 3
- Dynamic form via SQL query HOT 1
- Confirmation Window doesn't contain values when they were not changed HOT 1
- Confirmation Window: New value column configuration disappears when Name column is removed HOT 1
- How to make submit button always enabled? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from volkovlabs-form-panel.