CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 BIG BUG: Cancel button has Update action

Print topic Send  topic

Author Message
boolean

Posts: 62
Posted: 12/03/2008, 9:46 AM

Hello,
I have a Record form to update record with 2 required fields and it has 3 buttons:

1) Cancel1 button: Cancel and Go to Page 1 (Enable Validation = No)
2) Update button: Update record
3) Cancel2 button: Cancel and Go to Page 2 (Enable Validation = No)

I use the Remember Me feature for 12 hours when logging in. As I go to the Page with this Record form and leave it for more than 25 minutes, I click the Cancel1 button and the Error messge display

The value in field A is required.
The value in field B is required.

WEIRD. Has anyone got some situation like this? This causes a serious problem in case of I need the Record form to update with hidden fields (not required) and send email after Update.

Please point out what happen. Thank you very much.
View profile  Send private message
datadoit
Posted: 12/03/2008, 10:18 AM

Please try to avoid spewing out BIG BUG in forums.

Set 'Enable Validation' to No on your button.
boolean

Posts: 62
Posted: 12/03/2008, 1:34 PM

I did quote

1) Cancel1 button: Cancel and Go to Page 1 (Enable Validation = No)
2) Update button: Update record
3) Cancel2 button: Cancel and Go to Page 2 (Enable Validation = No)

So, I already set Enable Validation = No. I just find out this problem/bug and it is important to me to understand why it happens and how to fix it.

Suggestion, please.
View profile  Send private message
datadoit
Posted: 12/03/2008, 2:43 PM

Something else to check... look at the HTML and make sure all three of
your buttons are encased in the <-- BEGIN BUTTON END BUTTON--> tags.
I'd even throw in an   between them.
boolean

Posts: 62
Posted: 12/04/2008, 7:39 AM

Each button in a row

<!-- BEGIN Button Button_Cancel --><input class="Button" id="ncfmmaterialButton_Cancel" type="submit" alt="Cancel" value="Main List" name="{Button_Name}"><!-- END Button Button_Cancel -->
<!-- BEGIN Button Button_Update --><input class="Button" id="ncfmmaterialButton_Update" type="submit" alt="Update" value="Request Approval" name="{Button_Name}"><!-- END Button Button_Update -->
<!-- BEGIN Button Button1 --><input class="Button" id="ncfmmaterialButton1" onclick="window.print();" type="button" alt="Button1" value="Print" name="{Button_Name}"><!-- END Button Button1 -->

The importance is that if I click on the button ncfmmaterialButton_Cancel before 20-25 minutes, the form works fine. However, after that time period, the Cancel button has the action of sending email of the Update button that I have in After Update event.

I test another form that have Add, Update, Delete, Cancel button. I add 1 more Cancel button called Exit. It looks like this

Row 5: Button_Add, Button_Update, Update_Delete,Button_Cancel
Row 6: Button_Exit

I open the page, leave it after 25 minutes and click on Button_Exit. The error messages that show as clicking on Button_Add show up. THE CANCEL BUTTON IS SUPPOSED TO DO NOTHING.

Any thoughts? Thanks.
View profile  Send private message
datadoit
Posted: 12/04/2008, 10:48 AM

What is the browser and version that is being used to create the error?
Have you tried recreating the error in a different browser?
boolean

Posts: 62
Posted: 12/04/2008, 12:22 PM

I work on browser IE 6 and IE 7.
Same thing happens on FireFox.
View profile  Send private message
datadoit
Posted: 12/31/2008, 8:22 AM

Did you ever get this resolved?

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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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