FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



Feb 9, 2016, 4:16 AM
24 Posts

Type Ahead-Search

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 9.0
  • Role: Developer
  • Tags:
  • Replies: 5

Hi

 

I got an requirement for Type ahead. Generally we enter some words and we got the strings. Like if we enter AB, we will get abcd, Abcdef etc.

Now my requirement if I have entered some word in between , like Asia, so it should display Asia, Agro Amaerican Asia, abcdegghijk Asia

 

Is it possible

Feb 12, 2016, 9:00 AM
589 Posts
hmmm

Well anything's possible.  It's all 1's and 0's in the end.  :)

 

Probably a couple ways to do it depending on how many records there are.  This is something select2 probably will do very well so you might want to start that.  I don't know if that well myself but it's a popular add on.

 

For pure Xpages..  In the typeahead you can bind that to a function right?  I'm pretty sure at least.  So you can pass in the searchTerm and then in your code to retrieve the documents - rather then doing a getdocumentByKey you might be able to retrieve documents based on a FullText search where a specific field CONTAINS your search term.  I'm sure there's a way to do something like that.  You might want to google "XPages and Fancy TypeAhead" something like that to find some blog posts and I think there were 2 NotesIn9 shows on typeahead..  not necessarily what you want but might be a good start.

 

good luck 

Feb 16, 2016, 2:40 AM
24 Posts
Fancy Type Ahead

Hi David

 

I tried to search as suggested by you, but maximum they are for version 9, we have not upgraded to ver 9. If you have some examples of Fancy type ahead , please share it with me. I am very new to Xpage, just learning and implementing

 

Regards

Dali

Feb 16, 2016, 10:44 AM
589 Posts
umm

I'm not aware of anything 9.0 specific for the typical "XPages Fancy Typeahead" techniques.

The original article by the late, great tim Tripcony came our long before 9.0.  That is archived here: 

http://avatar.red-pill.mobi/tim/blog.nsf/d6plinks/TTRY-7XD5P9

I used that to base my original video on it : 

http://notesin9.com/index.php/2011/02/11/notesin9-24-fancy-type-ahead-in-xpages/

The things that have followed are not 9.0 specific as far as I know.  So I suggest you start there.

 

 

Feb 19, 2016, 5:30 AM
24 Posts
Not resolved

Hi David

 

I tried , I have also gone through with the videos, but can not implement it. It will be a great help if you can guide me.

I am having a edit box, where my requirement is if I am having Total Revenue in the view and I will write Revenue in the edit box it should display total revenue. I am new in Xpages, so it's difficult  to understand the function right now

Thanks in advance

Feb 19, 2016, 5:30 AM
24 Posts
Not resolved

Hi David

 

I tried , I have also gone through with the videos, but can not implement it. It will be a great help if you can guide me.

I am having a edit box, where my requirement is if I am having Total Revenue in the view and I will write Revenue in the edit box it should display total revenue. I am new in Xpages, so it's difficult  to understand the function right now

Thanks in advance


FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.