0

Create new record in the table with a button?

Nothing found in manuals or in forums for a very simple (I think) task: I want to use a button to create a new record in the table (nope, not another table). That's about it. What is the formula in that button "New Record" that does that simple job?

3 replies

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

    Hi, you can use this code for your button in a table called e.g. Category (change this by the name of your table):

    let currRec := Id;
    let i := (create Category);
    openRecord(record(Category,i.Id))

    • Viggo
    • 4 yrs ago
    • Reported - view

    That the kind of advice I like - simple and spot on. Thanks Steven!!!

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

    You're welcome. A small correction, you can delete the first line, this is not necessary (let currRec := Id;)

    It's just a habit when I make longer code. 🥴

Content aside

  • 4 yrs agoLast active
  • 3Replies
  • 1727Views