I guess your approach will invite the infamous Session Bleed. No matter what
you do the button object, the generated html tag is something like:
<INPUT TYPE=SUBMIT NAME="btSubmit_onWebEvent(btSubmit)" VALUE="Submit">

Clicking on this button will pass control to >> btSubmit_onWebEvent()<< of
the page on the ND side.
If the code is doAction(), the action would be whatver the button object is
currently set to do. The Page Object and all its children being shared
objects, the button's current settings will be whatever was done the last
time the Page was accessed by somebody out there in the world.

The closest you can do might be to keep the ACTION Details in hidden
variables and set the button properties inside btSubmit_onWebEvent(), before
calling doAction().

Aby
TeamND

> -----Original Message-----
> From: Guillaume CREST [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 14, 2000 5:46 AM
> To: [EMAIL PROTECTED]
> Subject: [ND] Change dynamically buttons and href action types
> 
> 
>         Hi there,
> 
>   I'm customising my own button and href instances.
>         This means that, by default, the href or button created is
> custom,
> and that, in its OnBeforeDisplayEvent, I change its action 
> type acording
> to
> values taken from a DB.
>         Then, if the doAction is launched on the Web Event of the
> display
> field, the user needs to click twice toget the right action, that has
> been
> set dynamically. This problem occurs on IE4.0 sp1a, but not 
> on Netscape
> Communicator 4.6
>         Sometimes, still on IE4, the brower indicates that
> "No_Action_Type..." as if the setActionType(...) and
> setTargetNDPage(...)
> methods had been useless.
> 
>         The generated HTML code is good.
> 
>         Thank you for your help
>         Best Regards,
> 
> 
>       Guillaume CREST
>       Universal Flower
> 
> ______________________________________________________________
> ___________
> 
> 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]

Reply via email to