NetTalk Central

Author Topic: NetWebBrowse - "Change" button condition  (Read 2599 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 323
    • View Profile
    • Email
NetWebBrowse - "Change" button condition
« on: August 24, 2014, 09:59:35 PM »
Hi Guys,

I'd like to use the 'change' button condition on a NetWebBrowse to hide the button upon a condition in my record.
I've tried File:Status = 'R' and p_Web.GetSessionValue('File:Status') = 'R', but as soon as I enter the code, the button is hidden, regardless of the "status" field value.

I've also tried an in line "change" button,

What is the correct syntax here?

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: NetWebBrowse - "Change" button condition
« Reply #1 on: August 26, 2014, 08:12:29 AM »
Rupert.
 It will have to be an inline button, the status of the change button is determined by the value in the first record in the browse (or maybe the last I can't remember which ) but anyway either the change button will be there for all records in the browse or hidden for all records in the browse if you use a change button on the bottom of the browse.
On the Form Tab\Show buttons\change File:Status = 'R' should work.
Any records having this value should have an inline change button any other value will hide the button
In one of my apps I have CLA:ImageExists = 0 AND p_web.GetSessionLevel() >=6
Which only displays a change button if an image exists and the logged in user level is >=6
This works so yours should as well
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186