CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Submit Button in ROW does not execute click event versus at bottom of Editable GRID

Print topic Send  topic

Author Message
myproxy

Posts: 23
Posted: 10/06/2007, 3:13 PM

I have buttons that are part of rows in a record.

I have a custom code for buttons defined as "Submit" which has an event of On Click to simply write a log value to the database. The click event for the button never gets called.

However, if I create a new submit button and it is on last row of Grid and NOT in rows then it does execute as normal.

I am on version 3.2.0.2.

The button in rows does function as a submit button because it wil refresh page as defined, it just won't execute the custom code under the click event.

Anybody use submit buttons in rows?
View profile  Send private message
klwillis


Posts: 428
Posted: 10/06/2007, 3:29 PM

On your buttons within the grid rows, just call the 'submit()' method on the form which
contains the grid - you can just make these regular buttons.

You may want to set a global JavaScript variable which identifies which of the row
buttons you pressed.

I'm sure there are more elegant ways to accomplish this, but that should work for you.

Quote myproxy:
I have buttons that are part of rows in a record.

I have a custom code for buttons defined as "Submit" which has an event of On Click to simply write a log value to the database. The click event for the button never gets called.

However, if I create a new submit button and it is on last row of Grid and NOT in rows then it does execute as normal.

I am on version 3.2.0.2.

The button in rows does function as a submit button because it wil refresh page as defined, it just won't execute the custom code under the click event.

Anybody use submit buttons in rows?


_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
datadoit
Posted: 10/06/2007, 3:39 PM

myproxy wrote:
> I have buttons that are part of rows in a record.
>
> I have a custom code for buttons defined as "Submit" which has an event of On
> Click to simply write a log value to the database. The click event for the
> button never gets called.
>
> However, if I create a new submit button and it is on last row of Grid and NOT
> in rows then it does execute as normal.
>
> I am on version 3.2.0.2.
>
> The button in rows does function as a submit button because it wil refresh page
> as defined, it just won't execute the custom code under the click event.
>
> Anybody use submit buttons in rows?
>
> ---------------------------------------

Is your button in your editable grid row defined as "Type" submit or
"Operation" submit? It should be both.
myproxy

Posts: 23
Posted: 10/06/2007, 9:19 PM


actually, I make them a submit button on purpose so that they will trigger the page to move to the next page(in this case the same page) otherwise the button does nothing!

What baffles me is that if they are in the rows of a grid they will not execute the click event for the button, if they are outside of the row like in bottom or top row then the click event is executed as expected.

I want to simply signify a copy button for a row and then in the on click event actually do the db copy for that row.

I tried a different approach using a hyperlink via label and place the rowid as part of link and use &CopyRow=1 which the page show event reads and does the actual copy.

The next problem was the fact the Page Show event is getting executed twice in a row, so apparently something is causing the page to be reloaded, so now I am really stuck!

So one problems lead to another...

Anybody got an idea of how I can find out what is reloading the page again?
Firebug?
View profile  Send private message

Add new topic Subscribe to topic   


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.