×
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
- slaine
- Topic Author
- Offline
Less
More
- Posts: 4
- Thank you received: 0
4 years 18 hours 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.
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.
- Dirk
-
- Offline
Less
More
- Posts: 1222
- Thank you received: 226
4 years 18 hours ago - 4 years 18 hours 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
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: 4 years 18 hours ago by Dirk.
Please Log in to join the conversation.
- slaine
- Topic Author
- Offline
Less
More
- Posts: 4
- Thank you received: 0
4 years 18 hours 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.
I'm just a beginner, if you could send me the code, I would be very happy.
Please Log in to join the conversation.
- Dirk
-
- Offline
Less
More
- Posts: 1222
- Thank you received: 226
4 years 18 hours ago #6073
by Dirk
Replied by Dirk on topic Dependent/dynamic groupselect
Please Log in to join the conversation.
- slaine
- Topic Author
- Offline
Less
More
- Posts: 4
- Thank you received: 0
4 years 17 hours 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.
- Dirk
-
- Offline
Less
More
- Posts: 1222
- Thank you received: 226
4 years 17 hours 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.
{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: Dirk, joest