OrdSetRelation()
Posted: Thu Aug 22, 2013 10:17 am
Hola amigos.
Tengo dos DBFs (Clientes.dbf y Libro.dbf con índices CDXs) relacionadas mediante la función OrdSetRelation() mediante el campo NumCli:
Así puedo ver todos los libros que tiene cada cliente.
Mi problema es que en la relación de libros comprados, en la ventana de cada cliente, se ve en primer lugar el libro que compró antes y en el último lugar el que compró más recientemente.
Necesito que esa relación de libros comprados, se vea en primer lugar el libro que compró más recientemente y en último lugar el primero que compró.
Espero que podáis darme alguna sugerencia
Muchas gracias
Rafael Pérez
Translated by Google.
Hello friends.
I have two DBFs (Clientes.dbf and Libro.dbf with indexes CDXs) OrdSetRelation related by function () using the field NumCli:
So I can see all the books available to each client.
My problem is that in the relation of books purchased, in the window of each client is the first book I bought before and in the last place you bought more recently.
I need that relationship of books bought, to look first bought the book recently and the first last bought.
I hope you can give me some suggestions.
Thank you very much
Rafael Pérez
Tengo dos DBFs (Clientes.dbf y Libro.dbf con índices CDXs) relacionadas mediante la función OrdSetRelation() mediante el campo NumCli:
Code: Select all
OrdSetRelation('Libro', {|| Clientes->NumCli}, 'Clientes->NumCli')
Mi problema es que en la relación de libros comprados, en la ventana de cada cliente, se ve en primer lugar el libro que compró antes y en el último lugar el que compró más recientemente.
Necesito que esa relación de libros comprados, se vea en primer lugar el libro que compró más recientemente y en último lugar el primero que compró.
Code: Select all
@ 490 , 22 BROWSE Browse_1 ;
WIDTH 975 ;
HEIGHT 193 ;
HEADERS { 'CliNum', 'CertNum', 'Realizado', 'Renovación', 'Categoría', 'Obt/Rev', 'Resultado' } ;
WIDTHS { 92 , 92 , 115 , 115 , 218 , 150 , 170 } ;
WORKAREA LIBRO ;
FIELDS { 'Libro->NUMCLI', 'Libro->NUMCERT', 'Libro->FECHACERT', 'Libro->FECHAREVI', 'Libro->CATEGORIA', 'Libro->OBTREV', 'Libro->RESTOTAL' } ;
TOOLTIP 'Apuntes de Certificados' ;
FONTCOLOR {0 , 0 , 255} ;
SIZE 14 ;
ON DBLCLICK (AnadeEditaCert(.F. , ,), ActualizarClientes(cBase))
Muchas gracias
Rafael Pérez
Translated by Google.
Hello friends.
I have two DBFs (Clientes.dbf and Libro.dbf with indexes CDXs) OrdSetRelation related by function () using the field NumCli:
Code: Select all
OrdSetRelation('Libro', {|| Clientes->NumCli}, 'Clientes->NumCli')
My problem is that in the relation of books purchased, in the window of each client is the first book I bought before and in the last place you bought more recently.
I need that relationship of books bought, to look first bought the book recently and the first last bought.
Code: Select all
@ 490 , 22 BROWSE Browse_1 ;
WIDTH 975 ;
HEIGHT 193 ;
HEADERS { 'CliNum', 'CertNum', 'Realizado', 'Renovación', 'Categoría', 'Obt/Rev', 'Resultado' } ;
WIDTHS { 92 , 92 , 115 , 115 , 218 , 150 , 170 } ;
WORKAREA LIBRO ;
FIELDS { 'Libro->NUMCLI', 'Libro->NUMCERT', 'Libro->FECHACERT', 'Libro->FECHAREVI', 'Libro->CATEGORIA', 'Libro->OBTREV', 'Libro->RESTOTAL' } ;
TOOLTIP 'Apuntes de Certificados' ;
FONTCOLOR {0 , 0 , 255} ;
SIZE 14 ;
ON DBLCLICK (AnadeEditaCert(.F. , ,), ActualizarClientes(cBase))
Thank you very much
Rafael Pérez