Filter the secondary datasource based on lookup column

Hello All,
I am customizing a List form. I have a secondary data connection which is
a datasource for my drop down list. I have to filter the datasource based on Lookup column value.
I know how to filter on the datasource by going to entries and filtering but it does not work with Lookup column.
Can anyone let me know step by step procedure.
Regards,
smith
smith

Hi,
According to your post, my understanding is that you wanted to filter the secondary datasource based on lookup column.
I recommend to create a cascading drop-down list box in InfoPath.
You can follow the steps in the article to achieve what you want:
Create Cascading Dropdown in Browser enabled InfoPath form using InfoPath 2010
More information:
Cascading Drop Down List In SharePoint 2010
Cascading Drop-Down List in SharePoint 2010 using InfoPath 2010
Dan's SharePoint Blog: InfoPath Tutorial Cascading Dropdown (Does not have the 20 item limit)
Best Regards,
Linda Li
Linda Li
TechNet Community Support

Similar Messages

  • In BI how to filter the selection options based on inputs on top field

    Hi Friends,
    In BI, How to filter the selection options based on inputs on top field.
    The system should automatically filter the lower level drop downs based on the selection of a higher level.
    For e.g. :
    If a user selects a Country then the States drop down should only display the State's belongs to the Country. Similarly when a State is selected, the District drop down should display only those District's belongs to the State.
    Thanks in Advance.
    Regards
    Jayaram M

    Hi Anil,
    Thanks for reply but I couldn't use Compounding Characteristic here. Need some other solution.
    Regards
    Jayaram M

  • How to create a view based on Lookup Column?

    Hi All,
    I am working as a SharePoint developer 2013.
    When i tried to create a view based on look up column it is not showing lookup column.
    How to fix this problem?
    Please help me out here.
    Thanks & Regards,
    Santhoshi

    can you elaborate the issue? Do you mean you cannot view the column name in the filter section when creating a new view for the list or the column is not getting displayed in the view created?
    --Cheers

  • Access data from from two lists based on lookup columns and insert into another

    Hi,
    I am new in SharePoint and is stuck in some problem.
    I want to insert data in to a list by fetching data from 2 lists.
    The scenario is :
    List A Columns : EmployeeName, EmployeeID, EmployeeSalary 
    List B Columns : DepartmentName, EmployeeID, ManagerID
    EmployeeID is lookup column 
    I want to fetch data from these 2 lists and insert data into another list:
    List C Columns: EmployeeName, EmployeeSalary, DepartmentName 
    Can someone please explain me all the possible approaches to do the above task

    If ListA and ListB are the lists that you created, it would be better to generate the lists data into one list not seperate lists, as they both represents the property information of one employee.
    If they are existing lists, you may have following considerations:
    1. if you are a programmer, it would be easier to have a lookup column at ListA, to generate the EmployeeName, EmplyeeSalary, then using ItemAdded event, to generate the DepartmentName column based on EmployeeID column.
    2. have a lookup column look at ListA, use workflow, set when item is created, start the workflow automatically, then in the workflow, find ListB related item based on EmployeeID column, to set the DepartmentName column, SharePoint designer workflow
    set Item Value activity can do this work, you can research to find more information about how to do this.
    Thanks,
    Qiao Wei <br/> My blog:http://blog.goobol.com

  • How do I limit the view of a date lookup column to = [Today]?

    I have a list that has a column that contains various event dates  that I use in another list for a lookup column.  As this list gets longer over time, I want to restrict the lookup/dropdown list to only reflect dates =>[Today]. 
    How can I do that in SharePoint Foundations 2013?
    Thanks!

    Hi,
    Per my knowledge, the OOB not provide a method to achieve your requirement. We can use jQuery to achieve it.
    http://stackoverflow.com/questions/17573893/restricting-range-of-drop-down-lists
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to query the sharepoint list with using lookup column

    hi,
    I have requrement like below
     List A
    Title                         Postionid(Lookup)       PositionDescription
    [email protected]             1                              
    xxxx
    [email protected]             1                               
    xxx
    [email protected]           1                                
    xxx
    [email protected]                    2                               
    sss
    [email protected]             2                               
    www
    List B
    Title                         fistname  lastname age fathername
    [email protected]         x             x             10      y
    [email protected]         p            p               12      p
    [email protected]               q           q                12    
    y
     here in List A positionid is lookup column i have creating one visual web part i am querying the List A using  query string as Positionid in that web part .finally what i want is i need date from list B on basis of corresponding position id here
    List A Title and List B title are same i need each candidate info how can i do it
    Srinivas

    Hello,
    Still you have not told that whether Position id is there in listB or not. Anyway if Poistion id is not there in list B then you have to use Title column of listA to gete data from ListB. Look at sample code below. It will first get data from ListA,
    and use StringBuilder class to create dynamic CAML query because one Position id is having multiple values in listA.
    query.Query = "<Where><Eq><FieldRef Name='Postionid' /><Value Type='Lookup'>1</Value></Eq></Where>";
    SPListItemCollection items = list.GetItems(query);
    if(items.Count > 0)
    foreach(SPListItem item in items)
    string strTitle = Convert.Tostring(item["Title"]);
    //since listA is having multiple values for Postionid so you have to build a dynamic query here to get data from listB
    //Refer link to build dynamic query
    SPQuery listB = new SPQuery ();
    query.Query = stringbuilder;
    SPListItemCollection ListBitems = listB.GetItems(query);
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2dfe5fd6-e556-4132-a35c-e9f240360307/issue-with-caml-query?forum=sharepointdevelopmentlegacy
    http://sharepoint.stackexchange.com/questions/69690/foreach-loop-inside-caml-query
    Above links will help you to create dynamic query (in your case you need to use multiple <OR> operator in listB.
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Synchronizing the Edit Page based on four columns

    I am using ADF BC and JSF . i am getting problem in Synchronizing the Edit Page
    While navigating to edit page it gives first record of the table . the record which i want to get is based on four different columns and not on primary key. how can i set the record to be edited based on these four columns whoes value is stored in session bean.
    thanks in advance

    Hi friends,
    Maybe it is better that i ask:
    How i can set a ViewObject current row to an specific row on page display?
    for example when my page display i need to set its current row to another row.
    e.g:
    servicesView.setCurrentRow(myOwnRow);but i want this code to execute when my page is shown, where i write the code?

  • Filter the attribute members based on th fact data

    Hi,
    Thanks for reading the post, i have a Q which is related to dimension attributes with MDX only.
    I have a dimension which is a role playing of date, i want to limit the members of the attribute when i pulled it to the filter section, for now it shows me everything that are in the underlying table which it is suppose to, but i have 2 keys out of 100
    that have corresponding data in fact table. when i slice it with that attribute it filters out the rest but i want to get that in the attribute when it is pulled into filter section.
    Is there a way to handle it through MDX, i want to limit the values of a attribute members based on the data in fact table.
    Is their a approach to create a attribute to a existing dimension on the fly using MDX????
    This is what we can do but cannot:
    I can do it by limiting in table in DSV, but as it is a role playing of date there wont be dedicated table for it, and i can't limit in regular date dimension which is out of scope.
    I cannot create security role where this role playing dimension doesn't show up there in the list of dimensions so not working that way.
    Ideas and solutions are much appreciated..
    Guru

    Hi,
    please find the attachment below and all i am looking for is the members in the attribute should be filtered when i pull that attribute as a filter.
    for example:
    if i pull the attribute to the filter section it will show something like this:
    Dimension   Attribute   operator  Filter Expression
    Date           Date          Equal        when i expand  1/1/1900  (no corresponding data in fact)
     1/1/2005 (no corresponding data in fact)
      1/2/2005 (no corresponding data in fact)
      1/3/2005 (no corresponding data in fact)
     12/31/2013 (Has corresponding data in fact)
      1/1/2014 (Has corresponding data in fact)
    Now, my filter should show only 12/31/2013 and 1/1/2014 in the member list when i pull that as above.
    Thanks Much,
    --Guru

  • List Views displaying error - when using Lookup column for filtering ( which are indexed )

    I'm trying to filter a large list that has more items than the list view threshold. The list has a lookup column that is indexed. If I  try to filter by other columns, the view works fine as long as it returns fewer than 5,000 items. However, if
    I try to filter by the lookup column, I get the error about not being able to display the items because the list is too large.
    The views are returning items which are less than threshold value , but still I am seeing the same issue.I Created some pages and added this filtered views to the pages it is showing below error
    This view cannot be displayed because it exceeds the list view threshold ....
    IF I navigate the view in the list it's returning zero records with out any error page . But no records. 
    Is there a known issue with filtering large lists by lookup column? Any other troubleshooting suggestions? Everything I'm doing here is through the web interface.

    Thank you for your reply. Yeah it’s default limit. But when I created view based on some filter condition on lookup column it’s not working.
    For example:
    Created a View based on Lookup column DEPT using filter condition Dept = HR , returned 1400 items
    Created another View based on Lookup column DEPT using filter condition Dept=Admin , returned 3600 items
    Adding this list view webparts to the page also working fine , displaying the results .
    After adding one item to this list , both the views are not displaying any results. Now the count is 5001.(it exceeded the list view threshold)
    The page where the list view web parts are added throwing the below error.
    This view cannot be displayed because it exceeds the list view threshold (5000 items) enforced by the administrator.
    To view items, try selecting another view or creating a new view. If you do not have sufficient permissions to create views for this list, ask your administrator to modify
    the view so that it conforms to the list view threshold.
    Learn about
    creating views for large lists.
    I am experiencing this problem only with lookup columns, Choice and site columns are working fine in this same situation .
    Thanks,

  • Updating a secondary datasource to a Sharepoint list via infopath form rules

    Using SharePoint 2010 and InfoPath 2010 I created a form that prior to submission it gets an integer value from a separate SharePoint list via a secondary datasource.  Just before the rule that submits the form to a document folder via the
    main datasource I increment the integer value and try to write it back to the secondary datasource I got it from.  I know that I have the correct value.  That is, it is reading from the data source the correct integer information and it is incrementing
    it in the form but when it writes the value back to the same column in the same secondary datasource it doesn't give any indication that it didn't work.  But when I look at the list of the secondary data source I see that the integer value is
    not updated.

    Hi Jonas,
    You can attach your Excel doucment into InfoPath form and send InfoPath form to a custom web service. Then you can parse the Excel data and combine the Excel data and additional fields into SharePoint list in the customized  web service.
    For more information, you can have a look at the thread:
    http://dandeng.blogspot.com/2012/03/submit-infopath-form-data-to-web.html
    http://www.codeproject.com/Articles/88547/Submit-entire-InfoPath-form-to-web-service
    https://social.msdn.microsoft.com/Forums/office/en-US/590f1e78-5c08-47bd-8af4-9709102b568d/webservice-to-send-attachments-in-infopath-form-to-different-location?forum=sharepointcustomization
    https://msdn.microsoft.com/en-us/library/office/gg575571.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to show regions markers in Google maps based on longitude and latitude. on-click of region marker i want to display all the country locations based on the region from share point list?

    Hello every one,
    In My requirement i am having  some regions with longitude and latitude in one SharePoint list. in another SharePoint list i am having the country values with longitude and latitude and region as look up field.  I want to display all the region
    markers in Google maps. on click of any region marker i want to zoom in the map to region level and i need to display all the country markers in Google maps under the region. can any body help me on this requirement.
    Thanks in advance,
    Venu.

    Not sure about Google Maps but this is fairly easy to do with Bing Maps. I've used Bing Maps with SharePoint lists fairly regularly. Here are some blog posts:
    http://blogs.bing.com/maps/2013/03/26/connecting-a-sharepoint-list-to-bing-maps/
    http://blogs.bing.com/maps/2013/03/07/geocoding-a-sharepoint-list-item/
    Once you have your sharepoint list connected to Bing Maps you can easily filter the list data based on the selected country if you have a country column in your list. If you want to take things a bit further an create a much cooler user experience you can
    also use the Bing Maps GeoData API to get the country boundaries and show them on the map as polygons. These could be color coded based on some metric, or set up as the clickable area on the map rather than a pushpin. Here is a blog post on how to use the
    GeoData API with the JavaScript Bing Maps control:
    http://blogs.bing.com/maps/2013/06/25/retrieving-boundaries-from-the-bing-spatial-data-services-preview/
    http://rbrundritt.wordpress.com

  • Sort alphabetically a lookup column in 'Quick edit'

    Hi Everyone,
    I've had this problem for a long time now and have not been able to get it working. I have a List with several fields, one of them is a Drop-down list with a lookup field linked to another list called 'Customers' which has two fields 'ID' and 'Customer'.
    If I create a 'New Item' the field 'Customer' is sorted alphabetically in ascending order by 'Customer', also in the list it's the same (which is what I want) however if I try to edit with the 'Quick Edit' button the lookup column is not sorted by 'Customer'
    but by 'ID'  and the users are complaining about this this there are more than 1,000 fields. Funny thing is as I already explained, if you create a 'New Item' or 'Edit Item' it works and is sorted as it should, only the lookup in 'Quick Edit' is sorted
    by ID.
    I already attempted the following and still no luck. I would very much appreciate the help.
    Sort SharePoint lookup column Dropdown by customizing your list form with InfoPath
    Regards,
    --Luis
    Si se solucionó tu consulta no olvides marcar la respuesta. Si te ayudó vótala como útil. Saludos!

    Hi,
    According to your post, my understanding is that you wanted to.
    There is no out of the box way to accomplish this with SharePoint.
    By design in SharePoint, the lookup column is sorted by ID in 'Quick edit'.
    When you click the dropdown icon, the HTML Table will be appeared.
    You can use JQuery to sort the Table.
    More information:
    http://www.granneman.com/webdev/coding/css/sorting-tables/
    http://blog.niklasottosson.com/?p=1914
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Filter the unique records

    Hi ,
    for writting a code for "filter the unquie records based on EXNUM AND EXYEAR"
    I HAVE WRITTEN
    "delete the adjacent duplicate from y_v_delivery(defined)
       comparing EXNUM EXYEAR"
    IS IT CORRECT OR NOT

    Hi Bijender,
    First Use SORT for the same.
    SORT y_v_delivery BY EXNUM EXYEAR.
    And then use DELETE..which is correct.
    Reward points if useful.
    Regards,
    Atish

  • How to filter the Rest Api data based on Taxanomy columns

    Hi Everyone,
    We are using SharePoint2010 Standard Edition.
    I wanted get the library details through REST Api. I am using as below:
    https://SiteUrl/_vti_bin/listdata.svc/Documents?$filter=Title eq 'SharePointDoc'
    Here I am able to get the info regarding "SharePointDoc". But when I am trying to get the details from Taxonomy filter, it didn't.
    Can anyone please tell me how can we filter based on Taxanomy fields.
    Thanks in Advance
    Krishnasandeep

    Hi,
    I understand that you wanted to filter the Rest Api data based on Taxanomy columns.
    Per my knowledge, in SharePoint 2010 , not all types of column are available via REST, most annoyingly managed metadata columns are amongst this group of unsupported column types.
    However, in SharePoint 2013, we can filter list items based on taxonomy (managed metadata) columns.
    Taxonomy fields can be now called via REST API using CAML query in REST calls.
    Here is a great blog for your reference:
    http://www.cleverworkarounds.com/2013/09/23/how-to-filter-on-a-managed-metadata-column-via-rest-in-sharepoint-2013/comment-page-1/
    You’d better to change the REST calls and the CAML query to check whether it works in SharePoint 2010.
    More information:
    http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • When creating a "lookup" column be able to display not only one column from the other list, but additional columns

    With the lookup technique, it is possible to select an item from another list and display one column of this item
    It is obviously possible to create several lookup columns on the same list and therefore display several columns
    There’s a high risk of not selecting the same item and therefore have inconsistent columns
    The Requirement therefore consist of being able of displaying several columns of the same item from the other list, based on one unique selection
    Example:
    In list(x), define lookup column on list (y), column Title (possible today)
    Then define a “secondary” lookup column on same list, column Code
    The effect would be that when selecting an item from list (X), both Title and Code would show up consistently in 2 different columns of list (Y)
    All possible solutions are welcomed

    If you are using SharePoint 2010, you can retrieve additional columns when adding a Lookup. If you are using 2007, there is no direct OOTB way, but the following two posts provide potential work-arounds:
    https://www.definitivelogic.com/blog/microsoft-sharepoint-2007-pulling-column-data-one-list-another-based-common-list-field
    http://stefan-stanev-sharepoint-blog.blogspot.com/2010/11/sharepoint-2007-associated-lookup.html
    Dimitri Ayrapetov (MCSE: SharePoint)

Maybe you are looking for

  • Print button on Form

    need to add a print button to the find users results form, To print the results... or any ideas on exporting the results would be also appreciated... Thanks in adv Nsankar

  • How do i remove my old icloud account from my phone

    I changed my apple ID and password this morning on my PC. Now my old apple ID is stuck on my phone's icloud and wont accept the new password to remove the account

  • Recovering library after hard disk crash

    My PC hard disk crashed and I lost my library - no back-up. Can I recover it by transferring music from my iPod back o nto the computer? (Note: I did not manually transfer iTunes files onto my iPod before I lost the data.) Rleated question is how can

  • Hide row in planning book

    Hi experts, I have the following requirement in DP planning book. the planning book has 3 KF (KF1, KF2 & KF3) and 2 characteristics (CHAR1 & CHAR2).  Now for KF1 I need to display drill down for all the values in CHAR1 and then to all the values in C

  • Connecting movable buttons by a  line?

    Hi all beginner here I have created 2 circular buttons that i can drag and drop anywhere.....(basic stuff). I would like to create a dashed or solid line that connects to their centers which changes in length as I or user moves the buttons around eac