Skip to content

Global variable support #130

@Pieter3033

Description

@Pieter3033

Hi,

Is it possible to add global variable support, across all of my SQLPage webpages.
I could be wrong, but I believe this is not a feature in SQLPage.

Currently I am working with 3 different form submissions, which updates a single row in my database.
This row has to be updated later on a separate page.

The reason I am using 3 form submissions is:
1st Form, The user Selects a Client. (Using a select box) (Creates a row)
2nd Form, The user Selects a Fleet based on the Client selected in the previous form. (Using a select box) (Updates the created row)
(The use of pre-defined select boxes allows me to prevent human error)
3rd Form, The user Submits information that has to update the row created in the first form.

Currently I am setting the type = hidden, essentially populating the input with a reference number that has been auto generated in the previous form and carrying it over the forms. I get the same results when setting the input to readonly.
Without this I have no way of referencing which row to update in the database.

The problem with this solution it is not as neat, because it either results in a blank space or a input box with no purpose.

Possible solution:

I am not sure if it is possible, but keeping the already supported local variables syntax mentioned in #49 and enabling it to act as global variables as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions