使用CAML sharepoint 2013的子父查询 [英] Child Parent Query using CAML sharepoint 2013

查看:99
本文介绍了使用CAML sharepoint 2013的子父查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的列表中有这样的数据




我想查询"isDeleted"根据其父ID 


为所有孩子设为true,就像我们在sqlserver中通常所做的那样......我想在这里做同样的事情


需要帮助


谢谢


解决方案


我在"ID"中理解column是父ID,而"IsParent"是将基于ID列来建立父子关系。


这个要求不能在单个列表中实现,我建议使用另一个列表来存储"IsParent"。字段然后在CAML中使用加入操作,类似于SQL:


如何使用像SQL连接这样的CAML连接?


谢谢


最好的问候


Hi,

my list having data like this

I want to query to "isDeleted" make true for all child according to its parent ID 

as we usually do in sqlserver ...same thing I want to do here

need help

Thanks

解决方案

Hi,

I understand in the "ID" column is the Parent ID and for "IsParent" will based on the ID column to make parent-child relationship.

This requirement can't be achieved in a single list, I would suggest to use another list to store the "IsParent" field and then use Join action in CAML which like SQL:

How to work CAML Joins like SQL Joins?

Thanks

Best Regards


这篇关于使用CAML sharepoint 2013的子父查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆