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 |
One answer
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
Comments
kavita herur
commented Jun 26 '14, 2:17 a.m.
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?
sam detweiler
commented Jun 26 '14, 7:40 a.m.
javascript validators return true or false. the system has defined behavior for handling either those two responses.
kavita herur
commented Jun 30 '14, 6:49 a.m.
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
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.
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