CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 default submit button not the default

Print topic Send  topic

Author Message
user
Posted: 11/01/2002, 1:05 AM

I have a form with several buttons on it, with type = "submit" for all.
Server-side custom code is in place for several buttons for the onClick
event for these buttons. The form also has add,update and delete buttons,
the usual for a record detail form. All buttons work properly when clicked
on. On the data tab for the buttons using custom code events, the "Default
Button" property is set to false. When viewing the form and pressing the
enter key, the first button, a "default-no" button is the one whos action is
called. How can I correct this behavior so the button set as "default=yes"
(the update button in this case) is called?

I'd really appreciate some help on this.

Thank you.

Lee Irving
Posted: 11/01/2002, 5:37 AM

I am experiencing the same issue.


"user" <user@guest.com> wrote in message
news:aptg4e$sre$1@news.codecharge.com...
> I have a form with several buttons on it, with type = "submit" for all.
> Server-side custom code is in place for several buttons for the onClick
> event for these buttons. The form also has add,update and delete buttons,
> the usual for a record detail form. All buttons work properly when clicked
> on. On the data tab for the buttons using custom code events, the "Default
> Button" property is set to false. When viewing the form and pressing the
> enter key, the first button, a "default-no" button is the one whos action
is
> called. How can I correct this behavior so the button set as "default=yes"
> (the update button in this case) is called?
>
> I'd really appreciate some help on this.
>
> Thank you.
>
>

Bo Ugljesic
Posted: 11/01/2002, 10:00 AM

I think in html forms that have multiple submit buttons, the default button
is the first button that gets created.

<input name="Insert" type="submit" value="Add" >
<input name="Update" type="submit" value="Submit">
<input name="Delete" type="submit" value="Delete" >
in this case the Add button

<input name="Update" type="submit" value="Submit">
<input name="Insert" type="submit" value="Add" >
<input name="Delete" type="submit" value="Delete" >
in this case the Update button



"user" <user@guest.com> wrote in message
news:aptg4e$sre$1@news.codecharge.com...
> I have a form with several buttons on it, with type = "submit" for all.
> Server-side custom code is in place for several buttons for the onClick
> event for these buttons. The form also has add,update and delete buttons,
> the usual for a record detail form. All buttons work properly when clicked
> on. On the data tab for the buttons using custom code events, the "Default
> Button" property is set to false. When viewing the form and pressing the
> enter key, the first button, a "default-no" button is the one whos action
is
> called. How can I correct this behavior so the button set as "default=yes"
> (the update button in this case) is called?
>
> I'd really appreciate some help on this.
>
> Thank you.
>
>

user
Posted: 11/03/2002, 11:54 AM

Thanks for the replies. I arrived at the same conclusion and ended up
changing the order of the buttons and implemented that button-ordering
workaround. It's non-optimal, but it gets the job done for now. It would be
better, I think, if non-default buttons could be changed from type "submit"
to type "button" and still somehow be active in the ccs event processing
paradigm.



"Bo Ugljesic" <service@altekcomputer.com> wrote in message
news:apufg6$maj$1@news.codecharge.com...
> I think in html forms that have multiple submit buttons, the default
button
> is the first button that gets created.
>
> <input name="Insert" type="submit" value="Add" >
> <input name="Update" type="submit" value="Submit">
> <input name="Delete" type="submit" value="Delete" >
> in this case the Add button
>
> <input name="Update" type="submit" value="Submit">
> <input name="Insert" type="submit" value="Add" >
> <input name="Delete" type="submit" value="Delete" >
> in this case the Update button
>
>
>
> "user" <user@guest.com> wrote in message
>news:aptg4e$sre$1@news.codecharge.com...
> > I have a form with several buttons on it, with type = "submit" for all.
> > Server-side custom code is in place for several buttons for the onClick
> > event for these buttons. The form also has add,update and delete
buttons,
> > the usual for a record detail form. All buttons work properly when
clicked
> > on. On the data tab for the buttons using custom code events, the
"Default
> > Button" property is set to false. When viewing the form and pressing the
> > enter key, the first button, a "default-no" button is the one whos
action
> is
> > called. How can I correct this behavior so the button set as
"default=yes"
> > (the update button in this case) is called?
> >
> > I'd really appreciate some help on this.
> >
> > Thank you.
> >
> >
>
>

Lee Irving
Posted: 11/04/2002, 8:22 AM

My understanding is that setting the default submit button should work.
CodeCharge does seem to try and resolve a default button in the code (
Operation Method ) however it does not seem to function at the moment. I
have not had a chance to try and debug the generated code yet to find out
why not.



"user" <user@guest.com> wrote in message
news:aq3utb$8eb$1@news.codecharge.com...
> Thanks for the replies. I arrived at the same conclusion and ended up
> changing the order of the buttons and implemented that button-ordering
> workaround. It's non-optimal, but it gets the job done for now. It would
be
> better, I think, if non-default buttons could be changed from type
"submit"
> to type "button" and still somehow be active in the ccs event processing
> paradigm.
>
>
>
> "Bo Ugljesic" <service@altekcomputer.com> wrote in message
>news:apufg6$maj$1@news.codecharge.com...
> > I think in html forms that have multiple submit buttons, the default
> button
> > is the first button that gets created.
> >
> > <input name="Insert" type="submit" value="Add" >
> > <input name="Update" type="submit" value="Submit">
> > <input name="Delete" type="submit" value="Delete" >
> > in this case the Add button
> >
> > <input name="Update" type="submit" value="Submit">
> > <input name="Insert" type="submit" value="Add" >
> > <input name="Delete" type="submit" value="Delete" >
> > in this case the Update button
> >
> >
> >
> > "user" <user@guest.com> wrote in message
> >news:aptg4e$sre$1@news.codecharge.com...
> > > I have a form with several buttons on it, with type = "submit" for
all.
> > > Server-side custom code is in place for several buttons for the
onClick
> > > event for these buttons. The form also has add,update and delete
> buttons,
> > > the usual for a record detail form. All buttons work properly when
> clicked
> > > on. On the data tab for the buttons using custom code events, the
> "Default
> > > Button" property is set to false. When viewing the form and pressing
the
> > > enter key, the first button, a "default-no" button is the one whos
> action
> > is
> > > called. How can I correct this behavior so the button set as
> "default=yes"
> > > (the update button in this case) is called?
> > >
> > > I'd really appreciate some help on this.
> > >
> > > Thank you.
> > >
> > >
> >
> >
>
>

user
Posted: 11/07/2002, 2:37 AM

There are a few bugs in the current version. I'm really looking forward to
the next release. I noticed the code you mentioned and need to go through it
also, but there always seem to be a few higher priorities than debugging the
generated code. You know how it goes: a workaround, when found, is usally
applied and the issue never revisited.

Thanks

"Lee Irving" <lee.irving@transcendit.co.uk> wrote in message
news:aq66r8$5tq$1@news.codecharge.com...
> My understanding is that setting the default submit button should work.
> CodeCharge does seem to try and resolve a default button in the code (
> Operation Method ) however it does not seem to function at the moment. I
> have not had a chance to try and debug the generated code yet to find out
> why not.
>
>
>
> "user" <user@guest.com> wrote in message
>news:aq3utb$8eb$1@news.codecharge.com...
> > Thanks for the replies. I arrived at the same conclusion and ended up
> > changing the order of the buttons and implemented that button-ordering
> > workaround. It's non-optimal, but it gets the job done for now. It
would
> be
> > better, I think, if non-default buttons could be changed from type
> "submit"
> > to type "button" and still somehow be active in the ccs event processing
> > paradigm.
> >
> >
> >
> > "Bo Ugljesic" <service@altekcomputer.com> wrote in message
> >news:apufg6$maj$1@news.codecharge.com...
> > > I think in html forms that have multiple submit buttons, the default
> > button
> > > is the first button that gets created.
> > >
> > > <input name="Insert" type="submit" value="Add" >
> > > <input name="Update" type="submit" value="Submit">
> > > <input name="Delete" type="submit" value="Delete" >
> > > in this case the Add button
> > >
> > > <input name="Update" type="submit" value="Submit">
> > > <input name="Insert" type="submit" value="Add" >
> > > <input name="Delete" type="submit" value="Delete" >
> > > in this case the Update button
> > >
> > >
> > >
> > > "user" <user@guest.com> wrote in message
> > >news:aptg4e$sre$1@news.codecharge.com...
> > > > I have a form with several buttons on it, with type = "submit" for
> all.
> > > > Server-side custom code is in place for several buttons for the
> onClick
> > > > event for these buttons. The form also has add,update and delete
> > buttons,
> > > > the usual for a record detail form. All buttons work properly when
> > clicked
> > > > on. On the data tab for the buttons using custom code events, the
> > "Default
> > > > Button" property is set to false. When viewing the form and pressing
> the
> > > > enter key, the first button, a "default-no" button is the one whos
> > action
> > > is
> > > > called. How can I correct this behavior so the button set as
> > "default=yes"
> > > > (the update button in this case) is called?
> > > >
> > > > I'd really appreciate some help on this.
> > > >
> > > > Thank you.
> > > >
> > > >
> > >
> > >
> >
> >
>
>


   


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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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