NetTalk Central

Author Topic: Button ? to change filter on Browse  (Read 1428 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 263
    • View Profile
    • Email
Button ? to change filter on Browse
« on: January 18, 2022, 09:55:12 AM »
HI All,
Using C11.0.136 and NT 11.51.
I have a simple browse with clients.  I want to be able to TOGGLE between Active and Inactive - I have a byte field IsInactive - 0/1
My windows application has a button that changes the filter and re-displays.

How can I do this on a WebServer Browse -
? two tabs - "Active" and "Inactive" - but there does not seem to be a way to do this..
? Put a Button over Browse - next to Search button??  How to do this?
?Other suggestions??
TIA,
Ron Jolda

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 418
    • View Profile
    • Email
Re: Button ? to change filter on Browse
« Reply #1 on: January 19, 2022, 12:05:02 AM »
Hi Ron

In fact, very easy.
You have to wrap your browse into a memory form.
Add a button, Radio or Check to your form, that updates a Session Variable, that you use in your filter in the browser.
Remember to update your browse when you change your filter.

I have added an example. Not so pretty, but it works.

/Niels
« Last Edit: January 19, 2022, 12:21:15 AM by Niels Larsen »

rjolda

  • Sr. Member
  • ****
  • Posts: 263
    • View Profile
    • Email
Re: Button ? to change filter on Browse
« Reply #2 on: January 19, 2022, 03:54:59 AM »
Ahhh - the FORM.
Thanks for the help Niels,
I will check out the test case.
Ron