× If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html

Dependent/dynamic groupselect

More
3 years 1 week ago #6070 by slaine
Dependent/dynamic groupselect was created by slaine
Hello, is there a way to create a dependent groupselect?
For example, if I have a table of products (food and tools) from which I want to select using two groupselect - "category" (food, tools) and "subcategory" (fruit, vegetables, meat, hardware, software).
In the first groupselect (category), for example, I choose "food" and based on that, in the second groupselect (subcategory) I am offered only "fruits", "vegetables", "meat" (not hardware and software) to choose from?
Thank in advance for reply.

Please Log in to join the conversation.

More
3 years 1 week ago - 3 years 1 week ago #6071 by Dirk
Replied by Dirk on topic Dependent/dynamic groupselect
It is possible. Groupselect automatically reduces the result of other to the Gropupselects.
Look here!

tamiyabase.com/index.php?option=com_jood...-more-search-options

or here

www.speck-triplex.de/hochdruck-plungerpumpen/pumpen-finder.html
Last edit: 3 years 1 week ago by Dirk.

Please Log in to join the conversation.

More
3 years 1 week ago #6072 by slaine
Replied by slaine on topic Dependent/dynamic groupselect
Nice is exactly what I mean. Can you please direct me to how you created "more search options" on tamiyabase.com.
I'm just a beginner, if you could send me the code, I would be very happy.

Please Log in to join the conversation.

More
3 years 1 week ago #6073 by Dirk

Please Log in to join the conversation.

More
3 years 1 week ago #6074 by slaine
Replied by slaine on topic Dependent/dynamic groupselect
I was looking. I created groupselect according to the pattern, but the selection options do not automatically refresh me :(

Please Log in to join the conversation.

More
3 years 1 week ago #6075 by Dirk
Replied by Dirk on topic Dependent/dynamic groupselect
There is a third Parameter (Boolean / use search)

{joodb groupselect|food|5|1}
or
{joodb groupselect|articles|5|true}

FIELDNAME - Name of a field in your database
rows (optional, integer) - Number of rows for a multiselect form element.
use search (optional, boolean, default no) - Apply the current search to the result.

Please Log in to join the conversation.

Moderators: Dirkjoest