The CreatorCon Call for Content is officially open! Get started here.

Trying to Disable execute Button While Async Job Runs

praveen kummar
Tera Contributor

We would like to be able to disable the 'Execute Now' button for a Certification Schedule while the invoked async job runs.

The UI Action is inherited from the sysauto table. T however, the button is hidden for ALL schedules and the value never gets reset by the script, so the button never comes back.

Condition: !current.isNewRecord() && !current.getED().getBooleanAttribute("disable_execute_now") && !(current.getTableName() != 'cert_schedule')

Script:

current.update();

SncTriggerSynchronizer.executeNow(current);

0 REPLIES 0