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

asked 09.11.2013 at 21:53

ahatius's gravatar image

ahatius
(suspended)
accept rate: 0%


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.

  • Location of the demo project: [Designer]/applications/samples/HtmlDialogDemos
  • ID/Location of the HTML User Dialog: ch.ivyteam.htmldialog.demo.input.FormDemo

Basically the method in the Logic get the search-input as String and returns a list of Strings for the proposed selection. Short: List<String>:mySearchMethod(String myUserInput). The method is called with "<p:autoComplete completeMethod="#{logic.mySearchMethod}">"

link

answered 10.11.2013 at 00:40

Flavio%20Sadeghi's gravatar image

Flavio Sadeghi ♦♦
(suspended)
accept rate: 75%

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.

(10.11.2013 at 14:05) ahatius ahatius's gravatar image

@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.

(11.11.2013 at 12:17) Peter Stöckli ♦ Peter%20St%C3%B6ckli's gravatar image

@peter-stöckli Thanks for the clarification, works as described :)

(11.11.2013 at 12:57) ahatius ahatius's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×51

Asked: 09.11.2013 at 21:53

Seen: 3,226 times

Last updated: 11.11.2013 at 12:57