Welcome! Log In Create A New Profile

Advanced

HlitRecherchePremier Ne se positionne pas correctement

Posted by Aurélien 
Aurélien
HlitRecherchePremier Ne se positionne pas correctement
August 05, 2022 08:27AM
Posté le 05 août 2022 - 08:23
Bonjour, j'ai un gros soucis avec la fonction HlitRecherchePremier

L'enregistrement sur le quel je lui demande de se positionne n'existe pas, mais il se positionne sur un autre

Ma Valeur Recherchée = "E 20.05.05-AA"
La Valeur trouvée = "E 20.05.05A-A"

Impossible de trouver pourquoi !!!

//** On se positionne sur le numéro de fiche chantier en cours **
HLitRecherchePremier(FICHE_CHANTIER,NumFicheChantier,Gf_Ch_NumFicheChantierEnCours + Caract(0))
//** Si on ne trouve pas, on cré **
SI PAS HTrouve(FICHE_CHANTIER) ALORS
HRAZ(FICHE_CHANTIER)
FICHE_CHANTIER.NumFicheChantier = Gf_Ch_NumFicheChantierEnCours
FICHE_CHANTIER.CodeChantier = ExtraitChaîne(Gf_Ch_NumFicheChantierEnCours,1,"-",DepuisDébut) = "" //CreationNomSemaineParRapportDate(datesys())
FICHE_CHANTIER.LoginGpwDemandeEcriture = Gp_Ch_Gpw_InfoLoginJournal
HAjoute(FICHE_CHANTIER)
FIN


Je suis un peu en panique car gros soucis derrière

Si quelqu'un veut jouer le bon samaritain ca serait top !!
Al
Re: HlitRecherchePremier Ne se positionne pas correctement
August 05, 2022 09:00AM
Hello Aurélien,

This is an ENGLISH language forum.
Please post again in English

Regards
Al
Re: HlitRecherchePremier Ne se positionne pas correctement
August 05, 2022 09:05AM
Hi Aurélien

Your indexes are defined probably as unsensitive to case, accents and non alphanumeric characters in your analysis.
This causes:
"E 20.05.05-AA" to be identical to "E 20.05.05A-A" from index point of view namely: "E200505AA"

You'll need to change this in your analysis on this field in this case and regenerate your indexes.

Cheers

Peter H.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: