Values in related value lists

Questions and answers for designing and implementing forms in Servoy

Values in related value lists

Postby Stef » Mon Jun 23, 2003 1:07 pm

Hi all,

I made a valuelist based on related values.
In the M-+ Combobox M-; the values are shown, but duplicates are shown as well !
(several records have the same value and are shown serveral times in the value list)
How can I avoid this ?

Br
Stef
Attachments
vl.jpg
vl.jpg (6.47 KiB) Viewed 7842 times
Stef
 
Posts: 208
Joined: Wed May 28, 2003 2:19 pm
Location: Kasterlee, Belgium

Postby jcompagner » Mon Jun 23, 2003 2:53 pm

What is the value that you set in the end?
is that also the string you see? Or the id behind it?

Because if it is the ID then which string must be filterd out of the 2 values that are equal?

If it is the string. Why are there 2 string with the same value then in the first place?

Maybe we can filter dups out when the returned value is the same as displayed value. But i think this must be somekind of option.
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby Guest » Tue Jun 24, 2003 6:41 am

Hi,

When I choose "All values from..." it's OK, only UNIQUE values are shown.

With "Related Values" ALL VALUES are shown.

I think it's a bug.

Best Reagrds,
Stef
Guest
 

Postby jcompagner » Tue Jun 24, 2003 8:28 pm

Not a bug but not implemented (it is not that easy)

With all from table we can do a select distinct() when the return and display value is the same.

this is a bit harder to do when you select related.

We have it on our list to look at.
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby Stef » Tue Jun 24, 2003 11:08 pm

Great!

I'm looking forward. I't really important for my solution.

Good luck,

Stef
Stef
 
Posts: 208
Joined: Wed May 28, 2003 2:19 pm
Location: Kasterlee, Belgium

Postby jcompagner » Fri Jul 11, 2003 4:14 pm

Is fixed in the next build..
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby Ron » Sun Jul 13, 2003 11:59 pm

Hi All,

Another question about valuelists.
I want the valuelist to be editable by the user, like in FMP.
Also it would be nice to be able to put a separation line between
values: "-"
Ron
 
Posts: 315
Joined: Fri May 23, 2003 12:30 am
Location: Netherlands

Postby maarten » Wed Jul 16, 2003 11:38 am

I want the valuelist to be editable by the user, like in FMP.

We intentionally didn't add the "edit" option in pulldown lists, because we think valuelists shouldn't be accessable to all users.
The easiest way to set up a maintainable valuelist mechanism is:

1) create a table named "valuelists"
2) create a column for each valuelist you need. eg: column "category"
3) in the valuelist editor create a valuelist named "categories".
settings:
- All values from table "valuelists"
- show/return column "category"
etc...
Maarten Berkenbosch
User avatar
maarten
 
Posts: 797
Joined: Wed Apr 23, 2003 10:52 pm
Location: Amersfoort, Netherlands

Postby Stef » Wed Jul 23, 2003 8:52 am

Just tested RC5, it works great!
Thanks a lot!

Best regards,

Stef
Stef
 
Posts: 208
Joined: Wed May 28, 2003 2:19 pm
Location: Kasterlee, Belgium


Return to Forms

Who is online

Users browsing this forum: No registered users and 20 guests

cron