Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

simple parameter is changing (post change), but not passing to data source changed

$
0
0
Greetings.

Main Issue: parameter assigned in select component is changed via a post change function. i can see it changing because I am displaying it on the screen via a text component, however, in firebug the parameter is still showing as the non-changed value.

Environment:
  • Select Component - dropdown list that displays (4) options, including the word "ALL"
  • When 'ALL' is selected, the parameter is changed with:

Code:

function f(){
    if (myval == 'ALL'){
        myval = '%';
    }
    return myval;
}

  • this value is displayed via a text component and when ALL is selected it shows up as '%' on the screen
  • the chart using this value, however, shows 'no data found' and in firebug I can see the parameter is still being sent as 'ALL'


Other observations:
  • I have a 2nd selector that choose, in this case, a customer name
  • If the 1st select is set to ALL (and 'no data is returned') and I change the customer name, the parameter '%' passes correctly
  • If I then change the 1st select to another option, the new option is passed
  • When I change it back to ALL, no data returned (on screen still shows the changed % value, but firebug shows ALL is being passed


What am I missing?

Many many thanks.

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>