BookmarkSubscribeRSS Feed
MaheshYadav
Calcite | Level 5

Hi

 

I am using select2 component to dynamically fetch the data from a SAS dataset in a drop down which enables user to select multiple values. It works fine when i code it in normal HTML. However the same piece of code is not working when used inside the stored process. All other baisc components of html are working fine and are being surfaced properly when the stored process is executed on to the stored process web application.

 

 

<link href="C:\Users\Desktop\dist\css\select2.min.css" rel="stylesheet" />
<script src="C:\Users\Desktop\dist\js\select2.min.js"></script>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>

<script src="C:\Users\Desktop\dist\js\select2.js"></script>
<script>
alert("i m here");
$(document).ready(function() { $("#e1").select2(); });
</script>

<script type="text/javascript">
$(".js-example-basic-multiple").select2();
</script>

 

Regards,

Mahesh

 

 

 

1 REPLY 1
VasilijNevlev
Quartz | Level 8
Hello Mahesh,

My guess would be that your stored process can't access JS files stored on your Desktop.
Also, you are referencing the same library twice. select2.js and select2.min.js are the same in terms of functionality. The second version is a minimified version where unnecessary whitespace is removed and references are substituted.

Please open the developer console (F12 in Chrome) and see if there are any errors reported. They should be self explanatory. If they are not, post them here.

Regards,
Vasilij
=======================================
For more information about {An}alytium, visit https://www.analytium.co.uk

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1276 views
  • 1 like
  • 2 in conversation