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 -> Java

 javascript Open window using a parameter

Print topic Send  topic

Author Message
FreeThinker

Posts: 4
Posted: 07/23/2008, 7:12 AM

hello, I have one grid that load data from the database, inside the grid there is a link in the first column, I want to open a window when link is clicked sending a parameter...

The database table name is 'AFILIADO' and I want to send the primary key value 'AFILIADO__CODIGO'

here is the code:

XML

<Link name="lnkPreAnex" dataType="Text"
controlSourceType="DataSource" controlSource="AFILIADO__CODIGO"
hrefType="Page" hrefSource="javascript:preexistencia('THE PARAMETER')" convertRule="Relative"
format="" dbFormat="" isHtml="False" preserveParams="GET">
</Link>

THE JAVASCRIPT FUNCTION:

function preexistencia(codigo) {
abrir=window.open("PreexistenciasAnexos.jsp?cod="+codigo,"","scrollbars=yes,toolbar=no");
abrir.window.focus();
}

help please...
_________________
La grandeza no se improvisa...
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.