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

 PressedButton value in form BeforeShow event [Solved]

Print topic Send  topic

Author Message
karen

Posts: 99
Posted: 04/22/2010, 4:28 AM

Hi all,

I'm trying to detect if a button is clicked in the form BeforeShow event so as to dynamically modify the values of the fields on the form. This is not an update button; when clicked, it just values from an external file and places them in the URL so in the BeforeShow event of the form, those values are retrieved. But in case if any URL parameter is not set and the button has been clicked, I would like to perform some action.

I'm guessing that this is not the way to do it as I can't get the value for PressedButton in BeforeShow. Any advice is much appreciated. Thanks in advance.

Cheers,
Karen
View profile  Send private message
datadoit
Posted: 04/22/2010, 4:57 AM

Karen you're only going to be able to get the value of this property
'after' the button is clicked. On Click, On Validate, On Submit, Before
Execute Insert, etc.
karen

Posts: 99
Posted: 04/22/2010, 4:11 PM

Thanks, datadoit. At least I know now not to keep trying to get the value of PressedButton in the BeforeShow event.

In my case, I do click the button and get back to the same form so how can I pass the PressedButton value so that I can detect that this is not the first time the form is shown but after the button is clicked? I thought of passing a parameter thru the URL but then how do I reset the parameter if I still remain in the same page but did not click the button again? I read somewhere that CCGetParam("button_name","") can do that but I couldn't get that to work either. Any ideas would be much appreciated. Thanks so much.

Cheers,
Karen
View profile  Send private message
karen

Posts: 99
Posted: 04/22/2010, 9:05 PM

Hi all,

I have decided to set a session variable to detect if the button has been clicked and then reset its value at the end of the BeforeShow event. If anyone has better suggestions, I would like to learn more. Thanks all!

Cheers,
Karen
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 04/25/2010, 7:32 AM

karen
If you consider your issue/problem/question resolved then please add [Resolved] or [Solved] to the thread title. Thanks.
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.

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.