如何使用jQuery在Microsoft Sharepoint中加入多个列表

时间:2018-09-24 14:58:18

标签: jquery json sharepoint spquery

我正在使用MicroSoft SharePoint。 我在加入多个列表时遇到问题。 请告诉我如何同时加入多个列表。

$SP().list("Employee").get({
        fields: "Title,FirstName,LastName,ID",
        outerjoin: {
            list: "Engagements",
            fields: "ID,Title,FirstName,LastName,Position_ID,Substantive,EmployeeID,Date_Return,Date_End,Expired,EngagementGrade,Recruitment,RD_Sign,GCOB_Sign,Dep_Sec_sign,AppointmentOutcome,Temporary_x0020_Absence,Time_Fraction,Date_Start,PhysicalLocation,Occupied,Available,Agency,Engagement_Type",
            where: "Position_ID = '" + params['position_id'] + "' AND Delete_Tag <> 'True'",
            on: "'Engagements'.EmployeeID = 'Employee'.ID",
            // orderby: "Expired ASC",

            outerjoin: {
                list: "Engagements_Comments",
                fields: "ID,Engagement_ID0,Date,Comments",
                on:"'Engagements_Comments'.Engagement_ID0 = 'Engagements'.ID"
            },
            outerjoin: {
                list:"Grades", 
                fields: "Pos_Grade,ID",
                on:"'Grades'.ID  = 'Engagements'.EngagementGrade", 
            }
        }  
    }, function(data) {
    }

0 个答案:

没有答案