Creating and using a View
Posted: 2025-05-02 13:36
Hi,
Is there a simple way to create a view within Appgini?
Wat I do now is:
- within Mysql I create a view
- save the MySql code in notepad
- delete the view
Now I have to make that view known in the application.
- create in the application a new table —-> becomes a physic table in Mysql database with the wanted View name
- generate a project.
All the wanted “view” files where created
After login to the the project in a browser you see the table, where I like to see and use the view.
- So I delete the table in Mysql and create the wanted view with the right name. ( view name = generated table name)
When I try to execute the view nothing happens, in the Admin area I see MySql defenition Errors.
I try to have it fixed, no result.
So… I have view, within the project show as a table but I cann’t use this because off unfixable errors.
There must be a much easyer way to handle views.
Ron
Is there a simple way to create a view within Appgini?
Wat I do now is:
- within Mysql I create a view
- save the MySql code in notepad
- delete the view
Now I have to make that view known in the application.
- create in the application a new table —-> becomes a physic table in Mysql database with the wanted View name
- generate a project.
All the wanted “view” files where created
After login to the the project in a browser you see the table, where I like to see and use the view.
- So I delete the table in Mysql and create the wanted view with the right name. ( view name = generated table name)
When I try to execute the view nothing happens, in the Admin area I see MySql defenition Errors.
I try to have it fixed, no result.
So… I have view, within the project show as a table but I cann’t use this because off unfixable errors.
There must be a much easyer way to handle views.
Ron