NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: ntnewbies on September 13, 2023, 11:17:58 PM

Title: conditionally disable delete button
Post by: ntnewbies 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
Title: Re: conditionally disable delete button
Post by: Bruce 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