$("#1f26c088453c4877a82e02b276e6fdf1").val("Select").change();
Aug 25, 2016
Selected value in Spotfire multi select property control using JQuery
$("#1f26c088453c4877a82e02b276e6fdf1").val("Select").change();
Aug 8, 2016
JQuery to validate Spotfire Multiselect control and limit MultiSelect with JQuery alert
$("#1f26c088453c4877a82e02b276e6fdf1").change(function()
{
var type1= $("#e8b0e6f9534f4e4c9eb263d3696b367c").text();
var type2= $("#1f26c088453c4877a82e02b276e6fdf1 option:selected").text();
var options = $('#1f26c088453c4877a82e02b276e6fdf1 > option:selected');
if(options.length > 3){
alert('We currently provide a comparison for three types. You have selected more than three; therefore you will need to update your selections in order to move forward.');
return false;
}
if(type2.indexOf(type1)>-1){
alert('One of your selections is the same type as your main selection. Please select a different type to compare.');
$('#1f26c088453c4877a82e02b276e6fdf1').val("0");
return false;
}
});
{
var type1= $("#e8b0e6f9534f4e4c9eb263d3696b367c").text();
var type2= $("#1f26c088453c4877a82e02b276e6fdf1 option:selected").text();
var options = $('#1f26c088453c4877a82e02b276e6fdf1 > option:selected');
if(options.length > 3){
alert('We currently provide a comparison for three types. You have selected more than three; therefore you will need to update your selections in order to move forward.');
return false;
}
if(type2.indexOf(type1)>-1){
alert('One of your selections is the same type as your main selection. Please select a different type to compare.');
$('#1f26c088453c4877a82e02b276e6fdf1').val("0");
return false;
}
});
Show/hide spotfire controls using JQuery
$("#c8b6b12144864ec5889005c6260a4b08").show();
$("#c8b6b12144864ec5889005c6260a4b08").hide();
$("#7ca7ef3c797e494ebddb881bf6008641").click(function()
{
$("#7ca7ef3c797e494ebddb881bf6008641").hide();
});
Aug 5, 2016
Wrap the text in spotfire cross table chart
RXReplace([txt_column],"(.{1,65})( +|$\n?)|(.{1,65})","$1\r\n","g")
Aug 4, 2016
Compare label value with drop down list selected value using JQuery script in Spotfire
$("#ce490455e9f2484eb8554b5d2c8b3e96").change(function()
{
var date1= $("#9593584a2feb42caa8c321d16286a8fa").text();
var date2= $("#ce490455e9f2484eb8554b5d2c8b3e96 option:selected").text();
//var x =$("select[name='#ce490455e9f2484eb8554b5d2c8b3e96'] option:selected").value;
if(date1==date2){
alert('Same date has been selected to compare');
return false;
}
});
{
var date1= $("#9593584a2feb42caa8c321d16286a8fa").text();
var date2= $("#ce490455e9f2484eb8554b5d2c8b3e96 option:selected").text();
//var x =$("select[name='#ce490455e9f2484eb8554b5d2c8b3e96'] option:selected").value;
if(date1==date2){
alert('Same date has been selected to compare');
return false;
}
});
Subscribe to:
Posts (Atom)