Duplicate a sub-table while omitting fields.
I have a table that I duplicate using a button and a script for which I received help on this forum. This table has a sub-table which is also duplicated. But I would like certain fields in this sub-table not to be copied. For example, I have "quote #" for which I have entered the following code: 'quote #' := null. But this only works for the first row of the sub-table. The others keep their data. Is there any way of making each line change? A kind of loop, like in filemaker?
Thank you.
9 replies
-
Can you post your code for the button?
-
Sure:
let newRecord := duplicate(this);
popupRecord(newRecord);
newRecord('Request date' := today());
newRecord.('Due on' := null);
newRecord.('Proposal date' := null);
newRecord.(Suppliers := 0);
newRecord.('Quote lines' 'quotes #':= null)(Quote lines being the sub-table)
I searched for loop in the Ninox documentation, but I didn't get any results.
Content aside
- Status Answered
- 1 mth agoLast active
- 9Replies
- 35Views
-
3
Following