0

Select Einträge Untertabelle mit gleichem Parent

Ich habe Tabelle A 1:N mit Tabelle B verknüpft und möchte aus der Anicht von Tabelle B alle Einträge in Tabelle A selektieren, beiden das Feld TAG einem bestimmten Wert entspricht.
Das folgende Script macht allerdings nicht was es soll ... 

let t := TAG;
if 'TAG beenden' then
  let rs := (select B where TAG = t and Parent = B.Parent);
  for rec in rs do
    rec.(Status := "Erledigt")
  end
end;

Was mache ich falsch?

2 replies

null
    • Harald Schneider - Software & Mediadesign
    • hschneider
    • 3 yrs ago
    • Reported - view

    Sorrys, just landed in the english forum. So here the translation:

    I have a 1:N relationship between Table A and B. From a view of Table B, I want to select entries of table A with a certain value in the TAG field. 
    But the above script unfortunately fails ....

    • Harald Schneider - Software & Mediadesign
    • hschneider
    • 3 yrs ago
    • Reported - view

    Ahh... nailed it:

     

    let t := TAG;
    let me := thisM
    if 'TAG beenden' then
    let rs := (select B where TAG = t and Parent = me.Parent);
      for rec in rs do
        rec.(Status := "Erledigt")
      end
    end;

Content aside

  • 3 yrs agoLast active
  • 2Replies
  • 441Views