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

 Setting sessionvariables after clicking a link

Print topic Send  topic

Author Message
marcel

Posts: 26
Posted: 10/18/2007, 8:43 AM

I am working with CodeCharge for 2 years now and try to make applications with a minimum of coding (PHP, MySQL). Most things work very nice and deliver reliable, full-functional applications.
Now I made a grid form with a link control in one of the columns. I want to set a session variable (the value of a field in the row) just after clicking the link. That cannot be done with an event (only before show) so I put a button in the record row, with the onclick-event set to custom code and a redirect:

global $Redirect ;
$Redirect = “<URL> “;

The button is surrounded by
<form name="{HTMLFormName}" action="{Action}" method="post">
</form>.

Nothing happens when clicking on the link, even when I hardcode the URL in the custom code. After some tests I only can get a working redirect in a record form. Looked in the forum and found only answers working in record forms (e.g. Login).
So, how does one get a universal way to set session variables just after clicking links in grids? I want to use as minimum code as needed and not using parameters in the URL, which is an other solution to pass through variables.
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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