It's all about the answers!

Ask a question

[closed] Disable Button "Check-in and Accept"


Stef Wolff (135) | asked Jun 19 '18, 5:52 a.m.
closed Jun 28 '18, 2:43 a.m. by Ralph Schoon (63.1k33646)

Good morning,

    How can I disable the button "Check-in and Accept" during the Accept Incoming Changes process

.

Regards

Stef Wolff

Rabobank Netherlands

The question has been closed for the following reason: "Duplicate Question" by rschoon Jun 28 '18, 2:43 a.m.

Accepted answer


permanent link
David Lafreniere (4.8k7) | answered Jun 19 '18, 2:37 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
edited Jun 19 '18, 2:40 p.m.
There is no way to disable buttons in any of the 'dilemma handler' dialogs that are presented to the users.

Out of curiosity, why do you want to disable the button?

Ralph Schoon selected this answer as the correct answer

Comments
Stef Wolff commented Jun 20 '18, 3:08 a.m.

We have written our own check-in, because we want to associate one change to a change set. So that's why we don't want to use the Check-in provided by the tool


Geoffrey Clemm commented Jun 28 '18, 1:06 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

If the user executes an Accept, and there are checkouts that would be overwritten by that Accept, do you want the dilemma handler to just give the user the two options: cancel the accept, or overwrite the checkout?   (and not give them the option of checking in the checkouts before executing the Accept)?   As David says, you cannot override the behavior of the dilemma handler, so just asking to make sure we understand the behavior you are looking for. 


Ralph Schoon commented Jun 28 '18, 2:44 a.m. | edited Jun 28 '18, 2:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Thanks Geoff, See duplicate question and answers here: https://jazz.net/forum/questions/253790/disable-check-in-rtc-client

They could use an advisor to prevent wrong data to be created in case of the wrong button being pressed.

https://rsjazz.wordpress.com/2014/03/24/hiding-ui-contributions-in-the-rtc-eclipse-client/ might be an option.