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

 Report Like Grid design

Print topic Send  topic

Author Message
telmiger

Posts: 61
Posted: 04/21/2004, 8:32 PM

I created an Report Like Grid as explained in the CodeCharge
FAQ.

http://support.codecharge.com/kb_article.asp?article_id=57
It works, but I would like to take it one step further.

In addition to the Category name I would like to add a link that opens up a new popup window.

But I can't get the Linking code to work in the before show row event.

Heres my code

$Tpl->SetVar("category", "<tr><td background=\"\" bgcolor=\"E1DEDE\" colspan=\"26\" rowspan=\"\">"
."<strong>"."".$clients1->client_name->Value." "."</strong>".""
.("<script>onclick=window.open('popups/clients.php?client_id={client_id}', 'newwin','left=100,top=10,width =610,height=500,status=no,toolbar=no,menubar=no,location=no,scrollbars=no'); href='javascript:void(0)';>Edit Client</script>").""
.$clients1->client_address1->Value." "

The line with the <script> function will not work. Does anybody sees what is wrong with this code.

The rest works

The code snipped is in the before row event and should create a new popup window transfering the client_id

Any help would be appreciated.

Tony Elmiger


View profile  Send private message
peterr


Posts: 5971
Posted: 04/22/2004, 1:57 AM

I'm not sure if I can help, but possibly you could post here the same piece of the HTML, but after it is already displayed in the browser. You can view the Live page in the browser, view the HTML source and copy the relevant part. This would be easier to analyze.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.

MS Access to Web

Convert MS Access to Web.
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.