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.
Option for Xbrowse Softseek to verify input field ?
- Marc Venken
- Posts: 727
- Joined: Tue Jun 14, 2016 7:51 am
Option for Xbrowse Softseek to verify input field ?
Marc Venken
Using: FWH 20.08 with Harbour
Using: FWH 20.08 with Harbour
Re: Option for Xbrowse Softseek to verify input field ?
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
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
- Marc Venken
- Posts: 727
- Joined: Tue Jun 14, 2016 7:51 am
Re: Option for Xbrowse Softseek to verify input field ?
Tim, I use the idea from you. Less code, just adding few lines in Xbrowse power. I even added Xbrowse EditSource:
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.
Code: Select all
@ 690,500 BTNBMP PROMPT "<- Blanco" ;
SIZE 100,25 PIXEL OF oDlg1;
ACTION ( oBrw:EditSource(.T., "klant_nr,Naam_1,Straat,Postcode,Gemeente" ) )
So that klant_nr has a value already predifined...and then start the dialog.
Marc Venken
Using: FWH 20.08 with Harbour
Using: FWH 20.08 with Harbour
Re: Option for Xbrowse Softseek to verify input field ?
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
Sent from my iPhone using Tapatalk
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019