Note that there are some explanatory texts on larger screens.

plurals
  1. POPopulating a listbox according to user selection
    primarykey
    data
    text
    <ol> <li>I am using C# to do this.</li> <li><p>OK, so this is what my XML file looks like... only there are SO much more AUCCars nodes.</p> <pre><code>&lt;Recordset&gt; &lt;AUCCars&gt; &lt;Web_Series&gt;5 Series&lt;/Web_Series&gt; &lt;Body_Desc&gt;Sedan&lt;/Body_Desc&gt; &lt;Model_Type&gt;550i (E60)&lt;/Model_Type&gt; &lt;Model_Year&gt;2006&lt;/Model_Year&gt; &lt;Ext_Colour&gt;Alpine White III - Non-Metallic&lt;/Ext_Colour&gt; &lt;Int_Colour&gt;Leather Dakota Black - Dakota Leather&lt;/Int_Colour&gt; &lt;Price&gt;R 579000&lt;/Price&gt; &lt;Search_Price&gt;579000&lt;/Search_Price&gt; &lt;Province&gt;Gauteng&lt;/Province&gt; &lt;AucID&gt;106288&lt;/AucID&gt; &lt;DealerID&gt;45&lt;/DealerID&gt; &lt;DealerCode&gt;29968&lt;/DealerCode&gt; &lt;DealerName&gt;Lyndhurst Auto&lt;/DealerName&gt; &lt;Transmission&gt;Automatic&lt;/Transmission&gt; &lt;AirCon&gt;n/a&lt;/AirCon&gt; &lt;Radio&gt;Yes&lt;/Radio&gt; &lt;PSteering&gt;Yes&lt;/PSteering&gt; &lt;ABS&gt;Yes&lt;/ABS&gt; &lt;Airbag&gt;Yes&lt;/Airbag&gt; &lt;Sunroof&gt;Yes&lt;/Sunroof&gt; &lt;Km&gt;11500&lt;/Km&gt; &lt;Motorplan&gt;Yes&lt;/Motorplan&gt; &lt;Warranty&gt;N&lt;/Warranty&gt; &lt;BodyNo&gt;6CR76051&lt;/BodyNo&gt; &lt;ModelOEM&gt;NB52&lt;/ModelOEM&gt; &lt;ColourOEM&gt;300&lt;/ColourOEM&gt; &lt;TrimOEM&gt;LCSW&lt;/TrimOEM&gt; &lt;WheelsOEM&gt;&lt;/WheelsOEM&gt; &lt;Sold&gt;N&lt;/Sold&gt; &lt;Notes&gt; &lt;/Notes&gt; &lt;Moreoptions&gt;Automatic Transmission with Steptronic Interior trim finishers, Fine-wood, Poplar Grain Brown, high-gloss Park Distance Control (PDC),front and rear&lt;/Moreoptions&gt; &lt;Picture&gt;\Vehicle_Pictures\E60\LI\frontview_big_P0300.jpg&lt;/Picture&gt; &lt;PictureRear&gt;\Vehicle_Pictures\E60\LI\rearview_big_P0300.jpg&lt;/PictureRear&gt; &lt;Interior&gt;\Vehicle_Pictures\E60\LI\Interior\big_Fo_LCSW.jpg&lt;/Interior&gt; &lt;/AUCCars&gt; &lt;AUCCars&gt; &lt;Web_Series&gt;5 Series&lt;/Web_Series&gt; &lt;Body_Desc&gt;Sedan&lt;/Body_Desc&gt; &lt;Model_Type&gt;550i (E60)&lt;/Model_Type&gt; &lt;Model_Year&gt;2006&lt;/Model_Year&gt; &lt;Ext_Colour&gt;Black Sapphire - Metallic&lt;/Ext_Colour&gt; &lt;Int_Colour&gt;Amethyst Black Exclusive Leather - Exclusive Leather&lt;/Int_Colour&gt; &lt;Price&gt;R 529990&lt;/Price&gt; &lt;Search_Price&gt;529990&lt;/Search_Price&gt; &lt;Province&gt;KwaZulu Natal&lt;/Province&gt; &lt;AucID&gt;111922&lt;/AucID&gt; &lt;DealerID&gt;17&lt;/DealerID&gt; &lt;DealerCode&gt;2485&lt;/DealerCode&gt; &lt;DealerName&gt;Supertech&lt;/DealerName&gt; &lt;Transmission&gt;Automatic&lt;/Transmission&gt; &lt;AirCon&gt; Yes&lt;/AirCon&gt; &lt;Radio&gt;Yes&lt;/Radio&gt; &lt;PSteering&gt;Yes&lt;/PSteering&gt; &lt;ABS&gt;Yes&lt;/ABS&gt; &lt;Airbag&gt;Yes&lt;/Airbag&gt; &lt;Sunroof&gt;n/a&lt;/Sunroof&gt; &lt;Km&gt;7000&lt;/Km&gt; &lt;Motorplan&gt;n/a&lt;/Motorplan&gt; &lt;Warranty&gt;N&lt;/Warranty&gt; &lt;BodyNo&gt;6CR75567&lt;/BodyNo&gt; &lt;ModelOEM&gt;NB52&lt;/ModelOEM&gt; &lt;ColourOEM&gt;475&lt;/ColourOEM&gt; &lt;TrimOEM&gt;LDRH&lt;/TrimOEM&gt; &lt;WheelsOEM&gt;&lt;/WheelsOEM&gt; &lt;Sold&gt;N&lt;/Sold&gt; &lt;Notes&gt; &lt;/Notes&gt; &lt;Moreoptions&gt;Automatic Transmission with Steptronic Electric Rear Screen Roller Sun Blind with manual Side Blinds Interior trim finishers, Fine-wood, Poplar Grain Brown, high-gloss High Beam Assist Head-up display (not with SA354)&lt;/Moreoptions&gt; &lt;Picture&gt;\Vehicle_Pictures\E60\LI\frontview_big_P0475.jpg&lt;/Picture&gt; &lt;PictureRear&gt;\Vehicle_Pictures\E60\LI\rearview_big_P0475.jpg&lt;/PictureRear&gt; &lt;Interior&gt;\Vehicle_Pictures\E60\LI\Interior\big_Fo_LDRH.jpg&lt;/Interior&gt; &lt;/AUCCars&gt; &lt;Recordset&gt; </code></pre></li> <li><p>I need to fill combo boxes for Series, Model, and Year.</p></li> <li>This i got right. When I compile the program, it loads all the series into the series </li> <li>combo box.</li> <li>When I selected a series, it automatically loads all the models into the models combo </li> <li><p>box. When I selected a model, it automatically loads the years accordingly.</p></li> <li><p>Now I need to display data according to selection.</p></li> <li><p>eg. I selected "5 Series" for the series combo box, "550i (E60)" for the model combo 11. box, and "2006" for the year combo box.</p></li> <li><p>How do I display all the data in that specific node according to my selection 13. in a list box?</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload