Autocomplete with jQuery for the field in an array widget

849 views
Skip to first unread message

ii2team...@gmail.com

unread,
Oct 31, 2014, 11:40:50 AM10/31/14
to suppor...@runmyprocess.com
I have asked this question: https://groups.google.com/a/runmyprocess.com/forum/?hl=en&fromgroups=#!starred/supportforum/jc8KEBZrO64

And I got a response to autocomplete array widget using the packaged autocomplete. But in that method, it is only possible to set the minLength for the search to start down to 2. And as per the requirement the search should start at the first character. And need some functions to be written based on onChanged() event. For these requirements it is required to implement the jQuery method explained here : http://docs.runmyprocess.com/Developer_Guide/Web_Interface/Design/Autocomplete_Widget for the array widget.
Is it possible to implement this jQuery method for the array widget? If its possible how do we do it? because I have already tried it with the id_arrName.id_colName[P_index]; in the script used, and it doesn't work.

Thanks in advance

Sushma Padidela

unread,
Oct 31, 2014, 10:27:18 PM10/31/14
to suppor...@runmyprocess.com, ii2team...@gmail.com
Hi,

Yes, you can use the jquery autocomplete in an array. For this you need to have another hidden and active column in an array whose widget type is Javascript. Click the configuration icon and write the javascript code there.

A sample code is attached please make necessary changes to work for you. In this code the the array column with autocomplete is "Sub Category" and another column is "Category". This sub category results are populated from collection depending on the value selected in the "Category". The code is already in the runmyprocess documentation and you can check the attached code for how i am using it in the array.

Thanks,
Sushma


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/b5c264fc-c1c9-45b3-9baf-0dcba782247f%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

autocomplete_in_array.txt

ii2team...@gmail.com

unread,
Nov 1, 2014, 2:18:45 AM11/1/14
to suppor...@runmyprocess.com, ii2team...@gmail.com

Hai Sushma,

I have tried the example in the runmyprocess doc.(without knowing most of the syntax) by replacing the id field with "#id_device.id_esn[[P_index]]". And this script returns no error(#NA). I have attached my code with this, please refer the file.
And By replacing "#id_device.id_esn[[P_index]]" with "#id_device.id_esn["[[P_index]]"]" (from your id_a_hour.id_sub_category["[[_row_]]"]) I got error(#NA) form the script. I have also attached the image with error.
Your code seems to be little bit difficult(jQuery Syntax problem). Can you please refer to my code and suggest a way? Thanks for your reply

whileUsingDoubleQuotes.png
PindexWithoutDoubleQuotes.txt

ii2team...@gmail.com

unread,
Nov 1, 2014, 4:00:37 AM11/1/14
to suppor...@runmyprocess.com, ii2team...@gmail.com

Is there anyone with a solution??

Reply all
Reply to author
Forward
0 new messages