SearchUI PreTypedKeys

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

SearchUI PreTypedKeys

Postby pricerc » Thu Aug 13, 2020 3:50 pm

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.
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 518
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 21

Re: SearchUI PreTypedKeys

Postby Mike.Sheen » Thu Aug 13, 2020 5:34 pm

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.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: SearchUI PreTypedKeys

Postby pricerc » Thu Aug 13, 2020 6:44 pm

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.
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 518
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 21


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 2 guests