0

Next Record Button (almost working)

Hi,

 

I have what is essentially a trip log, which can generate an invoice, which I am trying to modify to make it easier to use for a less computer literate friend.

The process is to create a new invoice, then add Trips to the subtable via a form.

Currently I am working on a button to add/save the data from the form, and open new one for the next entry.

This is the code so far:

closeRecord();
let a := (create Trips);
popupRecord(record(Trips,number(a.Id)))

 

The problem is that records created this way are not linked to the relevant invoice, however they do show up in the ‘Trips’ table itself.

I assume I am missing something simple...

 

As a note to Ninox: Having the ability to easily utilise the function of the navigation bar in custom UI would be so nice...

ie: new,delete,next,previous...

1 reply

null
    • Nick
    • 5 yrs ago
    • Reported - view

    You need to link the Invoice with the Trips table:

     

    let InvId := id;

    closeRecord();
    let a := (create Trips);

    a.(Invoice := InvId);
    popupRecord(record(Trips,number(a.Id)))

Content aside

  • 5 yrs agoLast active
  • 1Replies
  • 2309Views