[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4586: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4588: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4589: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4590: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
Xataface Forums • View topic - Select menu contents dependent upon another select menu sele

Select menu contents dependent upon another select menu sele

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

Postby freakingid » Thu Sep 27, 2007 7:33 am

I cannot think of a better way to word that title! Sorry...

I have one table that we can call "Categories."
I have another table that we can call "Subcategories."
Each "subcategory" item has one parent "category" item.
This means "Category 1" might own "Subcat A," "Subcat B," and "Subcat C", and "Category 2" might own "Subcat D," "Subcat E," and "Subcat F."

I would like for people entering data to:
1. Select a "Category" from a select list.
- no problem, dataface makes this easy.

2. Select a "Subcategory" from a select list, but have the contents of that select list change based on the "Category" they choose from the first select list.

Is there a way to do this in Dataface?
Ajaxy stuff?
Or a multi-page insert method? (i.e. the user would select the "Category" on the first page, then the second page would have knowledge of the selected category from a POST variable, perhaps.)

Thanks, Dataface is wonderful.
Paul
freakingid
 
Posts: 1
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Thu Sep 27, 2007 9:37 am

--
Steve Hannah
(on twitter)
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Select menu contents dependent upon another select menu

Postby baureggerM » Fri Feb 15, 2013 2:20 am

Hi,
sorry for my English

i have read much of this posts but every time i try something, i always fail.

i will do the same like the guy above:
my valuelist.ini:

[bautl]
__sql__ = "SELECT Bauteile.ID, Bezeichnung FROM Bauteile"

[auspr1]
__sql__ = "SELECT Auspraegung1.ID, CONCAT(Bezeichnung, ' (', Identifikation, ')') FROM Auspraegung1"

my fields.ini:

[Bauteile_ID]
widget:type = select
vocabulary = bautl
group = wichtig
oder = 3

[Auspraegung1_ID]
widget:type = select
vocabulary = auspr1
group=Auswahl
oder = 6

delegate class konfiguration.php:

at the moment there are nothing special


________
Bauteile_ID and Auspraegung1_ID are Fk in the konfiguration table.
also Bauteile_ID is a Fk in the Auspragung1 table.

someone should select Bauteile_ID and then, in Auspragung1_ID only should stay the values with the same ID which are selected above.

thank you for your help
Regards

Max
baureggerM
 
Posts: 9
Joined: Fri Feb 15, 2013 2:10 am

Re: Select menu contents dependent upon another select menu

Postby auphi » Fri Feb 15, 2013 2:20 pm

baureggerM:

This is a really old post. Check out the depselect module: http://xataface.com/dox/modules/depselect/latest/

That should let you do what you are wanting.
auphi
 
Posts: 20
Joined: Sun Oct 21, 2012 7:39 pm

Re: Select menu contents dependent upon another select menu

Postby baureggerM » Sat Feb 16, 2013 4:23 am

Hi,

thank you very much at the moment i cant try this.
is this automaticly installed in the newest version of Xataface ?
at the link i can't download the module

thank you

Max
baureggerM
 
Posts: 9
Joined: Fri Feb 15, 2013 2:10 am

Re: Select menu contents dependent upon another select menu

Postby baureggerM » Mon Feb 18, 2013 12:17 am

Hey,

i copy all files out of the SVN and write the properties in my fields.ini

but in the moment i write "widget:type = depselect"

the whole page is white

Max
baureggerM
 
Posts: 9
Joined: Fri Feb 15, 2013 2:10 am

Re: Select menu contents dependent upon another select menu

Postby shannah » Tue Feb 19, 2013 1:38 pm

Check your php error log to see what the problem is. Likely the depselect module is not installed properly. Make sure you have added the appropriate line to the [_modules] section of your conf.ini and that you have installed the depselect folder inside the modules directory.

-Steve
--
Steve Hannah
(on twitter)
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Select menu contents dependent upon another select menu

Postby baureggerM » Tue Feb 19, 2013 11:38 pm

Hi,
this was the error:

[20.02.2013 07:34:30] JavaScript - http://10.29.3.114/#######/index.php?-table=Konfiguration&-action=history&-cursor=2&-skip=0&-limit=30&-mode=list&-recordid=Konfiguration%3FID%3D4
Event thread: mouseup
Uncaught exception: ReferenceError: Undefined variable: activeButton
Error thrown at unknown location in <anonymous function>(event) in http://10.29.3.114/######/index.php?-table=Konfiguration&-action=history&-cursor=2&-skip=0&-limit=30&-mode=list&-recordid=Konfiguration%3FID%3D4:
/* no source available */ <------------- ????????????


the conf.ini :

[_modules]
modules_depselect=modules/depselect/depselect.php


inside of "xataface/modules/depselect" are all the files i found in the VDD

thanks for all Max



______________________________________________________________________________________________________

we update no to the 2.0.0alpha and now all is OK only on the text fields are no drop-down menus
also at the ordinary Select menus the "Other..." function don't work
this is my last problem this tool is very good :-D, and i need only once help ! :-D
thanks

great job good tool
baureggerM
 
Posts: 9
Joined: Fri Feb 15, 2013 2:10 am

Re: Select menu contents dependent upon another select menu

Postby shannah » Wed Feb 20, 2013 10:39 am

Was that a PHP error log or a Javascript error log?

Try moving the depselect module into your application's modules directory. It should work in either location, but it is worth a shot.

-Steve
--
Steve Hannah
(on twitter)
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Select menu contents dependent upon another select menu

Postby baureggerM » Wed Feb 20, 2013 11:42 pm

baureggerM
 
Posts: 9
Joined: Fri Feb 15, 2013 2:10 am

Re: Select menu contents dependent upon another select menu

Postby baureggerM » Thu Feb 21, 2013 2:50 am

baureggerM
 
Posts: 9
Joined: Fri Feb 15, 2013 2:10 am

Re: Select menu contents dependent upon another select menu

Postby shannah » Thu Feb 21, 2013 10:05 am

Where is that source code snippet taken from? Is this your code or from Xataface file?
--
Steve Hannah
(on twitter)
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Select menu contents dependent upon another select menu

Postby baureggerM » Fri Feb 22, 2013 2:09 am

hey,

this is a javascript output from Dragonfly a Opera Javaskript "debugger" to know what is going wrong.
after press the "Other.." button the ordinary pop up menu -to fill in the new Value- is now at the bottom of the side
after fill in somthing in the Textfilds press save and the the site is pictured doubeld sems like 3D :-P
always have to reload the page then is all ok and the value is saved
i have nothing change this filde should be written from Xataface developers :-D perhapes you

thanks
- Max
baureggerM
 
Posts: 9
Joined: Fri Feb 15, 2013 2:10 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