The built-in insert functionality is accomplished via the doAction command
in the button's web event.
Any time 'doAction' does not do precisely what you want, look up the
commands that are carried out when it is executed. These are fully
documented in the javadoc for spider.visual.CSpCommand. Then substitute
some variation that will work for you.
In the case of built-in 'insert', doAction translates to:
int command = parentPage.executeAllInsertingDataObjects ();
if (command == PROCEED_WITH_BUILTIN_HANDLING)
{
command = parentPage.displayLast ();
}
You will probably wind up substituting something like:
int command = parentPage.executeAllInsertingDataObjects ();
if (command == PROCEED_WITH_BUILTIN_HANDLING)
{
command = load("nextpage");
}
-- Curt Springer, Team ND
At 10:07 AM 5/28/99 -0800, [EMAIL PROTECTED] wrote:
>I am using NetDynamics 4
>
>I have a page with a few input fields and an "Insert" button.
>The button is using the Built-it Insert functionality to insert a row in a
database table.
>
>How do I tell it what page to load next?
>
>When I simply add load("nextpage") to the web event of the button I get
both the current page and next page. How do I solve this problem without
manually executing the data object in the code?
>
>Thanks,
> - Asaf :)
>
>_________________________________________________________________________
>
>For help in using, subscribing, and unsubscribing to the discussion
>forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>
>For dire need help, email: [EMAIL PROTECTED]
>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]