<import resource="/Company Home/Data Dictionary/Scripts/library.js">
(function()
{
/**
* YUI Library aliases
*/
var Dom = YAHOO.util.Dom,
Event = YAHOO.util.Event,
Element = YAHOO.util.Element;
var varsorting = "desc";
//**************************************************************************************
//righe aggiunte
var username = Alfresco.costants.USERNAME
model.user = people.getPerson(Alfresco.costants.USERNAME);
//var test = people.getPerson(Alfresco.costants.USERNAME);
//ERRORE: ReferenceError: people is not defined
//model.scriptUser = groups.getUser(username);
//var test = groups.getUser(username);
//ERRORE: ReferenceError: groups is not defined
//**************************************************************************************
Event.onAvailable("facture-list", function(){
var pesona = new people.getPerson(Alfresco.constants.USERNAME)
// datatable object
var source = new YAHOO.util.XHRDataSource(Alfresco.constants.PROXY_URI_RELATIVE+"gest/fat/fatture/list?site="+Alfresco.constants.SITE);
source.responseType = YAHOO.util.XHRDataSource.TYPE_JSON;
source.responseSchema = {
resultsList : "results",
fields : [
{ key: "noderef" },
{ key: "facture" },
{ key: "date" },
{ key: "owner" },
{ key: "status" },
{ key: "subject" },
{ key: "classification" },
{ key: "document" },
{ key: "note" }
],
metaFields: {
totalRecords : "total",
startIndex: "startIndex"
}
};
….
<bean id="peopleScript" class="org.alfresco.repo.jscript.People">
<propery name="extensionName">
<value>people</value>
</property>
</bean>
Archive content from product discussions in Italian.
This group is now closed and content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.