Numeric Range from javascript

Hi all, I’m trying to instanciate a Numeric range from javascript. There are couple of examples for range dates but not numeric.
I’m using the toolbox plugin and my “Run Javascript” contains the following:


Where getdefaultdayrange is a javascript to bubble element:

The call seems to work but returned range is always [0,0] instead of [540,1080]…

Any idea?

Find out it was not related to the type but to a bug in Javascript To Bubble… Explanation can be found there: