05-04-2011 10:34 AM
05-04-2011 10:51 AM
remote.call("/api/metadata?nodeRef=" + nodeRef)
That will return a JSON structure with the node's properties.05-05-2011 05:52 AM
remote.call("/api/metadata?nodeRef=" + nodeRef)
in the task-lits-min.js. But I am getting "remote is not defined" error.05-05-2011 06:37 AM
05-05-2011 11:00 AM
05-06-2011 08:38 AM
Alfresco.util.Ajax.jsonGet(
{
url: Alfresco.constants.PROXY_URI_RELATIVE + "api/metadata?nodeRef=" + nodeRefContext ,
successCallback:
{
fn: function(response)
{
if (response.json)
{
var json=response.json;
json.getData("properties")["{http://www.alfresco.org/model/content/1.0}title"];
}
},
scope: this
},
failureCallback:
{
fn: function(response)
{
Alfresco.util.PopupManager.displayPrompt(
{
failureMessage: this.msg("message.failure")
});
},
scope: this
}
});
Also how do I return the results of a ajax request?05-06-2011 08:57 AM
response.json.properties["{http://www.alfresco.org/model/content/1.0}title"]
If you prefer you can add &shortQNames=true to the URL so then you could get the title fromresponse.json.properties["cm:title"]
05-06-2011 09:36 AM
var title;
Alfresco.util.Ajax.jsonGet(
{
url: Alfresco.constants.PROXY_URI_RELATIVE + "api/metadata?nodeRef=" + nodeRefContext + "&shortQNames=true" ,
successCallback:
{
fn: function(response)
{
if (response.json)
{
title=response.json.properties["cm:title"];
console.log(title);
}
},
scope: this
},
failureCallback:
{
fn: function(response)
{
Alfresco.util.PopupManager.displayPrompt(
{
failureMessage: this.msg("message.failure")
});
},
scope: this
}
});
console.log("title "+this.title);
05-09-2011 07:38 AM
05-12-2011 07:51 AM
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.