NetTalk Central

Author Topic: Conditionally Hide Insert Button on Browse  (Read 2910 times)

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
Conditionally Hide Insert Button on Browse
« on: September 14, 2023, 02:25:58 AM »
Hi,

I have a browse with the Insert Button below the browse.

I want to Hide the Insert button with code like this:

IF p_web.GSV('HideTheInsertButton') = 'YES'
    !Hide - What code should I put in here?
ELSE
    !UnHide - What code should I put in here?
END

Could someone please help with the code to Hide and Unhide the Insert Button.

Regards
Johan de Klerk
C10, NT 11.57
Clarion 10, NT 11.57

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Conditionally Hide Insert Button on Browse
« Reply #1 on: September 14, 2023, 02:52:14 AM »
I would do it as a CSS setting for the browse column.
In other words - setting the css something like this;

Choose(p_web.GSV('HideTheInsertButton') = 'YES',' nt-hide','')

Cheers
Bruce

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
Re: Conditionally Hide Insert Button on Browse
« Reply #2 on: September 14, 2023, 03:35:23 AM »
Hi Bruce,

Thanks for the quick reply.

However this is not a inline insert button.

The Insert Button is Below the Browse.

Regards
Johan de Klerk
Clarion 10, NT 11.57

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Conditionally Hide Insert Button on Browse
« Reply #3 on: September 14, 2023, 04:26:36 AM »
Then use the template option...
Adding p_web.GSV('HideTheInsertButton') = 'YES' in the Insert Button Condition field.
-----------
Regards
Alberto