Cascading Drop Down Box

A

Ana

I have two dropdown boxes. The first one I want to populate with documents
collection and the second one I want to populate with sub types based on the
first drop down selection.

My drop down boxes are placed in a repeating section and the data sources
are two tables in a database in SQL Server 2005. This tables have one
column/field that allow relationshipby between the two tables, with data
type integer and this field is in one tabl e the primary key.

Can anyone tell me how to do it?

Thank you.
Kind Regards.
 
A

Ana

Hi Greg,
it´s done. I used a queryadapter and then I done a select with the condition
"Where". Here is the example:

vComando = XDocument.DataObjects("MAP_TipoAmbito").QueryAdapter.Command;
vComando = "SELECT [formulario], [Design_TAmbito], [Num_Area] FROM
MAP_TipoAmbito WHERE [Num_Doc] = " +
XDocument.DOM.selectSingleNode("/my:meusCampos/my:Entidade/my:procedimentos/my:Tipo_Doc_Proc").text
+ "and [Num_Area]= " +
XDocument.DOM.selectSingleNode("/my:meusCampos/my:Entidade/my:procedimentos/my:Àrea_Proc").text;

XDocument.DataObjects("MAP_TipoAmbito").QueryAdapter.Command = vComando;
XDocument.DataObjects("MAP_TipoAmbito").Query();

Then I used filters, as you told me, for grouping the data.

Thanks Greg.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top