Autocomplete and custom list

703 views
Skip to first unread message

stor...@gmail.com

unread,
Nov 2, 2018, 5:31:35 AM11/2/18
to Fujitsu RunMyProcess Developer Community
Hi there.

Is it possible to use a custom list with the autocomplete functionality for text fields?

It feels unnecessary to create a database, and it is difficult to get the query to work properly.

Regards
Svensson, Peter

ah...@qualitydistribution.com

unread,
Nov 16, 2018, 4:58:56 PM11/16/18
to Fujitsu RunMyProcess Developer Community, stor...@gmail.com

Hi Peter. I use Jquery to do this:

var array1 = [{"label":"label1","value":"value1"},{{"label":"label2","value":"value2"}}];

$( "#id_text_widget" ).autocomplete({
source: array1,
minLength: 2,
select: function(event, ui){
id_text_widget.setValue(ui.item.value);
},
});

You can create your array and set "autocomplete" to your text widget. Here is the Jquery doc: https://jqueryui.com/autocomplete/

Hope this helps!

stor...@gmail.com

unread,
Nov 19, 2018, 4:38:51 AM11/19/18
to Fujitsu RunMyProcess Developer Community, stor...@gmail.com, ah...@qualitydistribution.com
Hi there!

Yes, thank you, this does work :)

I was hoping that there'd be a built in system in RMP for this. But this fills my needs.

Thank you :)

Regards
Svensson, Peter

Reply all
Reply to author
Forward
0 new messages