CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Cancel Button in PHP does not cancel........

Print topic Send  topic

Author Message
RoyBaird

Posts: 115
Posted: 08/05/2008, 9:52 AM

Example 1:The Application Builder in PHP does not ask which buttons you want. Example 2: It does if you select blank page, then use the Builder.
In Examplet 1, I added a Cancel Button to my maint pages. The button works in that you are taken to the page specfied in the Return Page. But it does and Add or Update anyway.

In Example 2, it works as I would expect, no add or update.

I have looked at the HTML and PHP code and they "look" the same when searching for the word "cancel".

Is this a BUG or Feature and how do I get the Cancel to CANCEL?

I have used CCS since 1.1, ASP with VB templates. This is my first venture into PHP. I KNOW Example 1 works in ASP..

HELP!!!!

Thanks,
Roy
_________________
Roy
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/05/2008, 10:28 AM

You should take a closer look at the properties of your Cancel Button.
Compare the two versions you have.

The correct properties for the Cancel Button are:
Name: Button_Cancel
Operation: Cancel (select from DropList.
Return Page: can be blank, should follow the page's returnpage
Remove Parameters, default blank
Convert URL to: your choice
Default Button: Yes (my choice, caters for ENTER press
Enable Validation: default No,

Walter

[small caps]
Are you divided? Being ASP and PHP?
Is that why bottom of post says:

Roy
_________________
Roy

(lol)
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
RoyBaird

Posts: 115
Posted: 08/05/2008, 1:20 PM

Very Odd, I the only thing different was the Name. I had Cancel_Button ,but changed it to Button_Cancel and it would not work. I then deleted the button and started over. Works just fine now. I wonder if the "Name" is hard coded somewhere in the PHP library.

Anyway, Thanks for the help....

And yes, I am divided... 8-)
_________________
Roy
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/05/2008, 1:46 PM

No Thanks.
The Name (Properties) does not matter, I changed it to Whoopie and it still functions.
The action should be Cancel from droplist though.
Divided we stand!

Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
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.