infopath 2007 How to Returning the Display name from a drop down list box - InfoPath Dev
in

InfoPath Dev

infopath 2007 How to Returning the Display name from a drop down list box

Last post 08-05-2012 06:15 AM by daniweb. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-31-2012 07:11 AM

    infopath 2007 How to Returning the Display name from a drop down list box

     Hi,

    I'm trying to retrieve the display name from a dropdown list box in code behind with no luck.

    code is c#

    Form is browser compatible info-path 2007.

    the values in the Drop-down were inserted manually(not taken from a list).

    here is my code to get the value(I need the DislayName):

     

    string ID = xnDoc.SelectSingleNode("//my:drpObj",ns).Value;
     
    TIA 
  • 08-03-2012 01:01 PM In reply to

    Re: infopath 2007 How to Returning the Display name from a drop down list box

    If the values aren't in a secondary data source, there is no way in IP to get the display. Not even in code. Sorry - you'll want to use an XML data source or something for this.

    Hilary Stoupa

  • 08-05-2012 06:15 AM In reply to

    Re: infopath 2007 How to Returning the Display name from a drop down list box

     10x for the reply.

    Dani.

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.