Friday, February 10, 2012

Value field from dropdown infopath

Hi all,
One question always asked by developer is how to get the Text value of dropdown control ? There are many more article available in web.But the problem arises when the drop down having static data no secondary data available.

what we can do is we can create a XML file having our required data. below a sample file.

<?xml version='1.0' ?>
<bookstore>
<book>
<title>Sample Data 1</title>
<id>1</id>
</book>
<book>
<title>Sample Data 2</title>
<id>2</id>
</book>
<book>
<title>Sample Data 3</title>
<id>3</id>
</book>
</bookstore>


now we can do the necessary filtering to get the value data.

No comments: