vendredi 9 janvier 2015

How can I auto-populate field in add item Document Library?



I'm developing a SharePoint 2010 Foundation Farm Solution. I've created a Document Library (Attachments) with 3 custom field (A,B,C).


I open a pop-up like image below with this code:



function openDialog() {
var options = SP.UI.$create_DialogOptions();
options.resizable = 1;
options.scroll = 1;
options.url = "http://site/Lists/MyList/Forms/Upload.aspx";
options.dialogReturnValueCallback = Function.createDelegate(null, function () { });
SP.UI.ModalDialog.showModalDialog(options);
}


Upload attachment pop-up


After upload I would pass value parameter (Can I perform this by JavaScript?) and disable modify feature.


Meta-data of attachment


How can I develop this feature?


Thanks for your support.








0 commentaires:

Enregistrer un commentaire