Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Save Participant for popup window on cancel work Item using server extensions.

Hi All.

 Till now I have seen in  SaveworkItem partcipant (at server side) we can valiadate the input data and show error message or update some other value depending on current save operation.

 Is there  way I can show popup message/window to proceed save operation or not when work item is canceled/rejected/invalidated.

 Thanks,

Kavita

0 votes

Comments

No.. popup windows are not supported. you can check and reject the save (advisor), or you can check and fix the data and save again (participant).

you can also use the script vaildators (field by field advisor). but they only put up the same errors.

you would have to write a java extension.
https://jazz.net/library/article/1000



One answer

Permanent link
 Hello,
so I guess that what you need is to add some validation.
You may want to use validators:

More on validators: https://jazz.net/library/article/1003/#validators

Hope it helps,
Eric

0 votes

Comments

Hl All,

 I have worked on preconditions and follow up conditions. as per my knowledge we can not show pop up window and button in window  with "Yes" or "No" to proceed Save operation.

 And I feel the script vaildators  is only on attribute. So my above requrement can be accoplished by Script validator?

Thanks,

Kavita

 Hello Kavita,

I guess we need more details about what is behind "validate the input data".
Do you mean to validate certain attributes values?

javascript validators return true or false.  the system has defined behavior for handling either those two responses.

I don't know the runtime internals of the web UI and dojo enough, but 'maybe' you could extend the internals of the validator to use dojo to put up some interactive  message? but the UI would be 'hung' at that point waiting for the validator to return.  this will not work on the Eclipse UI.

 Hi Eric,

 My requirement is Whenever work ticket is cacelled  want to show pop up window ( with "Yes" and "No" buttons) to make confermation.  If Yes button is pressed Should  perform save operation otherwise should not save work ticket.

Thanks,

Kavita

Hello Kavita,

as Sam underlined, js validators will flag your attributes values as "in error".
If you need to display a message in a pop-up window, you need to extend the UI.

Eric

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Jun 25 '14, 8:09 a.m.

Question was seen: 4,888 times

Last updated: Jun 30 '14, 7:13 a.m.

Confirmation Cancel Confirm