Free Slider-Bean released

We are pleased to announce a new addition to our collection of free enhancements for Servoy: the Slider-Bean. The Slider-Bean is a “Servoy ready” JSlider (as delivered by Servoy). It allows you to

  • assign a display dataprovider that sets the value of the slider according to the value of the given dataprovider automatically (without the need of an onRecordSelection method)
  • assign a return dataprovider that allows the bean to set the value in the underlaying record if the user moves the slider to a different value
  • assign a method that is called whenever the user changes the value of the slider

So you can easily “live hook up” the bean to a Servoy form. Here is a screenshot of the bean:

The bean is free but it requires a registration key. You can obtain a key by clicking the “GET IT” button in the shop on our website.

Hi Patrick,
I’m trying to use your slider. Everything is OK until I try to save the new value. Unfortunately, I don’t see an onChange event on the slider, so the only thing I could do was to catch the on-hide event on the parent form.

I’m using the slider in a Solution Model and I have many possible sliders on the same form, along side with other elements.

Catching the on-hide event and then parsing the elements, looking for all sliders and saving the new values is not so nice as compared with an onChange event or a dataprovider connected to the slider.

Is there any way I could implement this nicer or easier?

Thanks!
Gabriel

Hi Gabriel,

that bean has long been deprecated. I suggest you use the one from ServoyForge: https://www.servoyforge.net/projects/sliderbean

Hi Patrick,
I’m trying to use the new slider but I can’t access its runtime functions/attributes when adding it dynamically with solution model.

For example if I do:

newElement = form1.newBean("slider_bean","net.stuff.servoy.beans.slider.ServoySlider",200,(i-1)*(rowHight+5)+startY,375,70);

...

newElement.paintLabels = true;

I get an error that the bean does not have such a public function.

Thanks!