NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: MyBrainIsFull on November 02, 2014, 07:44:50 PM

Title: Browse Filter broken in template ?
Post by: MyBrainIsFull on November 02, 2014, 07:44:50 PM
NT 8-31
on any browse, in the settings - Filter Tab

if I have a filter like Stu:Id = 4
then I delete it,  it generates a bug as the filter is not ignored if it is blank

ie there is no way to turn it off.

I checked with F10 to make sure there was no white space

Kevin



[attachment deleted by admin]
Title: Re: Browse Filter broken in template ?
Post by: terryd on November 03, 2014, 01:44:22 AM
Hi Kevin
Just tried this with the web3 demo app
I put in a trace in the After setView embed point (see below)
  ! Start of "After SetView"
  ! [Priority 5000]
   p_web._trace('loc:FilterWas  = ' & loc:FilterWas)
  ! End of "After SetView"
Compiled and ran the program - result OK debugview value is loc:FilterWas =     All records displayed (which is correct)
Put is a filter in the filter template 'MAI:MailBoxName = a'
Compiled and ran the program - result OK debugview value  is [7352] [st] [netTalk][thread=3] loc:FilterWas  = MAI:MailBoxName = a. No records were displayed (which is correct)
Removed the filter and recompiled and ran - Result OK debugview value is [4396] [st] [netTalk][thread=3] loc:FilterWas  =       All records displayed (which is correct)

Maybe try the above using debugview to display any values which may be in the filter string or maybe use LEN(CLIP(loc:FilterWas)) to see if there is anything hidden
Title: Re: Browse Filter broken in template ?
Post by: Bruce on November 03, 2014, 11:06:13 PM
Hi Kevin,

>> then I delete it,  it generates a bug as the filter is not ignored if it is blank

I'm not able to duplicate the effect here (and apparently neither was Terry), so either there is something in the filter that you can't see, or maybe your install is a bit screwy.

You can probably work-around the problem by setting the filter to
''
but what you are seeing is not normal behavior.

cheers
Bruce