NetTalk Central

Author Topic: Prevent Browse from being generated  (Read 2633 times)

Koen Tjoa

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • Email
Prevent Browse from being generated
« 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
« Last Edit: December 08, 2011, 03:33:09 PM by KoenT »

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: NetTalk 6 and Clarion 6
« Reply #1 on: December 08, 2011, 12:40:13 PM »
You can use the conditional filters for this.
Real programmers use copy con newapp.exe

Koen Tjoa

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • Email
Re: Prevent Browse from being generated
« Reply #2 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