Multiselect Custom Display Test
Last modified by Gabriela Anechitoaei on 2022/05/03 09:28
Steps to reproduce
- First do these 4 prerequisite steps:
- Install the Multiselect custom display application using Extension Manager
- Create a Class
- Create and Bind the Class Sheet to your Class
- Create and Add an Object to the Class Template
- Go back to the class page and click on the class editor link to add a property
- Add a new Database List property
- Custom Display field: use this code - {{include document="XWiki.SuggestDisplay" /}}
- Tick the Multiple Select, Use Suggest & Relational Storage options
- Display Type field: use the input option
- Hibernate Query field: use this test code which should suggest any page inside the Sandbox space - select doc.name from XWikiDocument as doc where doc.space = 'Sandbox'
- Save the Class
- Below the Create a new page section type in a Page name and click on Create this page
- Type in some page names inside the input field: for example use TestPage1, TestPage2, WebHome
- Remove some pages from the input field: for example remove TestPage1 & WebHome
- Save the page
Expected results
- Suggestions for pages inside the Sandbox space appear as soon as typed
- Pages can be successfully added and removed for the page with the DBList property