Dropdown list with more than one displayvalue - InfoPath Dev
in

InfoPath Dev

Dropdown list with more than one displayvalue

Last post 08-28-2012 12:14 AM by xaszy. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-24-2012 02:06 AM

    • xaszy
    • Not Ranked
    • Joined on 08-24-2012
    • Posts 3

    Dropdown list with more than one displayvalue

    Hi,

    i have a problem and absolutly no solution.

    The scenario:

    Table 1: Producer(ID,Name)

    Table 2 Product: (ID,Name,REFERENCEtoProducerID)

    Now i have a Infopath 2010 Sharepoint Form and wanted to create a Dropdown where the displayvalues are all names of product but with the producername.

    e.g.:

    #Dropdown#

    Producer1 Product 1
    Producer1 Product 2
    Producer1 Product 3
    Producer2 Product 1
    Producer3 Product 1
    Producer3 Producet2
    etc...

     The Problem when i open the settings of the Infopath 2010 Dropdownlist, then there is a Textfield Value and Displayname. and i can't type in ther a formular like "concat(d:Producer,d:Prodct)".
    Is there any solution to this ?

     

    Thank you guys =D

  • 08-24-2012 04:28 AM In reply to

    Re: Dropdown list with more than one displayvalue

    Hi-

    Modify the SharePoint list to add a calculated column that concatenates the two values, then use that column in your dropdown, as the displayName.

    Basically, you have to handle for this in SharePoint, and not in InfoPath. InfoPath can't concatenate the values itself. InfoPath needs to receive the data already concatenated.

    Good luck!

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 08-24-2012 04:50 AM In reply to

    • xaszy
    • Not Ranked
    • Joined on 08-24-2012
    • Posts 3

    Re: Dropdown list with more than one displayvalue

     In the Meantime that way my idea , too.

     

    But i can't do a calculated colums based on a reference field:

    I created a new colum in the Product table as calculated:

    But i could just do this: =ID+NAME

    But not = NAME+REFERENCEtoProducerID

     

    Is this normal ?

  • 08-28-2012 12:14 AM In reply to

    • xaszy
    • Not Ranked
    • Joined on 08-24-2012
    • Posts 3

    Re: Dropdown list with more than one displayvalue

     I now fixed it with a workflow, which "calculated" the value in a new column. This column i use for the Dropdown.

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