Requirement of message flash after task completion

Hi
We have a requirement wherein we need to display a specified completion message once user clicks on submit button to complete the task.In our case once user clicks on submit button he is directed to inbox and task gets completed but requirement is to flash a completion message.
Another issue is if access task using link of type as mentioned below user is directed to inbox on completion but if use TASK URL nothing happens on screen on clicking submit but task gets completed as specified in action.

/1EDAA099-89AA-5A0A-0005-21FED3AC0C38.task.app.details.page?wmp_tc=7816&wmp_rt=render&cancelUrl=%2fmeta%2fdefault%2fwm_xt_fabricfolder%2f0000004443%3fwmp_tc%3d7411%26wmp_rt%3drender%26wmp_tv%3d%252fTaskInboxSearchResults%252fview.view%26sh.wmp_ks%3dtrue&finishUrl=%2fmeta%2fdefault%2fwm_xt_fabricfolder%2f0000004443%3fwmp_tc%3d7411%26wmp_rt%3daction%26wmp_ta%3drefreshTaskSearchProvider%26wmp_tv%3d%252fTaskInboxSearchResults%252fview.view%26sh.wmp_ks%3dtrue&taskID=

Regards
Anuj

This is pretty much what a generated Task Start portlet does. When you click the submit button, there is a generated onclick javascript:

CAF.model("#{NewTaskStartDefaultviewView.clientIds["statusDialog"]}").show()

So i would recommend generating a scratch Task Project with a Task Start portlet and having a look at the technique to see if you can adapt it to fit your use case.

Regards,
–mark

Hi Mark,

As mentioned by you i have added the javascript and it is working fine. But my problem is, this flash pops on the screen and within a second it goes off.
I have added a button “okay” and want that, till the time i do not click on the “okay” button the flash should remain on the screen. I have tried adding different actions and clent side events but nothing works.

Regards
Chhavi

This is because the async command button is invoking the actual command, and then afterwards redirecting to another page. It sounds like instead you should have the ok button of the popup dialog do that.

Regards,
–mark