Giter VIP home page Giter VIP logo

Comments (5)

rantinray avatar rantinray commented on June 14, 2024 1

@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.

westonforbes avatar westonforbes commented on June 14, 2024

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.

westonforbes avatar westonforbes commented on June 14, 2024

@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.

mikhail-vl avatar mikhail-vl commented on June 14, 2024

@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.

mikhail-vl avatar mikhail-vl commented on June 14, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.