FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WEBDEV 2024
→
Always to the first record in query
Always to the first record in query
Iniciado por Henk Ouwejan, 09,ago. 2016 22:20 - 1 respuesta
Conéctese…
Henk Ouwejan
#1
Publicado el 09,agosto 2016 - 22:20
Hi all,
I have created an table, based on a query, in a vision page. When calling this query bij using PageDialog always the first record is selected. I like to select the current record.
Using the next code by init. the page (server code)
// Position on the current record
TableDisplay(TABLE_QRY_products_brand,taCurrentRecord)
Do I forgot something?
Informar
0
0
Fabrice Harari
#2
Publicado el 10,agosto 2016 - 16:42
Hi Henk
When you load a table, there is no currentrecord.
currentrecord means the currently selected line in the TABLE CONTROL...
Not where the cursor is in the dataset before loading the table
So, for what you want to do, you need to first do a tableseek of your
'current' record, then do a tableselectplus of the line found
Best regards
--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)
More information on
http://www.fabriceharari.com
Le 8/9/2016 à 2:20 PM, Henk Ouwejan a écrit :
Hi all,
I have created an table, based on a query, in a vision page. When
calling this query bij using PageDialog always the first record is
selected. I like to select the current record.
Using the next code by init. the page (server code)
// Position on the current record
TableDisplay(TABLE_QRY_products_brand,taCurrentRecord)
Do I forgot something?
Informar
1
0
→ Volver a WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto