Page 1 of 1

use TABLE.TblName in filter lookup

Posted: Tue Apr 24, 2018 7:18 am
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


Re: use TABLE.TblName in filter lookup

Posted: Tue Apr 24, 2018 12:14 pm
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