Lucas,
Ok Great
I miss understood it
Can you now try it with your app?
It would be great to have your comments.
Im going to try it myself tomorrow.
Antonio H Ferreira
Lucas,
Ok Great
I miss understood it
Can you now try it with your app?
It would be great to have your comments.
Im going to try it myself tomorrow.
Antonio,
I am already testing with my App.
So that麓s how I discovered most bugs and the one at dbseek().
Thank you.
New version adordd https://github.com/AHFERREIRA/adordd.git
Antonio,
DbFilter() does not return the filter expresi贸n.
Also, OrdSetFocus() when there is an active filter fails.
Thank you.
/*
fix to add HBRECNO if it麓s not present // Lucas De Beltran 23.05.2015
cannot be first otherwise copy to changes all fields order and values ahf 23.5.2015
Transposes the array to have only first row // Lucas de Beltran 24.05.2015
*/
IF ASCAN( ArrTranspose( aWAData[ WA_SQLSTRUCT ] )[1], ADO_GET_FIELD_RECNO( aWAData[ WA_TABLENAME ] ) ) == 0
AADD( aWAData[ WA_SQLSTRUCT ], { ADO_GET_FIELD_RECNO( aWAData[ WA_TABLENAME ] ), '+', 10, 0 } )
ENDIF
DbFilter() does not return the filter expresi贸n.
Also, OrdSetFocus() when there is an active filter fails.
lucasdebeltran wrote:Antonio,
As you change position to HBRECNO at ADO_CREATE(), this fix is required to handle the array:
聽 聽/* 聽 聽fix to add HBRECNO if it麓s not present 聽// Lucas De Beltran 23.05.2015 聽 聽cannot be first otherwise copy to changes all fields order and values ahf 23.5.2015 聽 聽Transposes the array to have only first row 聽// Lucas de Beltran 24.05.2015 聽 聽*/ 聽 聽IF ASCAN( ArrTranspose( 聽aWAData[ WA_SQLSTRUCT ] 聽)[1], ADO_GET_FIELD_RECNO( 聽aWAData[ WA_TABLENAME ] ) ) == 0 聽 聽 聽 AADD( aWAData[ WA_SQLSTRUCT ], { 聽ADO_GET_FIELD_RECNO( 聽aWAData[ WA_TABLENAME ] ), '+', 10, 0 } ) 聽 聽ENDIF
Antonio,
To debug OrdSetFocus(), I need the fix for dbfilter() please, to trace the problem.
It my be related when appending of replacing records, the filter is cleared?.
I don麓t know if it happened before.
About ArrayTranspose(), its aviable here:
https://bitbucket.org/fivetech/fiveweb/ ... ?at=master
Also, at adordd.prg, can you please move all Fivewin functions to the bottom of the code?.
Thank you.
Lucas,
Check you email.
Lucas,
Ordsetfocus() with filters seems to be working ok here. (MySql)
Antonio,
And when the INDEX TAG has a condition?.
Thank you.
Lucas,
I didnt try it.
As soon as I have some time we ll try it.
Antonio,
Set filter is not working fine.
aBookMarks is always is righ.
However, sometimes I get only one record, when I should get three records.
Even, at Browse I see three of them, but I i click on the browse, the cursor only shows one.
Lucas,
Please try:
1st without indexes. Is it working ?
2nd indexes without condition. Is it working ?
3rd indexes with condition. Is it working ?
Here with browse() 1st and 2nd working. (MYSQL)
I suspect that has something to do with ado_reccount()
STATIC FUNCTION ADO_FILTERTEXT(nWa,cFilterExp)
LOCAL aWAData := USRRDD_AREADATA( nWA )
cFilterExp := aWAData[WA_CFILTERACTIVE]
RETURN HB_SUCCESS