XModPro

Passing UserID into listdatasource?

Graham Lewis Graham Lewis asked Oct 16, 2013
Active Oct 18 · Viewed 1413 times
XMod Newbie question, sorry if the answer is obvious.<br />How can I pass the current UserID into the listdatasouce select statement? I want to be able to list details for the currently logged in user using the display name from vw_Users. If I code this:<br /> <br />(where 3 is my USerID) it works. If I replace it with this:<br /> <br />Then when I try to save the template I get a cryptic error message:Template Compilation Error<br />Content (&#39;<br /><br />Is this just plain a bug or am I going about things incorrectly?<br /><br />TIA,<br />Graham

4 Answers

Loading answers...