I need to add auto increament on “transaction number” field. when I add the auto increament field in my child table, Knack takes all the available records into account.
How do I auto-increment values on transactions connected to project ID. I need this to repeat if it is for different project ID. Any idea how to do it? Any help would be appreciated.
in my experience, you could get TN numbers starting from 1 by
adding a “Count Transactions” field in the (parent) Projects table
adding an Equation field named "Count + 1"with the formula ‘“Count Transactions” + 1’ in the Projects table
adding a trigger field in the Projects table which inserts a connected record in the (child) Transactions table setting the “Transaction Number” to “Count + 1” pulled from the Projects table.
@Wolfgang_Brötz Thank you for helping, but it didn’t work. I had data already in my database and we have a transaction# field which we manually populate. I was asked if we could add a new transaction# field that auto populates. Attached is the screenshot of two columns side by side. One is the old field which will need to be deleted in future and the new field will calculate the transaction# and populate it going forward. (right now it looks wonky.)
Hello EITS, sorry to read that it did not work. Not sure if i understand your issue correctly. Can you express the relationship between the old field y and the new desired field x as a function x = x(y)?