use TABLE.TblName in filter lookup

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
shahabksh
User
Posts: 9

use TABLE.TblName in filter lookup

Post by shahabksh »

hi

i use filter in lookup table

in filter in input

"[Name] = " & @TABLE.TblName

but have error The name 'TABLE' does not exist in the current context


arbei
User
Posts: 9532

Post by arbei »

shahabksh wrote:
"[Name] = " & @TABLE.TblName

Your code is not correct.

  1. Use "+" C# syntax in ASP.NET Maker insteqad of "&".
  2. Should not using @ because the filter is C# code
  3. There is no TABLE object in the Page object.
  4. And there is not TblName property in the class DBTableBase.

Rewrite your code in using CurrentPage.Name to get the table name of current page then try again.

For example:
"[Name] = " + CurrentPage.Name


Post Reply