Comentarios (5)

1 sasia ha hecho un comentario el Enlace permanente

Hi Dave, <div>&nbsp;</div> the above code snippet is not working with IBM Case manager 5.2.Do we need to make any changes to make it work for ICM 5.2? <br /> Not able to retrieve var caseID = payload.caseFolderId; eventhough F_CaseFolder is exposed in that respective queue. <br /> The caseID is always returned as "undefined" <br /> Appreciate your help on this.

2 Dave Perman ha hecho un comentario el Enlace permanente

Hello. This sample is based on the previous Case Client version that used Business Space as its UI container. <div>&nbsp;</div> The Case Client in ICM 5.2 now uses the IBM Content Navigator framework as its underlying UI container and a such, many things have changed (for the better). <div>&nbsp;</div> This sample needs to be updated for 5.2. <div>&nbsp;</div> As a tip, look for the tag "5.2" for the ones that have been updated.

3 sasia ha hecho un comentario el Enlace permanente

Hi Dave, <div>&nbsp;</div> Thanks for your reply. <br /> With ICM 5.2 i had done the below changes for the above snippet which is failing to update case comments,there is no exception i can track,but "Complete Case" button is getting disabled after entering response comments in window and click OK . <div>&nbsp;</div> console.debug(payload); <br /> var coord = payload.coordination; <br /> var workitemEdt = payload.workItemEditable; <br /> var propCollection = workitemEdt.propertiesCollection; <br /> var caseId=workitemEdt.icmWorkItem.caseFolderId; <br /> var objectStoreName=ecm.model.desktop.objectStore.displayName; <br /> caseId = caseId.substr(1,caseId.length-2); <div>&nbsp;</div> <div>&nbsp;</div> require(["icm/base/Constants","icm/model/_DesktopMixin"], function(Constants){ <br /> console.log("USER LOGIN: ", window.ecm.model.desktop.userId); <div>&nbsp;</div> if(coord){ <br /> /*Participate the before complete coordination step*/ <br /> coord.participate(Constants.CoordTopic.BEFORECOMPLETE, function(context, complete, abort){ <div>&nbsp;</div> <div>&nbsp;</div> if (context[Constants.CoordContext.WKITEMRESPONSE] != "Complete Case") <br /> { <br /> return payload; <br /> } <br /> else if (note = prompt("Please enter a reason for this response:")) <br /> { <br /> var serverBase = window.location.protocol + "\/\/" + window.location.host; <br /> var feedURL = this.iContext.io.rewriteURI(serverBase + "/CaseManager/CASEREST/v1/case/" + caseId+ "/comments?TargetObjectStore="+objectStoreName+ "&amp;CommentType=case"); <div>&nbsp;</div> var comment= {"CommentType":"Case","CommentContext":102,"CommentText": note}; <br /> var xhrArgs = { <br /> url: feedURL, <br /> postData: dojo.toJson(comment), <br /> handleAs: "json", <br /> headers: { "Content-Type": "application/json"}, <br /> load: function(data){ <br /> } , <div>&nbsp;</div> error: function(error) <br /> { <br /> alert ("Oops..." + error); <br /> } <div>&nbsp;</div> }; <br /> dojo.xhrPost(xhrArgs); <br /> } <br /> complete(); <div>&nbsp;</div> <div>&nbsp;</div> }); <br /> } <br /> });

4 Dave Perman ha hecho un comentario el Enlace permanente

As you can see, this comments area is not great for this type of discussion. Perhaps the Forum is a better spot. The disabled button is usually an indication that one of the participants in the coordination failed to finish up. This is usually caused by a script error in the registered code. <div>&nbsp;</div> There is an ICM 5.2 example of the new page coordination feature here <div>&nbsp;</div> https://www.ibm.com/developerworks/community/blogs/e8206aad-10e2-4c49-b00c-fee572815374/entry/how_to_perform_data_validation_in_icm_5_2_that_is_based_on_which_step_response_is_selected?lang=en

5 sasia ha hecho un comentario el Enlace permanente

I was able to complete successfully(adding case comments as required field with chosen response in ICM 5.2),posting below if some body need it. <br /> ICM 5.2 marking case comments as required for completing a step response <br /> *************************************************** <br /> Use above code snippet and replace the "feedURL" with below line <div>&nbsp;</div> var feedURL = (serverBase + "/CaseManager/CASEREST/v1/case/" + caseId+ "/comments?TargetObjectStore="+objectStoreName+ "&amp;CommentType=case"); <br /> ****************************************************

Añadir un comentario Añadir un comentario