How do you resolve macros in a control’s parameters in a transformationtransformation?

HelenaG Grulichova asked on October 2, 2012 02:18

How do you resolve macros in a control’s parameters in a transformationtransformation?

Correct Answer

HelenaG Grulichova answered on October 2, 2012 02:18

It could be tricky to resolve macros in a  control’s parameters such as the WhereConditon of nested repeaters in your transformation code because of inner apostrophes which can’t be avoided, so you need to use following exact syntax:

WhereCondition=<%# "<columnName>='"  +  CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros("<macro>")  +  "'" %>

-jh-
0 votesVote for this answer Unmark Correct answer

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