Hi there I've created some workflows in Ivy 4.x, using the Web Page component in the designer. Most of the functionality was coded with jQuery. Now I'd like to switch to Ivy 5. On my old workflow I used jQuery-UI autocomplete to get a list of organization units from our LDAP server. According to the PrimeFaces documentation there is a autocomplete tag. While there are examples on how to use the functions with a regular Java-environement, I couldn't figure out how to use it in Xpert.Ivy. What I've got is an user-dialog, consisting of one start method and another method, which should retrieve the results from the LDAP server, based on the query-text in the input field. I'd be happy if someone could explain to me, how I'd have to setup the autocomplete tag and what format my method has to return, in order for the autocomplete to work. Thank you :) Ahatius |
An example project is delivered within Xpert.ivy Designer which points out different aspects of a classic formular. On this formular the country selection is implemented with a AutoComplete field. Import the project into your workspace and inspect the demo(s) for an easy reference.
Basically the method in the Logic get the search-input as String and returns a list of Strings for the proposed selection. Short: Thanks for the hint, that's useful to begin with. What's actually strange: Even the provided FormDemo Autocomplete doesn't seem to work properly. When typing "s", all countries containing a s are showed, but as soon as I extend it to swit (for Switzerland) the suggestions disappear. I tried creating a completely new project and imported the demo into it, but the problem still exists. @ahatius: It is a bit strange, but it seems to work correctly ;) The sample has an autocomplete form that is case sensitive. So if you type 's' it shows all countries which contain an 's'. And if you type 'Swit' (with capital S) it should show Switzerland in the list. Maybe we better change this to avoid further confusion. |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 09.11.2013 at 21:53
Seen: 3,258 times
Last updated: 11.11.2013 at 12:57