码迷,mamicode.com
首页 > 其他好文 > 详细

Rest访问获取其他表内的数据

时间:2014-10-31 17:12:30      阅读:259      评论:0      收藏:0      [点我收藏+]

标签:http   os   sp   数据   amp   as   res   tt   用户   

http://valexsu/sites/xoec/wf/_api/web/lists/GetByTitle(‘IBDManagement%20List‘)/Items?$select=Field_OTIS_ProcessNo,Field_OTIS_OrderNo,Created,Author/Title&$expand=Author&$filter=Field_OTIS_OrderNo%20eq%20%27asdfsa%27

参考:http://msdn.microsoft.com/zh-cn/magazine/dn198245.aspx

读数据是想要读一个用户名出来,结果只读出来一个字段加ID,虽然不清楚这是怎么来的。但是用上面的句子查出来了。我要选取的名字是Author表中的title字段。其他都是我自己表中查出的字段,Author/Title&$expand=Author表示我从Author表中去拿。expand=Author表示外联Author表

Rest访问获取其他表内的数据

标签:http   os   sp   数据   amp   as   res   tt   用户   

原文地址:http://www.cnblogs.com/Q-lucia/p/4065499.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!