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.
|
|
|
 |
|