Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » How to remove cancel button to stop transaction
How to remove cancel button to stop transaction [message #1872728] Sat, 16 November 2024 08:44 Go to next message
Eclipse UserFriend
Hello,

I would like to know if it is possible to remove the "Cancel" button in specific scenarios. I have some critical actions where I do not want the user to be able to cancel the task once it has started. However, I'd like to avoid removing this button globally, as there are certain transactions where it is beneficial for the user to have the option to cancel.

Here is a screenshot for reference:

https://i.imgur.com/p1jUcIO.png

Additionally, could you let me know the best way to reach you once the Eclipse forum is no longer available?
Re: How to remove cancel button to stop transaction [message #1872785 is a reply to message #1872728] Tue, 19 November 2024 08:18 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I don't think you can remove the cancel button easily. But you can extract your code that must not be cancellable into a separate model job and mark it as not cancellable by setting the execution hint ModelJobs.EXECUTION_HINT_NOT_CANCELLABLE_BY_USER on the JobInput.

Regarding your second question: you can ask Scout related questions on Stackoverflow. Maybe we will also enable the GitHub Discussions on our GitHub page, but we are not sure about that yet.
Re: How to remove cancel button to stop transaction [message #1873040 is a reply to message #1872785] Tue, 03 December 2024 18:21 Go to previous messageGo to next message
Eclipse UserFriend
Thank you for the answer, the model job seems to solve my problem. Also I have another question, is it possible to test css/js modifications without having the pain to rebuild the entire project with mvn clean verify? (I am using scout classic). do you have any hints so it less painfull?
Re: How to remove cancel button to stop transaction [message #1873070 is a reply to message #1873040] Thu, 05 December 2024 06:42 Go to previous message
Eclipse UserFriend
You don't have to run maven to build JS/CSS code. The recommended way is to run a file watcher with npm. The code is then automatically built whenever a file is saved and you just have to reload the page in your browser. The details are explained here: https://eclipsescout.github.io/scout-docs/24.2/technical-guide/user-interface/build-stack.html#command-line-interface-cli.

I would recommend to read the Hello World Guide. This will help you setup a Scout project with a file watcher.
Previous Topic:How to clear a chart and reset its data
Next Topic:Issue after update Eclipse 2024.12
Goto Forum:
  


Current Time: Mon Jun 23 09:38:14 EDT 2025

Powered by FUDForum. Page generated in 0.04125 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top