This discussion is archived
2 Replies Latest reply: Oct 23, 2012 11:31 AM by jgallego RSS

Lookup  behavior problem

jgallego Newbie
Currently Being Moderated
Hi,

I am trying to configure a lookup behavior that shows the data from a data instance behavior. This lookup behavior has to filter the information based on the data selected in another field.

For example I have a selected box that contains all the countries, when i select a specific country the next field has to filter the related cities of that country.

The next line of code is the XPath expression of the Nodeset

instance('Municipios')/Paises/Pais/Departamentos/Departamento[Codigo/text()= ../Departamento/text()]/Municipios/Municipio

With the above line is not working but if i define the line as follows, it works fine.

instance('Municipios')/Paises/Pais/Departamentos/Departamento[Codigo/text()='73']/Municipios/Municipio

How can I configure it to work dinamically?

Thanks for the help.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points