I have an ND4 application where I need to set the target pages dynamically in code. In 
some cases a 
href/button will have different target pages depending on other conditions. When I run 
the application get the error 
something like this

spider.visual.CSpHref.doGoToNdUrlAction: Server side execution of doAction() for 
'hrDealID' affects more than a single destination Page
(pgBoDeal,pgBoDealAdmin). Anything but the targetNDPage (pgBoDeal) might not take 
effect.

However if I set the target page for the href I get the following

spider.visual.CSpButton.doGoToNdUrlAction: No ND Page set for 'btMainMenu'(a 
spider.visual.CSpButton). 
You should select one in the Studio or call setTargetNDPage() on this instance


In ND3 the majority of the hrefs/buttons were set up with the option in the wizard 
that would allow you to 
set the target page dynamically in code however this option does not appear in the ND4 
wizard.


Below is some code I use for loading the target page dynamically
// button click event code

int command = PROCEED_WITH_BUILTIN_HANDLING;
command = doAction( args );

// Pass two values to the next screen
CSpValue dealID = new CSpString( args[1] );
CSpValue dealVersion = new CSpString( args[2] );

pgBoDealAdmin page = (pgBoDealAdmin)CSpider.getPage( "pgBoDealAdmin" );
command = page.load( dealID, dealVersion );
return( command );


Any idea how to get rid of these messages ??

Pat.
_________________________________________________________________________

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]

Reply via email to