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)
- Request Boundary missing when trying to upload the file HOT 3
- Get géolocalisation of th user as variable to insert in database HOT 1
- Get géolocalisation of th user as variable to insert in database HOT 1
- Is my use case suitable?
- elements is not defined HOT 1
- Monaco code editor Psql language
- Radio group and code dont appear to have hide or unhide properties HOT 1
- Syntax error in documentation
- Search greyed out HOT 1
- Sometimes slow performance HOT 1
- Add elements group HOT 1
- Remove existing rows from a table HOT 1
- Add File option to upload single or multiple files
- Adding custom color/background color for elements
- Panel multi select not hiding correctly HOT 2
- Panel "Submit" halts and raises "Uncaught (in promise)" HOT 3
- Question: Http POST very slow, take too much time HOT 1
- Add new element MultiSelect list HOT 4
- Prepare for Grafana 11
- Initial action of Datasource and custom code HOT 3
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.