CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Dynamically Creating Objects

Print topic Send  topic

Author Message
aculis-bryan

Posts: 4
Posted: 10/28/2008, 12:27 PM

I would like to execute the following code, but the InsertItem() method is not available. What is the correct way to dynamically create and persist an object?

idb2.AlbumTrackAssignment.Album_to_Track_viewItem item = new idb2.AlbumTrackAssignment.Album_to_Track_viewItem();
item["Album_id"] = new IntegerField("", Request.QueryString["Album_id"]);
item["addTrackId"] = new IntegerField("", Request.QueryString["addTrackId"]);
item["trackNumber"] = new BooleanField(Settings.BoolFormat, Request.QueryString["trackNumber"]);
int result = Album_to_Track_viewDataProvider.InsertItem(item);

Thanks.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.