I am trying to do something quite simple:
I want to show 2 columns in a dropdown.
As suggested here ( viewtopic.php?f=2&t=3015&p=9990&hilit=l ... nced#p9991 ) I have created an additional field in my AppGini "Table" named "Vorkommen". This field is integer and empty. The field has no meaning, but to be available in the drop down as second field.
The advanced SQL query is
Code: Select all
Select
ecomo_Location.Bezeichnung,
Count(ecomo_Container.ID_Location) As Vorkommen
From
ecomo_Container Right Join
ecomo_Location On ecomo_Container.ID_Location = ecomo_Location.ID_Location
Group By
ecomo_Location.Bezeichnung
Please see images for more context.
What do i need to change in AppGini to simply show the 1st dropdown "Bezeichnung" (i.e. 13-1-1) and in the second dropdown the count of that should be shown as calculated by the query column "Vorkommen" - for 13-1-1 there should be a 0.
Olaf