Creating new records with data in code
Posted: Tue Feb 06, 2024 3:28 pm
Hiya,
I'm looking to add data to my database through code and cant figure out how to do it. I have a bunch of strings that all need to be added to the database under their own individual records.
Here's a basic version of my current code:
I thought this would work but haven't had any luck yet and all the records are just empty. Anyone have any insights into this?
Thanks,
Alasdair
I'm looking to add data to my database through code and cant figure out how to do it. I have a bunch of strings that all need to be added to the database under their own individual records.
Here's a basic version of my current code:
- Code: Select all
var vfoundset = databaseManager.getFoundSet(server, table)
var vnewRecord = vfoundset.newRecord()
vnewRecord[databaseColumn] = 'string'
I thought this would work but haven't had any luck yet and all the records are just empty. Anyone have any insights into this?
Thanks,
Alasdair