Page 1 of 1

SearchUI PreTypedKeys

PostPosted: Thu Aug 13, 2020 3:50 pm
by pricerc
The name "PreTypedKeys" suggests that one may specify more than one key.

If this is more than just optimism on my part, given that PreTypedKeys is a string, what does one concatenate the keys with?

In my case, I'd like to do a 'free text' lookup for inventory items (looking inside description, all the category names, etc), and then given a small enough list (say the search only produces 3 or 4 results), present the user with a 'normal' Inventory search window where the 'PartNo' field has been pre-populated with part numbers from the aforementioned list.

Re: SearchUI PreTypedKeys

PostPosted: Thu Aug 13, 2020 5:34 pm
by Mike.Sheen
The PreTypedKeys property refers to keys the user has keyed in on the keyboard.

for instance, on a sales order form the grid containing the sales order lines has a Part No. column - if the user types in a few keys there and tabs or presses enter - if what they types does not exactly match an existing item Part No, then the search window is loaded and the Part No. filter is pre-filled out with what they keyed in.

You can't put multiple filters in, which is what I think you were hoping to be able to do.

Re: SearchUI PreTypedKeys

PostPosted: Thu Aug 13, 2020 6:44 pm
by pricerc
Mike.Sheen wrote:The PreTypedKeys property refers to keys the user has keyed in on the keyboard.

for instance, on a sales order form the grid containing the sales order lines has a Part No. column - if the user types in a few keys there and tabs or presses enter - if what they types does not exactly match an existing item Part No, then the search window is loaded and the Part No. filter is pre-filled out with what they keyed in.

You can't put multiple filters in, which is what I think you were hoping to be able to do.


Aha.

Plan 'B' then. The use case is in a point-of-sale environment. Like your sample POS, If scanning the barcode doesn't work, then it pops un an inventory search UI.

Since invariably, if they've got there, then they are looking for a description, I'm going to just make Description the first field and make the PreTypedKeys be whatever they already had in their "Barcode" textbox.