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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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