Option for Xbrowse Softseek to verify input field ?

Option for Xbrowse Softseek to verify input field ?

Postby Marc Venken » Tue Apr 30, 2019 10:38 am

In Xbrowse we can softseek and for every key, the list will only show the result (records that match the input field)

Can we also do that from wittin a input field (or prefered Xbrowse field)

What I want to do :

We are going to input lots of potential customers from a mailing list. It would be needed that when we start to input a new name (or adress is maybe better) that
for every key we proceed, a second Xbrowse would show the result for the matching record. That way we can see from just a few keystrokes that that customer is
already into the database, and we can skip the rest of the data and try the next adress.
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1425
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: Option for Xbrowse Softseek to verify input field ?

Postby TimStone » Tue Apr 30, 2019 6:51 pm

Just a thought, but why not use the browse with it's search enabled. Start typing the data, and if you see no match, program a right click on the mouse to pop up an Edit screen, with a new record appended, where you can type in the data.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2943
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Option for Xbrowse Softseek to verify input field ?

Postby Marc Venken » Tue Apr 30, 2019 10:31 pm

Tim, I use the idea from you. Less code, just adding few lines in Xbrowse power. I even added Xbrowse EditSource:

Code: Select all  Expand view

   @ 690,500 BTNBMP PROMPT "<- Blanco" ;
      SIZE 100,25 PIXEL OF oDlg1;
      ACTION ( oBrw:EditSource(.T., "klant_nr,Naam_1,Straat,Postcode,Gemeente" ) )

 


Any Idea how I can pre define some values in the fields ?

So that klant_nr has a value already predifined...and then start the dialog.
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1425
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: Option for Xbrowse Softseek to verify input field ?

Postby TimStone » Wed May 01, 2019 1:35 am

In your edit function preload default values after the append and before the save. You can change any values in the edit dialog


Sent from my iPhone using Tapatalk
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2943
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 43 guests