CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Form not based on database

Print topic Send  topic

Author Message
Karen
Posted: 06/13/2003, 1:06 AM

I am trying to build a form where the controls are not based on the database table fields. However, when this form is submitted, I would like to insert/delete using custom code.

In CC, I build a record type form for a particular table but the controls were not linked to the table. And then I selected "Allow Insert" and placed the custom code in the Before Insert event.

I tried to do the same in CCS but I think it's 'smarter'. Since the controls were not linked to any table fields, my insert button does not appear!

Has anyone tried to do something similar? Pls help. TIA!
glerma
Posted: 06/13/2003, 10:48 AM

I don't think you can do that. The form needs a datasource.



Why would you want to build a form NOT based on a database? That kind of negates the reason for using Codecharge.
Karen
Posted: 06/13/2003, 11:28 PM

I figured it out already, my button was linked to insert action. I should have just added a submit button with no action and placed the custom code in the onclick event.

The reason why the initial form is not linked to the database is because the action (insert or delete) depends on the value entered in one of the controls. That the reason for the custom codes.

   


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

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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