03-03-2015 06:32 AM
loadNodeRef: function Tasklist_loadNodeRef(taskId)
{
Alfresco.util.Ajax.request(
{
url: Alfresco.constants.PROXY_URI + "/getNodeRef?taskId="+taskId,
successCallback:
{
fn:function(response){
var docNodeRef= response.serverResponse.responseText;
alert("getting value==>"docNodeRef);
},
scope: this
},
failureMessage: this.msg("message.failure"),
scope: this,
execScripts: true
});
},
03-03-2015 07:01 AM
03-03-2015 07:59 AM
var originalNodeRef = this.loadNodeRef(taskId,this.getNodeRef());
alert("outside==>"+originalNodeRef);
loadNodeRef: function Tasklist_loadNodeRef(taskId,callback)
{
Alfresco.util.Ajax.request(
{
url: Alfresco.constants.PROXY_URI + "/getNodeRef?taskId="+taskId,
successCallback:
{
fn:function(response){
var docNodeRef= response.serverResponse.responseText;
var strReplace = docNodeRef.replace(/"/gi, "");
var node = "workspace" + strReplace .substring(strReplace .lastIndexOf(":"));
var originalNodeRef = node.replace("}","");
alert(originalNodeRef);
callback(originalNodeRef);
},
scope: this,
},
failureMessage: this.msg("message.failure"),
scope: this,
execScripts: true
});
},
getNodeRef:function Tasklist_getNodeRef(originalNodeRef) {
},
03-18-2015 11:18 AM
03-20-2015 01:27 PM
href = $siteURL('task-edit?taskId=' + taskId + '&nodeRef='+originalNodeRef+ '&referrer=tasks&myTasksLinkBack=true') + '" class="theme-color-1" title="' + this.msg("link.editTask");
03-19-2015 03:11 AM
…
successCallback : {
fn : function (res) {
var result = eval('(' + res.serverResponse.responseText + ')');
alert("getting value==>" + result.docNodeRef);
},
scope : this
}
…
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.