NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Koen Tjoa on December 08, 2011, 04:52:00 AM

Title: Prevent Browse from being generated
Post by: Koen Tjoa on December 08, 2011, 04:52:00 AM
In a NetWebBrowse I have a filter which reads a SessionVariable. Occasionally it can happen that either the SessionVariable is not set yet or equals to zero, which makes no sense then to load the browse. So I am trying to prevent the browse from being generated.

I considering a conditional filter which makes sure no record matches that filter. But there might be better solutions.

Cheers,
Koen
Title: Re: NetTalk 6 and Clarion 6
Post by: ccordes on December 08, 2011, 12:40:13 PM
You can use the conditional filters for this.
Title: Re: Prevent Browse from being generated
Post by: Koen Tjoa on December 09, 2011, 05:06:17 AM
Yep, that is what I did now. I tried to conditionally leave the CallBrowse routine making the GenerateBrowse routine isn't called, but that didn't work out. Once I have done that, the browse is never generated anymore although the next pass the CallBrowse routine isn't left and the GenerateBrowse routine is called.

Although a conditional filter works, I consider this solution it a bit as a workaround. But on the other hand, probably I want to have things too nice.

Cheers,
Koen