Page 1 of 1

Option for Xbrowse Softseek to verify input field ?

Posted: Tue Apr 30, 2019 10:38 am
by Marc Venken
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.

Re: Option for Xbrowse Softseek to verify input field ?

Posted: Tue Apr 30, 2019 6:51 pm
by TimStone
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.

Re: Option for Xbrowse Softseek to verify input field ?

Posted: Tue Apr 30, 2019 10:31 pm
by Marc Venken
Tim, I use the idea from you. Less code, just adding few lines in Xbrowse power. I even added Xbrowse EditSource:

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" ) )

 
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.

Re: Option for Xbrowse Softseek to verify input field ?

Posted: Wed May 01, 2019 1:35 am
by TimStone
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