position of the widget slider

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
Jose Manuel
Profound User
Posts: 39
Joined: Mon Aug 21, 2017 11:48 am
First Name: Jose
Last Name: hernandez Guerra
Company Name: CM de gestion y servicios S.L.
Phone: 638489712
Address 1: CL Jose Luis de Cassos 50
City: Sevilla
State / Province: Outside Canada/USA
Zip / Postal Code: 41005
Country: Spain
Contact:

position of the widget slider

Post by Jose Manuel »

Hello everyone, does anyone know how to initialize the widget slider to a value ??
that is to say when loading the page the slider is positioned at a set value within the minimum value and the maximum value.
Thank you
TaskForce_Kerim
New User
Posts: 16
Joined: Mon Jul 02, 2018 7:56 am
First Name: Kerim
Last Name: Güney
Company Name: Task Force IT-Consulting GmbH
City: Dortmund
Zip / Postal Code: 44369
Country: Germany
Contact:

Re: position of the widget slider

Post by TaskForce_Kerim »

Hello Jose,

when you initialize your screen, you can set the value to anything you need. See here:

Image

In my example I hard-coded it to 5 but ideally you bind your "value" property to an RPG variable and set the intial value from there.
Jose Manuel
Profound User
Posts: 39
Joined: Mon Aug 21, 2017 11:48 am
First Name: Jose
Last Name: hernandez Guerra
Company Name: CM de gestion y servicios S.L.
Phone: 638489712
Address 1: CL Jose Luis de Cassos 50
City: Sevilla
State / Province: Outside Canada/USA
Zip / Postal Code: 41005
Country: Spain
Contact:

Re: position of the widget slider

Post by Jose Manuel »

First of all thanks as always giving solutions.
in this case we already had the value property but it did not work.
we have investigated and believe that the cause in our case is the decimal notation of the value.
it seems that it does not work with the notation (decimal point (,)) but with the decimal notation (period (.)).
We only had to edit the initial value.

Example rpg free:
value = %editw(valueini:' . ');
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests