0

Select Projekte nach E-Mail

Hallo,

ich möchte aus einer Projektliste nur Projekte anzeigen, bei denen der Nutzer in der verbundenen Tabelle als Ressource eingetragen ist. Hier ist der Code:

select Projekte where userEmail() = Ressourcen.'E-Mail';

Leider funktioniert es nicht und Ninox sagt, dass die Tabellenspalte nicht gefunden wurde, dabei abe ich sie aus der Liste links durch Klick ausgewählt. Was ist falsch? Ich habe es auch schon über eine Variable (let myVar...) probiert, das ging auch nicht:

Viele Dank für eure Hilfe!

Viele Grüße

Daniela

3 replies

null
    • Ninox partner
    • RoSoft_Steven.1
    • 3 yrs ago
    • Reported - view

    Daniela, try this:

    let E := userEmail();
    select Projekte where Ressourcen.'E-Mail' = E

    Steven

    • DABB
    • Daniela_Lehmann
    • 3 yrs ago
    • Reported - view

    Hi Steven, thank you for your reply! Unfortunately, it does not work that way, either, I get the message that a column in the table Ressourcen was not found. I expect it has to do with the fact that it's a table within a table within a table, but I don't know how to fix it, as it doesn't matter that I pick it from the list (where I would assume it only shows existing). Any idea what could help? Thanky  a lot, Daniela

    • Ninox partner
    • RoSoft_Steven.1
    • 3 yrs ago
    • Reported - view

    Can you post a picture of your Database-model with the table relations Please?

Content aside

  • 3 yrs agoLast active
  • 3Replies
  • 269Views