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