I have a site with a number of lists that are related through various lookup columns. I would like to create a page that shows items (from the different lists) that have a certain lookup value in common. What are the possibilities for this kind of thing in sharepoint 2013.
I guess I'm looking for something similar to a database select: "select * from listA, listB, listC where columnValue = "givenValue";"
Regards!
Have a look at the content query webpart
https://support.office.com/en-us/article/When-to-use-the-Content-Query-Web-Part-or-the-Content-Search-Web-Part-in-SharePoint-346a0f48-38de-409b-8a58-3bdca1768929
This should still be valid for SP2013:
https://support.office.com/en-us/article/Display-data-from-multiple-lists-with-the-Content-Query-Web-Part-d560f477-8fc1-4258-aeb2-70aa932e07da
Related
We would like to connect 2 Sharepoint lists to one PowerApps gallery. So editing in in Form 1 with SP list 1, and then editing in Form 2 with SP list 2. The Title column in List 1 and List 2 are the same.
The gallery list is showing "Gallery.Selected" the filter is:
SortByColumns(
Filter(
[#BICT_DATA_KLANTEN_MAIN];
StartsWith(
Title;
ZOEKBALK_BICT_DATA_MAIN.Text
)
);
"Title";
If(
SortDescending1;
Descending;
Ascending
)
)
Its difficult for me to answer this question succinctly. There are SO many factors at play. To connect two Sharepoint lists to a single Gallery control, combine the lists into a single Collection.
Example:
ClearCollect(colCombined,
SPList1,
SPList2
)
Add colCombined to the Items property of the Gallery.
But this will add ALL records from both SP Lists.
You likely don't want this because of unnecessary columns, size of data, etc.
Considering the Form controls you mentioned, put some thought into the relationships between List1 and List2. I'm imagining you want a Header-Details-type of relationship.
Personally, I remove the Title column from Sharepoint lists then use a recordGUID column. Its more intuitive for me and others that come after me to maintain the app. "Title" says nothing about "ID key needed to relate lists".
Research the PowerApps GUID() function. You'll want to populate the recordGUID column of both lists when creating new records.
There is a 1-2hr class worth of nuance involved in creating a Header/Details type of application. From the UI to the Sharepoint best practices to the PowerFX code.
Maybe useful for you...
We have a SharePoint site that users will create item records as a new subsite with a template. On this template is a list, we'll call List A. There are 90+ of these subsites with the same 'List A' name.
On List A there is a "Status" field with the "Closed" choice. I am looking to make a report (preferably in Table/Excel form) that will query all the 'List A' lists that have a Status field set to 'Closed'.
I am looking at OData queries but I'm very new to Power BI. Any help would be much appreciated!
Thanks!
I would build a query based on one subsite example, using the built-in connector for a SharePoint Online List. I would apply the Status = Closed filter. Then I would replace the hard-coded Site with a Query Parameter.
Now you can right-click that Query and choose Create Function.
Next you need a Query that lists your 90+ subsites with their URL. There might be an OData query that can do this or you might need to maintain a manual list e.g. in Excel. Then you can add a Custom column that calls the Query Function (created above) and passes each subsite URL.
Expand that table-type Custom column and the result will be the filtered rows from all the subsites.
I want to create a Look up column to bring the data of a column "Person/Group" in other library but I canĀ“t.
I found some solutions to this inconvenient, for example:
https://sharepoint.stackexchange.com/questions/56745/is-it-possible-to-make-a-lookup-column-that-looks-up-person-or-group-type-from
But, I can't use them because the politics of the company I'm working, forbade me to code in Sharepoint or even use Sharepoint Designer.
So... is there a workaround this problem, maybe working with InfoPath or something?
Thanks in advance
Why not use the list settings graphical user interface of SharePoint?
Have a look at
Sharepoint: Calculated column based on another list
http://www.youtube.com/watch?v=ShLH0mBcA54
== Update after some discussions ==
Lookup columns can only be linked to other lists and the only built-in list that contains any users is the hidden User Information List. This list you can link to, to do it any other way you must create your own list with users
I'm trying to aggregate results from different list types. Using Join feature in Sharepoint designer won't cut it. What I want to achieve is eq. to in T-SQL "Select x AS y".
For example - The column "Title" doesn't exist in one list type but the column "Name" does.
What I want to do is as I would in SQL: "Select Name as Title"
I've tried looking into CAML but no luck there.
Much appreciated
V
You could achieve this using the Camelot .NET Connector for SharePoint, available at http://www.bendsoft.com/net-sharepoint-connector/
When using it you may question your SharePoint lists and document libraries as if they where ordinary SQL tables.
Ie.
SELECT LinkTitle as Title, CreatedDate as `Created Date`, ID as `List item id` FROM WhatEverListYouLike WHERE ID > 10
There are also predefined functions to handle most common operations of documents like FileUpload and FileDownload. These are covered in the documentation - http://docs.bendsoft.com/camelot-net-connector/latest/procedures/
In sharepoint 2007 , i have created three list
category
authors
books
all book belong to a author and all author belong to a category. i have done this by creating a column in authors list which has a lookup to select categories. so that while creating new item in the list author we can select category . similar thing is done in books list for authors.
i have created a web part page which displays all three list one below other.
how can i perform filtering such in this page such that if i select any category it shows all authors and books under it ?
You'll need to use CAML to query your list. There are several samples here: Writing CAML Queries For Retrieving List Items from a SharePoint List. You'll also need to download U2U CAML Query Builder for testing proposes.