Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Case insensitive search but spoils data display

Questions related to using nuBuilder Forte.
Post Reply
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Case insensitive search but spoils data display

Unread post by apmuthu »

In the Pizza Tutorial, the standard search of customer is case insensitive, but the data displayed in the highlighted words too get their case changed to that of the search string. The Group column to the right of the images is absent here but that too is affected by these search case changes.

Upper Proper case search:
search_big.png
Lower Case search:
search_small.png
You do not have the required permissions to view the files attached to this post.
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: Case insensitive search but spoils data display

Unread post by miasoft »

I also encountered this, but I thought that it was something personally wrong with me :)
26.01_2.png
26.01_3.png
You do not have the required permissions to view the files attached to this post.
Wbr, miasoft.
kev1n
nuBuilder Team
Posts: 4288
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 442 times
Contact:

Re: Case insensitive search but spoils data display

Unread post by kev1n »

I replaced the function nuHighlightSearch() with a new one. Use nuform.js from the attachment.
Please test if the search works well with that.
You do not have the required permissions to view the files attached to this post.
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Re: Case insensitive search but spoils data display

Unread post by apmuthu »

Yes it works.
search_small_new.png
Whitespace cleaned version attached.
nuform.js
This has yet to satisfy multiple words in the search string separated by spaces to be searched separately.
You do not have the required permissions to view the files attached to this post.
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Re: Case insensitive search but spoils data display

Unread post by apmuthu »

@kev1n: Now satisfies multi word space separated search to work under nuBuilder v4 only. Under testing though.

Special characters need escaping in the code still to be done.
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4288
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 442 times
Contact:

Re: Case insensitive search but spoils data display

Unread post by kev1n »

The Search/Highlight has been updated and it is on Github.

[Fixed] Case insensitive search fixed not to change data case
[Added] jQuery.fn.nuHighlight ( Based on highlight v5: Highlights arbitrary terms)
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Re: Case insensitive search but spoils data display

Unread post by apmuthu »

Thanks @kev1n.

Updated commits with new search highlighting function:

* v4.5 Commit 312
* v4 Commit 197
multi-word-search.png
Furthermore, the multiple words can be typed in any order - the results are consistent and as expected.
You do not have the required permissions to view the files attached to this post.
Post Reply