Adobe Dreamweaver Forums



Last 10 THreads :         Problem fetching policy-file-request (Last Post : greenx - Replies : 0 - Views : 1 )           »          Coldfusion Login (Last Post : ProjectedSurplus - Replies : 0 - Views : 1 )           »          FTP Error Occurred - Cannot make connection (Last Post : ostephy - Replies : 2 - Views : 3 )           »          Opening a flash movie in dreamweaver (Last Post : Nancy O - Replies : 1 - Views : 3 )           »          Re: Unable to authenticate installer (Last Post : D Sparks - Replies : 1 - Views : 2 )           »          Microphone in the latest beta (Last Post : 0x656b694d - Replies : 0 - Views : 1 )           »          Please help me (Last Post : HalfNelson - Replies : 0 - Views : 1 )           »          Re: Fireworks screws up colors from photoshop (Last Post : chirp88 - Replies : 5 - Views : 6 )           »          CFdirectory recurse error (Last Post : Adam Cameron - Replies : 1 - Views : 2 )           »          Coldfusion Login (Last Post : ProjectedSurplus - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver Php Development
 
Tags: , , ,

Reply
  #1 (permalink)  
Old 07-18-2008, 06:37 PM
Darius Whitten
 
Posts: n/a
Diggs:
Default Dependent drop-down in a Dynamic List

Is there a way to add a dependent drop-down to a Dynamic List?

I have created a list using a record set, it joins three tables: company, company_to_category_main and company_to_category_sub (two many-to-many join tables).

In my list I have two drop-downs, one for Main Category the other for Sub Category, these are generated from two tables with ids and descriptions.

Everything works fine when filtering the list.

However, I’d like to filter by selecting the Main Category and only seeing those items in Sub Category related to the Main Category. This is for an Administration section that will allow us to manage Companies and their assigned categories.

I tried applying Form Controls > Dependent Drop-down on the Dynamic List but it will only display the Main Category; the Sub Category is blank. I did this manually because neither the Dynamic List Wizard nor the Manage Dynamic List has the ability to implement this functionally.

In a separate document, I have a successful test using the above Dependent Drop-down combination (test was successful for both the manual process, and the Dependent Drop-down Wizard).

I don’t know if it matters but one other drop-down exists in the Dynamic List, it’s a manual list. It filters companies that have been published (0=no, 1=yes).

Thanks for all your help.

Specs: Mac OSX 10.4.11, Power Mac G5 dual, 2 GHz, 3.5 GB RAM, CS3, Apache 2.2.8, PHP 5.2.5 and MySQL 4.1.22-standard
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-19-2008, 12:00 PM
Mohiuddin_Khan_Inamdar@adobeforums.com
 
Posts: n/a
Diggs:
Default Re: Dependent drop-down in a Dynamic List

Hi I believe if they have some parent child relationship then its possible to do this..
i have attempted it once and succeed.
What I understand from your point is that.
u want to filter by category , so the category should be the foreign key.
hence u can do two dynamic lists
one for master / Parent
one for detail/ Child

and then apply dependent drop down.
well ur published unpublished concept can also be included..
but u can use only one foreign key as a control key for relationships..
so u can load them from the select statement.
May be i didnt fully understand you..

then you can post ur code in here.
so if not me some one else may also be able to help you

hope this helps

mohnkhan
<http://www.mohitech.com>
Reply With Quote
  #3 (permalink)  
Old 07-23-2008, 03:44 PM
Darius Whitten
 
Posts: n/a
Diggs:
Default Re: Dependent drop-down in a Dynamic List

Thanks mohnkhan,

As it turns out, I don't need this functionality.

Nevertheless, as a side note, I found that no dependent drop-down would work on my page, which contains a Dynamic List SB. I tried applying the dependent drop-down wizard directly to the page, in a separate form — it did not work. I even tried embedding a file with the Server-Side Include SB (a file with a working dependent drop-down) and still only the first master element will show — no depend items in the Sub Category list.

Strange, must be something in my setup or errant code on the page containing the Dynamic List SB (I’m using a recordset to generate my list, maybe it’s my query causing the problem). I'll have to leave this to others to ponder/test, I must move on.

Thank you for all your help.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 10:37 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk