Help with a button opening a subtable.
I have a subtable (MoneyCounter) in my table (Safe Log). I need a button in the 'Safe Log' table to open a new record in MoneyCounter. Additional- There is a field in the MoneyCounter table ('Safe Log'.MoneyCounter'.'What Are You Counting') that is a choice field and it would be great if I automatically select one of the choices (there are 8) based on the button clicked in the ‘Safe Log’ table. If not, I will settle for some help with the function to open a subtable to a new record! Thank you!
1 reply
-
To create a new child record...
let myID := this;
let newRec := (create MoneyCounter);
newRec.('Safe Log':= myID);
let myRN := number(newRec.Id);
popupRecord(record(MoneyCounter,myRN))for the 2nd question, something like that (you have to furnish more details)...
let myID := this;
let newRec := (create MoneyCounter);
newRec.('Safe Log':= myID);newRec.('YourChoiceField := YourValue);
let myRN := number(newRec.Id);
popupRecord(record(MoneyCounter,myRN))Nick
Content aside
- 5 yrs agoLast active
- 1Replies
- 897Views