Problem in dropdown list display

Reply

Join Date: Oct 2008
Posts: 1
Reputation: susan_151615 is an unknown quantity at this point 
Solved Threads: 0
susan_151615 susan_151615 is offline Offline
Newbie Poster

Problem in dropdown list display

 
0
  #1
Dec 22nd, 2008
Hi am new to cold fusion.
AM deigning a page where i need to list company names in dropdown1 and when i select any company i have to list the vendors belonging to the particularcompany in dropdown2.
When i select a partcular vendori n dropdown2 ,the address of the vendors must be displayed in the given 2 textboxes

I know how to accomplish this in java script but i wnt everyhing to be done in cold fusion.Can anyone help me in doing this by giving a sample code and am using a stored procedure from server sde instead of writing the select queries
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 2
Reputation: elixir is an unknown quantity at this point 
Solved Threads: 0
elixir elixir is offline Offline
Newbie Poster

Re: Problem in dropdown list display

 
0
  #2
Dec 23rd, 2008
A CFC with 3 methods that can give you the companies,vendors,address
  1. <cfform name="detailsForm">
  2. <cfselect name="company" bind="cfc:myCFC.getCompanies()" bindonload="true">
  3. <option name="0">--Select Company--</option>
  4. </cfselect>
  5. <cfselect name="vendor" bind="cfc:myCFC.getvendor({company})">
  6. <option name="0">--Select Vendor--</option>
  7. </cfselect>
  8. <cfinput name="address" type="text" label="Address:" bind="cfc:myCFC.getvendorAddress({vendor})">
  9. </cfform>

If you want to do with a CFM then use it like
  1. bind="url:logic_page.cfm?getme="companies&of=";
  2. ....
  3. bind="url:logic_page.cfm?getme="vendor&of={company}"
  4. ...

want more detail... ask..

All the best
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 3
Reputation: ws1267 is an unknown quantity at this point 
Solved Threads: 0
ws1267 ws1267 is offline Offline
Newbie Poster

Re: Problem in dropdown list display

 
0
  #3
Sep 14th, 2009
I've got a problem displaying cfselect dropdowns. I have several dropdowns, when choose one base on the selection before it, it works perfect. like country-state-city-zip.
But my problems, I need to let user able to choose from any dropdown and redraw others.
ie. Gender- school- sportType - gpa are dropdown selections. These dropdowns are populated from the same table by selecting distinct record. Just wondering if there is a way to populate the dropdowns matter user start from any dropdown first. Can I achieve it using cfselect?

Any help would be greatly appreciated.
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 3
Reputation: ws1267 is an unknown quantity at this point 
Solved Threads: 0
ws1267 ws1267 is offline Offline
Newbie Poster

Re: Problem in dropdown list display

 
0
  #4
Sep 14th, 2009
If I could turn on and off coldfusion tag "bindonload" then it would be easier.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC