0

Button to link N records

Hi,

 

I've a table named "Ordini" and another named "Fatture".

Fatture is linked to Ordini as 1 record in "Fatture" : N records in "Ordini".

Now when I create a new record in "Fatture" I link manually every record in "Ordini" (selected by name of customer).

There is currently no way to select them all at once.

Ask: could I automatically link a single record of the "Ordini" table to a record in the "Fatture" table with a button (the button must be in Fatture) without doing it manually?

2 replies

null
    • Leonid_Semik
    • 6 yrs ago
    • Reported - view

    Hi Andrea,

    —-

    let myF:=_id;

    let myC:='customer field';

    for II in select Ordini ['customer field'=myC] do

    II.Fatture:=myF

    end

    ——

     

    Leo

    • Andrea
    • 6 yrs ago
    • Reported - view

    Great! thank you!

Content aside

  • 6 yrs agoLast active
  • 2Replies
  • 1719Views