choices values

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
paparazia
Profound User
Posts: 25
Joined: Mon Sep 23, 2013 7:08 am
First Name: ALIMA
Last Name: SECK
Company Name: OO2
Contact:

choices values

Post by paparazia »

Hi, I have a problem of return value in a dropdown list.
In fact, I have two dropdown lists related I load with RPG features, but the problem I have is that
the second list retains the last value read and I would like it to be empty until that we choose a new value in this second list.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: choices values

Post by Scott Klement »

I'm not sure that I follow you. Are you saying that you set your drop down to blank, but Profound UI is changing it to the last value in the list?

Have you ensured that blank is one of the allowed choices?
paparazia
Profound User
Posts: 25
Joined: Mon Sep 23, 2013 7:08 am
First Name: ALIMA
Last Name: SECK
Company Name: OO2
Contact:

Re: choices values

Post by paparazia »

no no I selected from an initial list of countries and in a second city.
In both lists have IDs that are returned as a return value.

The problem I have is the following:

when I choose for example FRANCE as a country and as a city ABANCOURT, return values ​​are respectively 'FR' and 5.

When I choose Senegal as a country, the second list is always worth 5.
when I want it to be blank until I choose a city to Senegal.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: choices values

Post by Scott Klement »

So when you choose Senegal (in your example), you must have some code that is running to re-load the cities list, correct? when that code runs, can you blank out the variable connected to the 'value' property of the cities? That way, it won't be set to 5 anymore, right?
paparazia
Profound User
Posts: 25
Joined: Mon Sep 23, 2013 7:08 am
First Name: ALIMA
Last Name: SECK
Company Name: OO2
Contact:

Re: choices values

Post by paparazia »

In my example, when I choose Senegal without any city, There are white at the second drop-down list, which is correct.
But the value of this second list (if it appears) always keeps the ID
5 matching ABANCOURT (the last selected city).

What is normal is that whenever I select a new country, the values ​​of the second list should be empty ('choices and the choices values)
User avatar
Alex
Profound Logic Staff Member
Posts: 233
Joined: Fri Jan 04, 2008 12:10 pm
First Name: Alex
Last Name: Roytman
Company Name: Profound Logic Software
Contact:

Re: choices values

Post by Alex »

See if the following webinar will help:
http://www.profoundlogic.com/webinars.r ... =305893618

I believe In the webinar, they demonstrate how to relate 2 dropdowns. They go through an example that is similar to yours.
paparazia
Profound User
Posts: 25
Joined: Mon Sep 23, 2013 7:08 am
First Name: ALIMA
Last Name: SECK
Company Name: OO2
Contact:

Re: choices values

Post by paparazia »

Thank you alex,
I can already link the two drop-down lists but my problem must be a problem with javascript.

In fact, when I choose a city, the name of the city is always kept even if I change the country.

However it is hidden at the list, you see only white.

Is it possible to empty the contents of the second list every time you move to another country?
Attachments
at first
at first
Capture1.PNG (17.13 KiB) Viewed 1277 times
paparazia
Profound User
Posts: 25
Joined: Mon Sep 23, 2013 7:08 am
First Name: ALIMA
Last Name: SECK
Company Name: OO2
Contact:

Re: choices values

Post by paparazia »

when i change Country
when i change Country
Capture.PNG (17.53 KiB) Viewed 1276 times
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests