0

New Email Button creating a new record in subtable

I have a main table called 'Emails' that has a view called 'Compose' where I have a button "New Email" and I have a subtable called 'New Emails'

I have only managed to get the subtable to open with the code below.

openTable("New Email", "Compose");
closeAllRecords()

What would I need to add to have a new record created and opened so I can right away compose the email?

6 replies

null
    • Halio
    • Halio
    • 4 yrs ago
    • Reported - view

    i tried the code below and had a specific record number instead of the three question marks (???) but I am still not any close to creating a new record.

    openTable("New Email", "Compose");

    popupRecord(record('New Email',???))
    closeAllRecords()

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

    Halio,

    Try this:

    let currRec := Id;
    let i := (create 'New Email');
    i.(Emails := currRec);
    popupRecord(record(New Email',i.Id))

    Steven.

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

    Nick again..... 🤣

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

    Last line should be : popupRecord(record('New Email',i.Id))

    forgot a '

    • Nick
    • 4 yrs ago
    • Reported - view

    Steven... 😂

Content aside

  • 4 yrs agoLast active
  • 6Replies
  • 1322Views