Depselect module

A place for users and developers of the Xataface to discuss and receive support.

Depselect module

Postby Deluxe » Tue Feb 26, 2013 7:22 am

Hi, i'm having some troubles with the Depselect module and i'm wondering if it's possible to use it for 2 fields which are in the same table.
I have a form where I want to select a date in function of the people which is selected before, is that possible ?

Thanks for support.
Deluxe
 
Posts: 6
Joined: Tue Feb 26, 2013 1:26 am

Re: Depselect module

Postby shannah » Tue Feb 26, 2013 9:40 am

If the date is free form (i.e. not a select list) then you can't use depselect for this. You would need to use custom javascript on the date field's onchange handler to update the contents of a people list.

_Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Depselect module

Postby Deluxe » Wed Feb 27, 2013 3:00 am

Ok so i'll let the date without depselect.
But i've another prob now, can i use this module for 2 fiels in the same table ?
Because at the moment it doesn't works, here is my code :

[logement]
widget:type=depselect
widget:table=logement

[adresse]
widget:type=depselect
widget:table=logement
widget:filters:logement="$adresse"

For "logement" it selects me the name of the city, that is good. But for "adresse" i want the adress but it gives me the name of the city again.
I don't know how to do :/

Thanks for support.
Deluxe
 
Posts: 6
Joined: Tue Feb 26, 2013 1:26 am

Re: Depselect module

Postby Jean » Wed Feb 27, 2013 7:16 am

have a look here

Cheers
Jean
 
Posts: 259
Joined: Wed Nov 07, 2007 1:30 am
Location: Pau, France

Re: Depselect module

Postby Deluxe » Thu Feb 28, 2013 2:56 am

Yeah i've seen that but i would use the depselect module :/
Deluxe
 
Posts: 6
Joined: Tue Feb 26, 2013 1:26 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved