NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Johan de Klerk on September 14, 2021, 04:55:40 AM

Title: How to Enable and Disable CancelButton
Post by: Johan de Klerk on September 14, 2021, 04:55:40 AM
Hi Bruce,

I have made my NetWebForm ViewOnly on a certain condition.
This works perfect.

Only one problem.
The Cancel Button is also Disabled.

Is there a command I can use right at the end of the GenerateForm Routine to enable the CancelButton?

Something like:
IF loc:viewonly = 1
    Enable(CancelButton)
END

Regards
Johan de Klerk
Clarion10
NT11.53
Title: Re: How to Enable and Disable CancelButton
Post by: Bruce on September 15, 2021, 04:53:05 AM
If the form is in View-Only mode there should not be an Ok or Cancel button.
Just a Close button.

So perhaps post an example of what you are doing? Tweak one of the shipping examples to show the effect maybe?

cheers
Bruce