XModPro

Where am i going wrong

 Utilise IT Utilise IT posted Jul 12, 2016
Active Jul 19 · Viewed 560 times

Hi,

Trying to get a template to only show records relating to logged in user.

Have a column in the table called userid.

here is my template that is not retruning anything despite there being a couple of records in the table.

<ListDataSource CommandText="SELECT [id], [Name], [Category], [SubCategory], [Supplier], [PurchaseDate], [Image1] FROM tablev5 where [UserID] = UserID">
<Parameter name="UserID" value='[[User:ID]]'/>
</ListDataSource>

Thanks in advance

3 Replies

Loading replies...