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 -> Español

 link

Print topic Send  topic

Author Message
marcos
Posted: 12/17/2005, 11:05 AM

utilizo un grid como menu de navegacion, este toma los enlaces de una tabla (secciones), como hago para incluir en el enlace el ultimo registro de cada seccion.

Ejemplo:
actualmente:
www.mipagina.com/ciencias.php
www.mipagina.com/geografi.php


debe ser:
www.mipagina.com/ciencias.php?registro=234
www.mipagina.com/geografi.php?registro=156

el valor "registro" es el id del ultimo registro de la seccion "ciencias" o "geografia"
lvalverdeb

Posts: 299
Posted: 12/20/2005, 7:55 AM

Marcos,

En el BeforeShowRow del grid:
  
$db = new clsDBconexion();  
$where = "seccion=".CCToSQL($Component->DataSource->f("camposeccion"),ccsText);  
$registro = CCDLookUp("MAX('registro')","tutabla",$where,$db);  
unset($db);  
if ($registro) {  
   $pagina = $Component->enlace->Page;  
   $Component->enlace->SetLink($pagina."?registro=".$registro);  
}  

Luis
_________________
lvalverdeb
CR, GMT-6
XAMPP/Ubuntu/CCS3.2/4
View profile  Send private message
alejandro_rojas
Posted: 12/21/2005, 6:16 PM

checha este link.

http://www.ciberdurango.com/soluciones/solucion_marcos.htm

espero te sirva.

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.