0

How to auto fill this relationship field when I create new record, instead of click into the field

How to auto place  the 'Name Documents',  I need to fill in Document_> relationship N:1

2 Antworten

null
    • Ninox-Professional
    • planoxpro
    • vor 12 Tagen
    • Gemeldet - anzeigen

    If you create the record using a button, you can assign the record ID in the script. It probably won't work with the trigger "On new data record" because the data record to be linked is not known.

      • Rafael_Sanchis
      • vor 10 Tagen
      • Gemeldet - anzeigen

       

      This work 

      let xResponse := dialog(" ADD Document  -> ", "Do you want to ADD Document To Control ?", ["Yes", "NO"]);
      if xResponse = "Yes" then
          let me := this;
          let newR := (create Control);
          newR.(
              'Documents_>' := me;
              let nameDoc := me.'Name Document';
              let coddoc := me.CodDOC;
              newR.('Name Document' := nameDoc);
              newR.(CodDOC := coddoc);
              last(popupRecord(newR))
          )

Content aside

  • Status Answered
  • vor 10 TagenZuletzt aktiv
  • 2Antworten
  • 29Ansichten
  • 2 Folge bereits