Create Record Without Form

Questions, tips and tricks and techniques for scripting in Servoy

Create Record Without Form

Postby 4xjbh » Sun Jun 20, 2010 2:27 pm

What is the best way to create a record in a table without specifying a form....Something that will be friendly with different databases...

Thanks
Regards,

James
4xjbh
 
Posts: 146
Joined: Fri Feb 24, 2006 8:06 am
Location: Brisbane, Australia

Re: Create Record Without Form

Postby ROCLASI » Sun Jun 20, 2010 2:31 pm

Hi James,

You can simply create a foundset from a connection/table and start working with that like you would with a foundset of a form.
Code: Select all
var _fs = databaseManager.getFoundSet("myConnectionName","myTableName");
_fs.newRecord();
_fs.myColumn = "myValue";


Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium


Return to Methods

Who is online

Users browsing this forum: No registered users and 15 guests