08-18-2013 04:35 AM
<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>
08-20-2013 04:59 AM
08-21-2013 04:04 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.