Hi at all.
Iam need you help, for i think so easy solution but iam to blind or stupid, to find it out.
I have 3 mysql tables
kunden : coloums: id firma, vorname,nachname)
software : cloumouns : id,name
lizenzen : coloums : ID,lizenzschlüssel,kunde (join to id kunden),software (join to id software)
This is the widget query for lizenzen
<code>
SELECT
lizenzen.ID,
lizenzen.lizenzschlüssel,
kunden.ID AS kundeID,
CONCAT(kunden.firma,' | ',kunden.vorname, ' | ', kunden.nachname) AS kunden,
software.ID AS softwareID,
software.name AS software
FROM
lizenzen
JOIN
kunden ON lizenzen.kunde = kunden.ID
JOIN
software ON lizenzen.software = software.ID;
</code>
Now i would have drop down menus for kunde and software if i change them.
So i added field typ select and use an select query.
this will work fine.
And now comes my problem.
if i edit the field and select one ofb them then i get the id back.
So in the field the id is shown not the text.
If i will save it, i get an error because in the the other field i not edited, says me is not an integer. Jep its text.
How can i finish it to show text but at save the ids will used to save.
I dont know how the safe query must look.
And my goal is to make an multiedit rows.
but i stopped at single row edit now, so that multi row edit is far in future
I make an video to demonstrate what i mean.
Please oben the video in VLC under Linux in Celluloid it will not open.
Video is created with simplescreenrecorder
Thank you very much!
Best regards Stefan