NetTalk Central

Author Topic: How to refresh a browse on a form  (Read 3893 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
How to refresh a browse on a form
« on: July 28, 2014, 09:33:55 AM »
Hi Bruce

I have a memory form as wizard with some fields and a browse. I would like to filter the browse based on a value i one of the fields.
On the fields Client-Side i have set the browse to reset. But nothing happens (no refresh)

Can you help?

Regards Niels

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • Email
Re: How to refresh a browse on a form
« Reply #1 on: July 28, 2014, 09:47:05 AM »
Hi Niels

Its work fine so what is in your filter -field ?

Jari

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: How to refresh a browse on a form
« Reply #2 on: July 28, 2014, 11:19:54 AM »
It was not quite right. On the browse is there a string as display that is calculated on the basis of a field on the form.
Therefore, I need the browse to get updated.

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: How to refresh a browse on a form
« Reply #3 on: July 28, 2014, 10:37:02 PM »
Niels
If your filter has a problem it can sometimes ignore it in which case you will see everything unfiltered or it will filter out everything so it is empty.
You need to put a trace in the Start of Browse Filter embed point :: p_web._trace('loc:filterwas '  & loc:FilterWas) ::  to expose exactly what your filter says.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to refresh a browse on a form
« Reply #4 on: July 29, 2014, 05:11:17 AM »
>> You need to put a trace in the Start of Browse Filter embed point

there's a template option to do this for you these days Terry. Browse settings, bottom of the first (General) tab.

but yes, first thing is to turn that on then post the contents of the filter here.

cheers
Bruce

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: How to refresh a browse on a form
« Reply #5 on: July 29, 2014, 08:42:16 AM »
Thanks Bruce I knew that but old school you know, like using last months version of Clarion 9.1 ;-). I only do this when I am looking at the filter only.
By the way love the use of string theory trace in normal Clarion apps, really nice for tracking issues in live sites.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186