Using Jquery autocomplete in reactive web app

getting the following exception

I have added a input text and on that i have added a script to  auto complete it based on some values in in the function


I have added jquery dependency also.


AutoComplete.MainFlow.Autocompletescreen.mvc.js?b9FaL0zqNYLC4qIm9Fk53Q:368 Uncaught TypeError: $(...).autocomplete is not a function
at HTMLDocument.<anonymous> (AutoComplete.MainFlow.Autocompletescreen.mvc.js?b9FaL0zqNYLC4qIm9Fk53Q:368)
at i (OutSystemsUI.jQuery.js?6UFeg3u2ti3W5L7eItUZlA:2)
at Object.fireWith [as resolveWith] (OutSystemsUI.jQuery.js?6UFeg3u2ti3W5L7eItUZlA:2)
    at ready (OutSystemsUI.jQuery.js?6UFeg3u2ti3W5L7eItUZlA:2)



AutoComplete.oml

Solution

Hi,

Just need to add an additional jquery library. Please check the attached OML.


AutoComplete1.oml

Thanks Amit , 


I have checked it and found the jQuery  that i have added from module -> Add dependency doesn't support complete. I have added the following scripts and tried it is working.

  "https://code.jquery.com/jquery-1.12.4.js"
"https://code.jquery.com/ui/1.12.1/jquery-ui.js"

Hi Nikhileswar,

Outsystems doesn't support jQuery by default. If you want to add jQuery, you need to add external jQuery files to make support of it.

Please find the below links to get more details.

https://www.outsystems.com/forums/discussion/60780/jquery-with-reactive-web-application/

https://success.outsystems.com/Documentation/How-to_Guides/Integrations/How_to_include_a_jQuery_plugin


Dileep



Solution

Hi,

Just need to add an additional jquery library. Please check the attached OML.


AutoComplete1.oml

Thanks Amit , 


I have checked it and found the jQuery  that i have added from module -> Add dependency doesn't support complete. I have added the following scripts and tried it is working.

  "https://code.jquery.com/jquery-1.12.4.js"
"https://code.jquery.com/ui/1.12.1/jquery-ui.js"
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.