Hi guys I have a problem with macros in where part of a query repeater web parts. I have a custom filed in CMS_User system table called "BusinessUnitId " I want to make a where condition by comparing CurrentUser.BusinessUnitId and a field of another table which I called it "ReagentGUID" of "c" table the macro that i have used is {%CurrentUser.BusinessUnitId#%} = c.ReagentGUID but it see the following error:
Server Error in '/' Application. An expression of non-boolean type specified in a context where a condition is expected, near 'c43'.
Is the BusinessUnitId field a Guid field?
BusinessUnitId
Guid
If so, you need to wrap your macro in quotes. The query repeater WHERE condition would then be:
'{%CurrentUser.BusinessUnitId|(identity)GlobalAdministrator%}' = c.ReagentGUID
yes it is . thank you very much. my problem is fixed . :D LIKE
Please, sign in to be able to submit a new answer.