Condition Based Repeater

uzair Ahmed asked on November 8, 2018 12:13

Hi experts, i have query about repeaters. let's suppose i have a folder contain various documents, Each document contain a DropDown field called category,dropdown have Recommended docs,New Docs and My Docs. so now i want to get condition based Documents from that folder using Repeater. For example i just want to get just Recommended Documents from that folder.

-> i dont want to create different folders (recommended Doc Folder, New Doc folder ,MyDoc folder)and assign different paths. it will work but i dont want to use this approach.

is there any solution ,kindly help me. i'll be grateful. thanks

Correct Answer

David te Kloese answered on November 8, 2018 12:42

You could just use the where condition field

Image Text

or whatever value that field has for you.

1 votesVote for this answer Unmark Correct answer

Recent Answers


uzair Ahmed answered on November 8, 2018 14:38

Thanks a lot sir One more thing , is there any way to limit the records ? for example i want to get only 10 documents from my DocumentFolder using Repeater?

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on November 8, 2018 15:35

Set select top N pages you see in my screenshot to 10 or another value

1 votesVote for this answer Mark as a Correct answer

uzair Ahmed answered on November 8, 2018 15:39

Yes, but it will get Top 10 i want to get Random 10 Documents.?

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on November 8, 2018 15:44

Set the order by field to NEWID()

2 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.