As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<config evaluator="string-compare" condition="DocumentLibrary"> <file-upload> <adobe-flash-enabled>true</adobe-flash-enabled> <in-memory-limit>262144000</in-memory-limit> </file-upload> </config>
<form id="${el}-htmlupload-form" method="post" enctype="multipart/form-data" accept-charset="utf-8" action="${url.context}/proxy/alfresco/api/upload.html" name="form1"> <div id="${el}-metadataSection-div"> <div class="yui-gd"> <div class="yui-u first"> <label for="${el}-desc">Description</label> </div> <div class="yui-u"> <input type="text" id="${el}-desc" name="desc" tabindex="1" /> </div> </div> </div> </form>
var description = ""; var desc = args.desc; /** * Create a new file. */ var newFile = destNode.createFile(filename); newFile.properties.description = descricao; if (contentType !== null) { newFile.specializeType(contentType); } newFile.properties.content.write(content, false, true); newFile.save();
<div class="yui-gd"> <div class="yui-u first"> <label for="${el}-tparty">Third parties</label> </div> <div class="yui-u"> <input type="text" id="${el}-tparty" name="tparty" tabindex="0" /> </div> </div>
var tparty = args["tparty"]; //line 50 approx … case "tparty": // line 124 tparty = field.value; break; … //after aspect check line 380 approx newFile.properties.thirdParties = tparty; newFile.properties.content.write(content, false, true); newFile.save();
<?xml version="1.0" encoding="UTF-8"?> <!– Custom Model –> <!– Note: This model is pre-configured to load at startup of the Repository. So, all custom –> <!– types and aspects added here will automatically be registered –> <model name="sp:domainmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <!– Optional meta-data about the model –> <description>domain Custom Model</description> <author></author> <version>1.0</version> <imports> <!– Import Alfresco Dictionary Definitions –> <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" /> <!– Import Alfresco Content Domain Model Definitions –> <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" /> </imports> <namespaces> <!– Define a Namespace for my new definitions –> <namespace uri="sp.new.model" prefix="sp" /> </namespaces> <constraints> <constraint name="sp:location" type="LIST"> <parameter name="allowedValues"> <list> <value></value> <value>UK</value> <value>USA</value> </list> </parameter> </constraint> </constraints> <!– Type and Aspect definitions go here –> <types> <type name="sp:contract"> <title>domain Contract Document</title> <parent>cm:content</parent> <!– <properties> <property name="sp:thirdParties"> <title>Third Parties</title> <type>d:text</type> </property> <property name="sp:responsibleEmp"> <title>Resposible Employee</title> <type>d:text</type> </property> <property name="sp:effectiveDate"> <title>Effective Date</title> <type>d:date</type> </property> <property name="sp:expiryDate"> <title>Expiry Date</title> <type>d:date</type> </property> </properties> –> </type> <type name="sp:finance"> <title>domain Finance Document</title> <parent>sp:contract</parent> </type> <type name="sp:annualreturn"> <title>domain Annual Return Document</title> <parent>sp:finance</parent> </type> <type name="sp:bonds"> <title>domain Bonds and Garantees Document</title> <parent>sp:finance</parent> </type> <type name="sp:invoice"> <title>domain Invoice</title> <parent>sp:finance</parent> </type> </types> <aspects> <aspect name="sp:contractFields"> <title>Contract Meta Data</title> <properties> <property name="sp:thirdParties"> <title>Third Parties</title> <type>d:text</type> <index enabled="true"> <atomic>true</atomic> <stored>true</stored> <tokenised>true</tokenised> </index> </property> <property name="sp:location"> <title>Location</title> <type>d:text</type> <index enabled="true"> <atomic>true</atomic> <stored>true</stored> <tokenised>true</tokenised> </index> <constraints> <constraint ref="sp:location" /> </constraints> </property> <property name="sp:responsibleEmp"> <title>Responsible domain Employee</title> <type>d:text</type> <index enabled="true"> <atomic>true</atomic> <stored>true</stored> <tokenised>true</tokenised> </index> </property> <property name="sp:contractRef"> <title>Internal Reference</title> <type>d:text</type> <index enabled="true"> <atomic>true</atomic> <stored>true</stored> <tokenised>true</tokenised> </index> </property> <property name="sp:logNumber"> <title>Log Number</title> <type>d:text</type> <index enabled="true"> <atomic>true</atomic> <stored>true</stored> <tokenised>true</tokenised> </index> </property> <property name="sp:effectiveDate"> <title>Effective Date</title> <type>d:date</type> <index enabled="true"> <atomic>true</atomic> <stored>true</stored> <tokenised>true</tokenised> </index> </property> <property name="sp:expiryDate"> <title>Expiry Date</title> <type>d:date</type> <index enabled="true"> <atomic>true</atomic> <stored>true</stored> <tokenised>true</tokenised> </index> </property> </properties> </aspect> <aspect name="sp:financeFields"> <title>Finance Meta Data</title> <properties> <property name="sp:value"> <title>Value</title> <type>d:text</type> <index enabled="true"> <atomic>true</atomic> <stored>true</stored> <tokenised>true</tokenised> </index> </property> </properties> </aspect> <aspect name="sp:annualreturnFields"> <title>Annual Return Meta Data</title> <properties> </properties> </aspect> <aspect name="sp:bondsFields"> <title>Bonds Meta Data</title> <properties> <property name="sp:refNo"> <title>Reference Number (optional)</title> <type>d:text</type> <index enabled="true"> <atomic>true</atomic> <stored>true</stored> <tokenised>true</tokenised> </index> </property> </properties> </aspect> <aspect name="sp:invoiceFields"> <title>Invoice Meta Data</title> <properties> <property name="sp:invoiceNo"> <title>Invoice Number</title> <type>d:text</type> <index enabled="true"> <atomic>true</atomic> <stored>true</stored> <tokenised>true</tokenised> </index> </property> </properties> </aspect> </aspects> </model>
var tparty = args["sp:thirdParties"];