Session Storage not working correctly in Include File within Wappler Editor

Wappler Version : 2.3.0
Operating System : Windows 10

Expected behavior

What do you think should happen?

Session Variables should be available for use in actions.

Actual behavior

What actually happens?

There’s definitely some bugs in Wappler. I am unable to get most of the Session Manager related setup to work. I wonder if it’s because I’m trying to define them in a Header Include file? It appears the “config.js” under dmxAppConnect holds the Session Storage structure.

Even though I define these in an Include file they are showing under the “index” page in the config.js file.

"index": {
    "sessionStorage": [
      {
        "type": "object",
        "name": "cart",
        "sub": [
          {
            "type": "key_array",
            "name": "items",
            "sub": [
              {
                "type": "text",
                "name": "product_name"
              },
              {
                "type": "number",
                "name": "product_price"
              },
              {
                "type": "number",
                "name": "product_quantity"
              }
            ]
          }
        ]
      },

I get the spinning wheel of death when trying to expand the Session Storage within the Data Bindings dialog.
image

I also do not see any items under the Name field for the session.set, but my Session Manager definitely has the defined variables/objects.

How to reproduce

  • Detail a step by step guide to reproduce the issue
  • A screenshot or short video indicating the problem
  • A copy of your code would help. Include: JS, HTML.
  • Test your steps on a clean page to see if you still have an issue
  1. Create index page
  2. Create Include file on index page.
  3. Open Include file
  4. Add Session Storage on Include file
  5. Add Variables/Objects in Session Storage.
  6. Add Array to Include file
  7. Click Lightening Bolt on Array Item field
  8. Try to expand/open Session Manager ( you should get spinnning wheel of death)
    image
  9. Add Dynamic Event - Value Updated to Array
  10. Use Lightening bolt on Value Update Action field
  11. Add Set from Session Storage
  12. Try to select one of the variables/objects in Name field of Set Session. (this should be empty).
Community Page
Last updated: