Below are the steps for create type ahead in xpages
- Create a new notes form(not xpage) and name it "EmpForm"
- Create below fields in "EmpForm".
- EmpId(text, Editable)
- EmpName(text, Editable)
- Save "EmpForm" and preview it Notes Client.
- Create these documents using "EmpForm"
- EmpId=1 & EmpName=Alice
- EmpId=2 & EmpName=Alisha
- EmpId=3 & EmpName=Barney
- EmpId=4 & EmpName=Alfred
- EmpId=5 & EmpName=Baker
- Create a new view "EmpView"
- Selection formula = SELECT form="EmpForm"
- First column = EmpName
- Preview the view in Notes Client, you should be able to see all created document here.
- Create a xpage "EmpXPage".
- Drop an Edit Box on it, name it "EmpNameTxt".
- Go to the type ahead section of "EmpNameTxt".
- Change below settings
- Check Enable Type Ahead.
- Mode = Partial
- Write below formula in suggestions box using computed value under blue diamond next to the box.
- @DbColumn(@DbName(), "EmpView", 1)
- Uncheck Case-sesitive
- Preview "EmpXPage" in internet explorar.
- Type a in the text box, you will see suggestions.
Thanks for reading !!!
No comments:
Post a Comment