SharePoint List to Infopath Field Options - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

SharePoint List to Infopath Field Options

Last post 09-28-2011 06:42 PM by Tanya. 9 replies.
Page 1 of 1 (10 items)
Sort Posts: Previous Next
  • 09-06-2011 08:12 AM

    SharePoint List to Infopath Field Options

    Hey All,

    I am currently working with a SharePoint list that has a company column that is used for assiging a specific company name to a specific project. I am trying to bring these two fields into a Infopath form so when they choose the company it will only display the projects associated with that company. Unfortunatley when I point to that list it shows all the entires in that column (company) so its full of multiple entries of the same company, is there a way to manipulate that so it only displays 1 entry for each company?

    So I figured out the answer to my first part of this question, however I am struggling with this part, I have a SharePoint List that contains multiple companies and multiple projects for each of those companies, I have a Infopath form where a user will select a company and I want it to only display the projects listed for that company based off the list from SharePoint. I have the form currently recieving information from that list in SharePoint but I can't seem to get the company/projects to display properly...it displays all the projects no matter what company is selected.

    Thanks in advance

     -daniel

  • 09-09-2011 11:06 AM In reply to

    Re: SharePoint List to Infopath Field Options

    bump...Can anyone help with this?

    Thanks

  • 09-09-2011 02:14 PM In reply to

    Re: SharePoint List to Infopath Field Options

    Hi Daniel,

    In the dropdown for your list, you are specifying the data source right? Did you click on the filter button? You can filter it to only show items where the company matches.

    Patrick Halstead
    Project Manager at Qdabra
  • 09-12-2011 06:37 AM In reply to

    Re: SharePoint List to Infopath Field Options

    Hey Patrick,

    Sorry for asking for more detail but I am still trying to learn all of this and can't seem to find what you mean by "Filter".... I do have an Infopath form that I currently have a repeating table set up, in the repeating table I have multiple columns but two of those "Company" and "Project"  are pulling information from the same list in Sharepoint in dropdown boxes. I would like it to work in where a user picks the company and the only projects that are listed are the ones that are used by selected company...does this make sense and how can I accomplish?

    *EDIT*

    This filter data is a little tricky, I cant seem to get it to display exactly what I am looking for it to display. Most of the time it displays nothing in the project box after I set a filter, than other times (after changes) it displays random projects but not specfic to the company choosen, I must be doing something wrong here. :( Any additional help with figuring out this filter madness would be great!

    Thanks in advance, I really appreciate all the help I get here!

    -Daniel

  • 09-12-2011 11:27 PM In reply to

    Re: SharePoint List to Infopath Field Options

    Hey Daniel

     You are using which version Infopath 2007 or 2010 in 2010 you can cascade the dropdowns(second drop down gets populated based first dropdown selected value) by out of box features of infopath.

    While in 2007 you have to do some coding for cascading. Which version are u working?

    Anoop
  • 09-13-2011 06:13 AM In reply to

    Re: SharePoint List to Infopath Field Options

    I'm currently using Infopath 2007, so is there any way to do this without code? Or can someone help out with the coding?

    Thanks

    -Daniel

  • 09-13-2011 10:00 PM In reply to

    Re: SharePoint List to Infopath Field Options

  • 09-14-2011 07:31 AM In reply to

    Re: SharePoint List to Infopath Field Options

    I really appreciate you pointing me to this but there is no instruction on how to utilize this and I am not a coder, can anyone further assist it would be greatly appreciated.

    Thanks

    -Daniel

  • 09-16-2011 10:33 AM In reply to

    Re: SharePoint List to Infopath Field Options

    Bump...

  • 09-28-2011 06:42 PM In reply to

    • Tanya
    • Not Ranked
      Female
    • Joined on 05-27-2011
    • Canada
    • Posts 12

    Re: SharePoint List to Infopath Field Options

     

    Daniel Clarke:

    Hey Patrick,

    Sorry for asking for more detail but I am still trying to learn all of this and can't seem to find what you mean by "Filter".... I do have an Infopath form that I currently have a repeating table set up, in the repeating table I have multiple columns but two of those "Company" and "Project"  are pulling information from the same list in Sharepoint in dropdown boxes. I would like it to work in where a user picks the company and the only projects that are listed are the ones that are used by selected company...does this make sense and how can I accomplish?

    *EDIT*

    This filter data is a little tricky, I cant seem to get it to display exactly what I am looking for it to display. Most of the time it displays nothing in the project box after I set a filter, than other times (after changes) it displays random projects but not specfic to the company choosen, I must be doing something wrong here. :( Any additional help with figuring out this filter madness would be great!

    Thanks in advance, I really appreciate all the help I get here!

    -Daniel



    Hi Daniel

    I just had to do something similar to what you are asking about. It is completely possible (plausible) without using coding.

     First, your InfoPath form cannot be Browser Enabled for the filtering to work correctly.

    You need to make a minimum of 2 lists in SharePoint. One will hold the Project Names. The second list would hold both the Company Name and the Project Names.

                          

            

    In the company list, for every project they are involved with, you will need to add an additional line with that Company name. As shown above.

    When you add the Data Connection in your InfoPath form, you want to make sure both columns are selected. Set up the Company name field as normal, check marking "show only entries with unique display names.


    When you set up the list box properties for the Project, create as normal, however, while you are still in the Select a Field or Group property box, click on Filter Data at the bottom of the box.

     

      In the filter data box, select Add.

     

    In the first field, you want to choose "Select a Field or Group". Locate your Company field. In the second box, you want it to say "is equal to". In the third box, you want to select "Use a formula"

     In the Insert Formula box, type 

    current()/my:Company

     After you have clicked on OK enough times to get out of the List Box Properties, it will not look like you typed this, but it should take care of your filtering problem.

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