Hi. I'm new to InfoPath and DBXL but am trying to learn. I have a form with 2 dropdownlists,
the second list is dependent on the first. Both ddl's are getting
populated from external data sources
(views in sql server being accessed using QueryDB).
The first ddl has a numeric value field and a text display field. The
second ddl is set up the same and its data source includes a column
matching the value field from the first ddl. I'm using the GetColumnsXMLStrQuery method to return the data, which I created using the QueryDB query builder, but am missing something in the filter on how to match only the rows that match the id field from the first ddl. My xml line looks like for the second ddl's data source looks like this:
concat("<query database='#DBDev#' table='DBXLClientLocations' maxrows='100'><columns><column name='LocationCode'/><column name='LocationName'/><column name='ClientId'/></columns><filter><eq><column name='ClientId'/><value>", xdXDocument:get-DOM()/my:myFields/my:ClientName ,"</value></eq></filter></query>")
In the line above, the ClientName field is the first ddl where I'm trying to get the value. Also, if I hard code a number in there, it brings back the right data, so I expect I'm just missing something simple about the right way to reference the ddl value field. Thanks for any help you can provide.
Bill