<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Creazione form a seconda del type in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/creazione-form-a-seconda-del-type/m-p/20097#M9342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Se volessi&amp;nbsp; creare un&amp;nbsp; webscript che per ogni type&amp;nbsp; mi&amp;nbsp; ritorna un form,&amp;nbsp; questo form&amp;nbsp; avrà "tot" campi&amp;nbsp; per le "tot" properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Guardando le api&amp;nbsp; ho notato:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;/api/classes/{className}&lt;BR /&gt;/api/classes/{classname}/association/{assocname}&lt;BR /&gt;/api/classes/{classname}/associations&lt;BR /&gt;/api/classes/{classname}/properties&lt;BR /&gt;/api/classes/{classname}/property/{propname}&lt;BR /&gt;/api/classes/{classname}/subclasses&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;usando queste&amp;nbsp; api&amp;nbsp; posso&amp;nbsp; facilemente trovarmi tutte le properties e&amp;nbsp; crearmi&amp;nbsp; dinamicamente un form&amp;nbsp; con tutti i&amp;nbsp; campi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ho&amp;nbsp;&amp;nbsp; notato&amp;nbsp; che sono&amp;nbsp; presenti anche queste api : &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;GET /alfresco/service/api/forms/picker/{type}/children&lt;BR /&gt;etc etc&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Usando queste api e&amp;nbsp; quindi&amp;nbsp; sostituendo a {type}&amp;nbsp; il&amp;nbsp; tipo,&amp;nbsp; avro come risposta in JSON tutti i campi del form?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Il mio obiettivo è far si&amp;nbsp; che selezionando un TIPO&amp;nbsp; verrà visualizzato un form con i&amp;nbsp; campi&amp;nbsp; (quindi properties) del tipo di documento, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;grazie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Feb 2011 11:20:45 GMT</pubDate>
    <dc:creator>luanaa</dc:creator>
    <dc:date>2011-02-28T11:20:45Z</dc:date>
    <item>
      <title>Creazione form a seconda del type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creazione-form-a-seconda-del-type/m-p/20097#M9342</link>
      <description>Se volessi&amp;nbsp; creare un&amp;nbsp; webscript che per ogni type&amp;nbsp; mi&amp;nbsp; ritorna un form,&amp;nbsp; questo form&amp;nbsp; avrà "tot" campi&amp;nbsp; per le "tot" properties.Guardando le api&amp;nbsp; ho notato:/api/classes/{className}/api/classes/{classname}/association/{assocname}/api/classes/{classname}/associations/api/classes/{classname}/propertie</description>
      <pubDate>Mon, 28 Feb 2011 11:20:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creazione-form-a-seconda-del-type/m-p/20097#M9342</guid>
      <dc:creator>luanaa</dc:creator>
      <dc:date>2011-02-28T11:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creazione form a seconda del type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creazione-form-a-seconda-del-type/m-p/20098#M9343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Non mi sembra che queste funzionalità che hai elencato ti diano la lista dei metadati, ma direttamente le proprietà del nodo con il valore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Per questo tipo di implementazioni ti suggerisco di utilizzare il DicionaryService che è proprio il servizio predisposto a questo. Tramite questo servizio è possibile interrogare il modello di Alfresco per poter cercare dinamicamente i type con i relativi metadati definiti nel modello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;L'unico problema è che questo servizio non è esposto tramite la JavaScript API di Alfresco, che quindi dovrà essere esteso opportunamente per poter avere a disposizione nel motore JavaScript di Rhino anche un oggetto custom per il dictionaryService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Per fare questo ti suggerisco di dare un'occhiata a come sono stati sviluppati i servizi JavaScript esposti all'interno di Alfresco nel file script-services-context.xml e poi puoi leggere il dettaglio di come possono essere estesi in questa pagina del wiki:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.4_JavaScript_API#Adding_Custom_Script_APIs" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.4_JavaScript_API#Adding_Custom_Script_APIs&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spero ti sia di aiuto.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 14:35:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creazione-form-a-seconda-del-type/m-p/20098#M9343</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2011-04-04T14:35:46Z</dc:date>
    </item>
  </channel>
</rss>

