ASPX templates
Version 4.x > ASPX templates > How to apply selected transformation for queryrepeater View modes: 
User avatar
Member
Member
dulani_udayangani-yahoo - 9/21/2010 4:04:35 AM
   
How to apply selected transformation for queryrepeater
Hi,
I have created query repeater to display departments. and displaying nested repeaters. nested repeaters works fine but in detail page it doesn't display details.

how to solve this?
thanks..

User avatar
Member
Member
dulani_udayangani-yahoo - 9/21/2010 5:26:43 AM
   
RE:How to apply selected transformation for queryrepeater
<cms:queryrepeater StopProcessing="false" runat="server" ID="qrDepartmentDetails"
QueryName="custom.DepartmentDetails.selectdocuments"
TransformationName="custom.DepartmentDetails.Default"
OrderBy="DocumentID asc" />
qrDepartmentDetails.WhereCondition = " NodeParentId = " + treeNode.NodeID.ToString() + " or NodeID = " + treeNode.NodeID.ToString();
qrDepartmentDetails.ReloadData(true);

Above is my code..

User avatar
Member
Member
kentico_michal - 9/24/2010 9:23:16 AM
   
RE:How to apply selected transformation for queryrepeater
Hi,

Selected transformation is not resolved in query repeater, since query repeater just displays content returned by a given query.

You could create in transformation a link to some detail page for instance in format detailpage.aspx?DepartmentID=xx.

You could place another query repeater on detailpage.aspx that would display detail information according to DepartmentID from URL with WHERE condition.

To insert DepartmentID into WHERE condition you could use QueryString macro (http://devnet.kentico.com/docs/devguide/index.html?appendix_a___macro_expressions.htm)

Best regards,
Michal Legen