I'm experiencing an issue with query parameters when using the Query Manager in Wappler. Whenever I create a query parameter variable, it appears correctly and works as expected. However, after closing and reopening Wappler, all query parameters disappear from the editor.
The conditions and logic that depend on these parameters still work, which means they are stored somewhere, but they no longer appear in the editor for me to select. As a result, I have to remember the exact names and type them manually wherever I use them.
I'm working with NodeJS, and I believe the correct approach is to create only the parameters in my layout page. However, to make it work, I currently have to create a Query Manager both on the layout page and on the page where I receive the parameters.
I’d like some guidance on whether I’m using these parameters incorrectly or if this is a bug that causes query parameters to disappear from all pages, including the layout page.
Has anyone else encountered this issue? Any help would be greatly appreciated!
You need the query manager only if you want to change the query parameter values. For just using query parameters on your pages, for example to pass values around or filter data, you just need to define them on the main (layout) page under App:
Got it, Teodor. In my case, I do manipulate some parameters on the pages, so it’s great to know I’m using them correctly.
However, my biggest issue isn’t how I’m using them but rather the fact that these parameters disappear. I already have at least 4 or 5 parameters set up, but when I access the Query Manager, none of them show up.
I believe that my parameters should appear under Data in the Query Manager, but after restarting Wappler, they no longer show up. This issue has been happening to me since version 6.8 (when I started using Wappler) and still persists in Wappler 7 (Beta 17).
I use the query parameters to control the department and to fetch/edit its information (on an admin page) using the department_code parameter, which matches a field in the database with the same name.
I also use query parameters to filter information inside the cards, so that I can create a single card that dynamically displays the description of each activity. Additionally, I use them to guide updates based on the activity_code, which is also a field in the database used to manage the activities within each department. And I update the query parameter when a nav-tab is selected.
Now, I’m trying to follow the Dynamic Sortable Table tutorial, but the data doesn’t show up for me, even after creating the parameters on both the layout page and the page where I’m trying to implement sorting (as a test).
The query parameters are located in the layout page (navmenu), and I am using them in the content page department-a, as well as in other content pages, such as the admin page.
In addition, trying to use the "sort" and "dir" parameters, I initially created them in the layout page. However, when accessing the Bootstrap Table Generator and selecting the query, the Sort Parameter and Order Parameter fields were empty.
To make them appear, I had to create the same parameters inside the department-a page, which is a content page inside the layout page (navmenu). After doing this, the parameters showed up in the table settings, and sorting is now working properly.