jquery - Updating Selected Values of Dynamic Multiselectors in Pentaho-CDE -


short version: how, using javascript or jquery, dynamically reassign selected value of dynamically generated multiselector box default value given conditions met on change (user select) in another?

long version:

i have 3 levels of multiselectors (state, metro area (aka msa), county) dynamically dependent on each other, counties , metro areas intersecting chosen states displayed in respective selectors.

my problem if select msa within, say, maryland , click on texas, table multiselectors filter (a parameterized mdx query) crashes.

going error logs in pentaho's catalina.out, appears msa (metro area) selector parameter becomes undefined when state not contain selected msa chosen.

i make when new state or group of states selected not include selected msa or county, selectors revert default ("all") value. i'm jquery , javascript newby, need detail possible, while still being considerate of time.


additional details, if needed:

the values in msa (metro area) selector change depending on state(s) selected, , county selector dependent on state , metro area. happening on html page (generated pentaho's cde dashboard). datasource each parameterized sql query (carried out pentaho).

when "all" option county , msa selected can safely change state selection: working

when other "all" option county , msa selected cannot change change state selection without dashboard crashing: crashing

data coming sql two-column array, mdx-formatted value , clear-text label, value specify mdx parent 'all' value.

if don't give context, can't give specific answer, hope you'll have enough this:

$('.one-input').change(function() {      if ($(this).val() == 'something') {         $('.other-input').val('default-value');     }  }); 

Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -