busqueda incremental con tdolphin

busqueda incremental con tdolphin

Postby artu01 » Mon May 08, 2017 2:15 am

Gente :
Estoy pasando de DBF a SQL para ello trabajo con la clase TDOLPHIN de Daniel pero no logro que me muestre solamente las filas que coinicida con lo tipeado
la coincidencia puede ser al comienzo , mitad o final del apellido

Este es mi code

Code: Select all  Expand view

#include "FiveWin.ch"
#include "tdolphin.ch"
#include "xbrowse.ch

   IF ( oServer := ConnectTo() ) == NIL
      RETURN NIL
   ENDIF
      D_SetCaseSensitive( .T. )
   
    oQry:=oServer:Query("
SELECT * FROM president order by first_name")

   DEFINE DIALOG oDlg  SIZE 565, 480
   
   @ 30, 10 XBROWSE oBrw DATASOURCE oQry ;
            AUTOSORT PIXEL SIZE 260, 200  //AUTOCOLS

       oBrw:nMarqueeStyle       := MARQSTYLE_HIGHLROW
           
       WITH OBJECT oBrw
         :lSeekWild          := .t.
         :lIncrFilter := .t.
         :cFilterFld := "
first_name"        
      END


   
   @ 10, 10 SAY oBrw:oSeek PROMPT oBrw:cSeek SIZE 80,10 PIXEL OF oDlg ;
      COLOR CLR_RED,CLR_YELLOW

   
// Uncomment this line for fivewin version < 10.7  
//   SetDolphin( oBrw, oQry )
   
   oBrw:CreateFromCode()
     
   ACTIVATE DIALOG oDlg CENTERED

Gracias
fwh 17.12, harbour 3.2.0, pelles C, bcc7, Ms-Sql
artu01
 
Posts: 399
Joined: Fri May 11, 2007 8:20 pm
Location: Lima

Re: busqueda incremental con tdolphin

Postby artu01 » Mon May 08, 2017 2:20 am

Me equivoque la busqueda es por el primer nombre

Sorry
fwh 17.12, harbour 3.2.0, pelles C, bcc7, Ms-Sql
artu01
 
Posts: 399
Joined: Fri May 11, 2007 8:20 pm
Location: Lima

Re: busqueda incremental con tdolphin

Postby artu01 » Mon May 08, 2017 5:18 pm

Probe con ADO y si me trabaja la busqueda incremental pero con Tdolphin no funciona
que le falta a mi codigo?
fwh 17.12, harbour 3.2.0, pelles C, bcc7, Ms-Sql
artu01
 
Posts: 399
Joined: Fri May 11, 2007 8:20 pm
Location: Lima


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 16 guests