NetTalk Central

Author Topic: conditionally disable delete button  (Read 915 times)

ntnewbies

  • Full Member
  • ***
  • Posts: 169
    • View Profile
    • Email
conditionally disable delete button
« on: September 13, 2023, 11:17:58 PM »
hi,
i have a parent netbrowse and child netbrowse.
the change and delete button is inside the browse (default nettalk change and delete button)
i want to disable the delete button in parent browse if the child browse exist. Otherwise, enable.

whats the best way to do this?

regards,
Jason
nt12.62 c11

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11182
    • View Profile
Re: conditionally disable delete button
« Reply #1 on: September 14, 2023, 02:53:54 AM »
Make a function so you know if there are child records;

CountLineItems(InvoiceNumber)

Then, for the in-row Delete button set the CSS to

Choose(CountLineItems(In:InvoiceNumber),' nt-hide','')

Cheers
Bruce