How Join two list in SharePoint - sharepoint-2013

I want have created Wikipage on my subsite in SharePoint 2013 online, I want to add two dependent dropdowns on my website... for that I have created two lists in my SharePoint subsite. How to link one List to another list... Just like SQL table PK-FK relationship.
List 1:
List 2:

Just join two lists:
Create lookup column refer to category list.
For Cascade Dropdown, you could use SPCascadeDropdowns.
https://www.c-sharpcorner.com/article/cascading-of-lookup-dropdown-fields-on-sharepoint-2013-and-o/
For inner join query(need lookup column).
https://social.msdn.microsoft.com/Forums/office/en-US/789d7f23-12ae-4454-a37b-e69580c9284d/caml-inner-join-in-javascript?forum=sharepointdevelopment

Actually I am not quite clear about what you are saying - may be you may handle this through the lookup column mapping between two lists.... in SharePoint list relationship is maintained by lookup column/list.
And if you are looking for connected list view webparts in SharePoint online you may go through the below article :
https://global-sharepoint.com/2019/08/18/connected-web-parts-in-sharepoint-online/

Related

Sharepoint list related to another sharepoint list

Is it possible to attach details from one sharepoint list to another like vlookup in excel? For example if I type unique index in one field, all details will be import from another sharepoint list. Any ideas how to do that? Can't find any solution.
You could use lookup column in the SharePoint list.
Reference: How to create a Lookup column in SharePoint
Sharepoint lists are not linkable like tables in relative databases. You could write a webpart or script or something else to 'connect' them.
You can use the APIs to get their contents and write a function which processes the contents. After processing you could use another API to write the results in another SharePoint List.
GET List_1 Data
GET List_2 Data
Process(List_1_data, List_2_data)
POST result to List_n

Show attachment in Sharepoint linked list

I linked two SharePoint lists. They are joined by column ID (like a foreign key).
When I click the Display Item of List #2, it also includes the fields of List #1.
But I can't figure out how to display the attachment from List #1. Any ideas?

Sharepoint: Establish related records when new item being added to list

What is the best way to implement a parent-child hierachy between items in a list? The requirement is as follows
-> there is a list item with a particular ID
-> that particular ID could have related records.
-> all those related records should show up when viewing the list item
When the user adds a new item to list using a form, they should have the option to choose whether the new item being added has another related item or not.
The primary question here is what would be the best way to establish this hierarchy in the list? Also, all the items would be in the same list so how
would we link the list to itself? Or, what would be the best way to implement this? I can figure out several approaches to handle this within the confines of the
sharepoint server object model; however, this needs to be done primarily within the UI of Sharepoint itself (webparts, features, etc. may be used). However,
I am not sure how to IMPLEMENT THIS WITHIN THE SHAREPOINT CONTAINER ITSELF.
Any ideas/insights would be greatly appreciated.
Thanks
You can create a look up column in list with a parent list as itself and allow multiple selections. That way you will be able to check multiple parent IDs for a specific list item.
To show related list items, you can customize details view page of the list in sharepoint designer and add list view web part or dataview with appropriate filters based on the current item.

Inventory Management Calculated Field in SharePoint 2010 across 2 Lists

I need a formula to calculate how much inventory is left on had after a work order has been completed. The work order I am developing is a separate list in sharepoint and I have an inventory list as well.
In the inventory list I have a field called amountinventoried and itemname which the user would put the amount of the item we had on hand during the last manual inventory.
On the work order list I have a field called itemused and amountused I need to find a formula to use on a calculated field in the Inventory list that would go out and simply subtract the amountused from the amountinventoried but only if the itemused and itemname fields matched.
I have been working on this for quite a while and have hit a wall, I'm probably overlooking something extremely easy but I'm still new to sharepoint 2010.
Thanks!
You may be able to do this in a grouped view of the work order list (sort of like this), but I think the design of what you are doing is not suited to using SharePoint lists.
You may be much better off using an SQL database to host and calculate the data and connect it into SharePoint as External Lists using the Business Connectivity Services (brief explanation here).
This gives you the benefit of CRUD functionality in SharePoint, with the extra calculations and trickery available within SQL views and tables.

Filter external list fields from client

BACKGROUND:
We’re developing a custom application which access SharePoint through the Client Object Model and this application need to access ECT (external content type) lists defined in SharePoint using the OM (Object Model). This application is a product that should be usable with most SharePoint installations and configuration and cannot have prior knowledge of External Lists.
When there are no filters set up for the ECT, SharePoint returns all the available items in the list (given the number is below the threshold). The moment we define a filter for this ECT, SharePoint return only the items after this filter is applied (probably correct behaviour from SP).
PROBLEM:
We need to be able to search this ECT list (non-filtered) based on text entered by a user in a search box. At the moment there seem to be no way to change the filter SharePoint applied when returning the values to the calling object.
I.e. I have 10 items in my ECT list (1,2,3…10). Each Item has 3 columns (ID, Name, Description). After setting up a filter for the ECT list, SharePoint return items 2, 3 & 6 when I ask SharePoint for a list of items.
No the user does a search the matches the description of item 7. How can I search/filter the list to return the item that match my search query?
I’ve been running in circles trying to solve this, but nothing seem to work. I tried setting the CAML query as well as the LoadQuery as defined in both http://pholpar.wordpress.com/2011/02/09/how-to-query-external-lists-on-the-client-side-using-caml/ and http://msdn.microsoft.com/en-us/library/ff464384.aspx but nothing seem to work.
Even I had this problem. Let me tell you there is no way of doing this.
Even in Server object model, there was an option to change the filters of the default view but then the SPList will return 0 items once the filter is applied.
The funny part is once your code runs & you open the list in SP UI, you can see the actual modified list. But the same cannot be queries in the object model.
Looks strange. I guess if you modify the SPList (ECT based) in this instance, then you can only get results in the next instance (like in next page refresh.....)