04-15-2013 07:34 AM
04-15-2013 09:08 AM
04-15-2013 10:28 AM
04-16-2013 01:22 AM
04-16-2013 03:39 AM
09-15-2013 05:10 PM
function updateElement(nodeRef)
{
Alfresco.util.PopupManager.displayForm(
{
title: "My Title",
properties:
{
mode: "edit",
itemKind: "node",
itemId: nodeRef
},
success:
{
fn: function()
{
// do something if successful
},
scope: this
},
successMessage: "Update of node " + nodeRef + " was successful.",
failure:
{
fn: function()
{
// do something if failure
},
scope: this
},
failureMessage: "Update of node " + nodeRef + " failed."
});
}
updateElement("workspace://SpacesStore/0ee0f1b7-fc33-4367-bf85-7fb014bcbae2");
09-15-2013 06:46 PM
// Prepare variable for destination (a container or folder)
var destination = "workspace://SpacesStore/b9acc49b-8772-48b1-be23-f0198c32b4a0";
// Get instance of the file uploader
var fileUpload = Alfresco.getFileUploadInstance();
// Prepare filters
var description = ["JPEG file", "JPEG file", "PNG file", "GIF file"];
var extensions = ["*.jpeg", "*.jpg", "*.png", "*.gif"];
// Prepare config object for File Uploader (image/file picker)
var fileUploadConfig = {
mode: fileUpload.MODE_MULTI_UPLOAD,
destination: destination,
overwrite: true,
filter: [
{description: description[0], extensions: extensions[0]},
{description: description[1], extensions: extensions[1]},
{description: description[2], extensions: extensions[2]},
{description: description[3], extensions: extensions[3]}
]
};
// Call File Uploader dialog
fileUpload.show(fileUploadConfig);
01-25-2015 09:13 PM
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.