!urgente..Problema con indices CDX

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
jucar_es
Posts: 82
Joined: Thu Nov 13, 2008 11:12 pm

!urgente..Problema con indices CDX

Post by jucar_es »

Muy buenas tardes

Tengo una aplicacion desde hace bastante tiempo en HMG, antes trabajaba con NTX, pero decidi cambiarla a CDX, despues de haber cambiado, habia funcionado bien, hoy la instale donde un cliente que tiene una red XP, y me encontre con que estos cdx parecen no funcionar con multiusuario pues se correompen muy facilmente o no se usarlos adecuadamente. el caso es que si un segundo usuario ingresa, para este no funcionan los indices

el primer usuario busca el codigo 1 y lo encuentra sin problema
el segundo o tercer usuario busca el mismo codigo pero no lo encuentra...

que estare hacendo mal?

gracias por su colaboracion

pd reversar el cambio de cdx a ntx es bastante dicficil
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: !urgente..Problema con indices CDX

Post by Vanguarda »

Hello friend,

You try create again the files CDX?
How you creating the CDX files?
What command do you use for OPEN the tables? post in here please.

My best regards,

PS: SOrry my bad english

Espanish by google:

Hola amigo,

Intenta crear de nuevo los archivos CDX?
¿Cómo te la creación de los archivos CDX?
¿Qué comando se utiliza para abrir las tablas? puesto de aquí por favor.

Saludos,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
jucar_es
Posts: 82
Joined: Thu Nov 13, 2008 11:12 pm

Re: !urgente..Problema con indices CDX

Post by jucar_es »

Gracias

para indexar...

use inv100 EXCLUSIVE
index on INVCOD TAG INVCOD

Para abrirlos

use inv100 shared
ordsetfocus("INVCOD")
SEEK CODIGO
...
...
jouhmg
Posts: 26
Joined: Thu Jul 31, 2008 3:22 am

Re: !urgente..Problema con indices CDX

Post by jouhmg »

Hola:

Te comento como los uso yo y van muy bien:

Al iniciar la aplicación:

1)Borro los índices CDX
2)Abro la DBF
3)Creo los índices CDX
4)Selecciono el orden que necesito

Luego se puede optar por cerrar todo o mantenerlos en ese estado mientras corre la aplicación.

Saludos
jouhmg

English by Google

Hi:

I commented as I use and are very well:

When you start the application:

1) I delete the CDX Indices
2) I open the DBF
3) I believe the CDX Indices
4) Select the order you need

Then you can choose to close all or keep them in
state while running the application.

Greetings
jouhmg
jucar_es
Posts: 82
Joined: Thu Nov 13, 2008 11:12 pm

Re: !urgente..Problema con indices CDX

Post by jucar_es »

cordial saludo

ahora estoy mas perdido...

acabo de montar en una red nueva en casa

comparto LA UNIDAD C mi pc (winxp sp2), me conecto desde otro pc, ejecuto el programa Y FUNCIONA PERFECTO, por tanto debo verificar donde el cliente. (lo que no se es que mirar..)

-alguien sabe condiciones de entorno debo verificar

gracias
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: !urgente..Problema con indices CDX

Post by Vanguarda »

Hi friend,

Please verify the network of your client. Cables, switch, etc...

I think that the problem can be that.

Anyway, verify the windows firewall too, and the rules allows.

I don´t be able to connection in here... but was the windows 7 firewall that i don´t had allowed. :shock:


My best regards,

PS: Sorry my bad english
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
User avatar
apais
Posts: 441
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF, Leto, MariaDB, SQLite
Location: uruguay
Contact:

Re: !urgente..Problema con indices CDX

Post by apais »

Desactivaron el optimistic locking en el server y todas las estaciones ?
Angel Pais
Web Apps consultant/architect/developer.
jucar_es
Posts: 82
Joined: Thu Nov 13, 2008 11:12 pm

Re: !urgente..Problema con indices CDX

Post by jucar_es »

Desactivaron el optimistic locking en el server y todas las estaciones ?

no se que es? como lo hago

gracias
User avatar
luisvasquezcl
Posts: 1263
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: !urgente..Problema con indices CDX

Post by luisvasquezcl »

Estimado colega,
no sé si incluyó en la cabecera de su programa lo siguiente:

REQUEST DBFCDX, DBFFPT
RDDSETDEFAULT('DBFCDX')

esto permite que use los drivers correspondientes a cdx ya que por defecto usa ntx

espero le sirva.
saludos cordiales,
Luis Vasquez
Post Reply