DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Drop Down List using XML

  1. #1
    Join Date
    Nov 2010
    Posts
    1

    Drop Down List using XML

    I have a very basic question. I'm creating a company in Infopath form that I will be using drop down boxes in. I'm recreating a current company form that has to be identical to the original in all aspect. These drop down boxes use three number codes representing an action and there are dozens of them. To simplify using the form, I would like to add a brief description next to each code, but keep only the three number code as the value of the box. Is there any way I can do that using XML?

    Example:
    Drop down list will show the user "070 - Broken", but once the user selects this from the list only "070" remains in the box.

    Here's the basic code I'm working with:

    <?xml version="1.0" encoding="utf-8" ?>
    <failure>
    <failurecode>
    <value>070</value>
    <text>Broken</text>
    </failurecode>
    <failurecode>
    <value>790</value>
    <text>No Failure</text>
    </failurecode>
    </failure>

  2. #2
    Join Date
    May 2009
    Location
    United Kingdom
    Posts
    49
    Insert a drop-down list box for InfoPath 2007:

    http://office.microsoft.com/en-gb/in...03020.aspx#BM3

    See step 9, sub point:
    Use values from a database, Web service, XML document, or SharePoint site

Similar Threads

  1. Replies: 1
    Last Post: 01-20-2009, 02:22 AM
  2. Help with Drop down list
    By BillyMako in forum AJAX
    Replies: 1
    Last Post: 08-07-2008, 11:22 AM
  3. Data on a Drop Down List box
    By Complete in forum C++
    Replies: 1
    Last Post: 08-14-2007, 08:25 AM
  4. Drop down list box with SQL server
    By software_develo in forum .NET
    Replies: 3
    Last Post: 02-16-2006, 01:29 PM
  5. XML files vs Database
    By Mansoor in forum XML
    Replies: 8
    Last Post: 08-23-2002, 04:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center