Create new record in the table with a button?
Ninox Profile

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?

Ninox Profile

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))

Ninox Profile

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

Ninox Profile

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. šŸ„“

Reply