Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

在添加DataRules时增加Category Folder的数量
efreeman
#1 Posted : Thursday, September 15, 2011 1:12:52 AM(UTC)
Rank: Newbie
Groups: Registered

Joined: 8/7/2011(UTC)
Posts: 3
在Contents中,可以为某个文件夹设置多个Category Folders。但是在添加针对该文件夹的查询时,对话框中只允许选择一个Category Folder,然后设置Category filter。能否选择多个Category Folders?
jifeng
#2 Posted : Thursday, September 15, 2011 3:47:49 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,552
Location: Xiamen China
在设计器不支持,不过你可以通过API来查询,就可以按多个类别了。我这边的例子:

Code:


allowSelectOffer = ContentHelper.TextFolder("SelectedOffers").CreateQuery().Where(new OrElseExpression(new WhereEqualsExpression(null, "Status", null), new WhereEqualsExpression(null, "Status", "Pending")))
               .WhereCategory(ContentHelper.TextFolder("Offers").CreateQuery().WhereEquals("UUID", (string)(@item.uuid)))
               .WhereCategory(ContentHelper.TextFolder("User_Identity").CreateQuery().WhereEquals("UUID", (string)(@userInfo.uuid))).Count() == 0;

Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
1 user thanked jifeng for this useful post.
efreeman on 9/15/2011(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.036 seconds.