<?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 Re: XSD nested/linked selection list / combobox in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/xsd-nested-linked-selection-list-combobox/m-p/204334#M157464</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This would require a custom XForm widget (&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Creating_XForms_Widgets" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Creating_XForms_Widgets&lt;/A&gt;&lt;SPAN&gt;) that detects (or is notified of) changes in the parent dropdown, and recalculates the values to be displayed in the child dropdown (perhaps by calling a Web Script or some other external service - it depends how much data in total there is and whether it can be filtered solely in the browser).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because Web Forms are basically just DOJO forms (&lt;/SPAN&gt;&lt;A href="http://dojotoolkit.org/" rel="nofollow noopener noreferrer"&gt;http://dojotoolkit.org/&lt;/A&gt;&lt;SPAN&gt;), a good working knowledge of DOJO would be beneficial.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Jan 2009 05:37:25 GMT</pubDate>
    <dc:creator>pmonks</dc:creator>
    <dc:date>2009-01-03T05:37:25Z</dc:date>
    <item>
      <title>XSD nested/linked selection list / combobox</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xsd-nested-linked-selection-list-combobox/m-p/204333#M157463</link>
      <description>[size=150]this is what i want to achieve:[/size]2 (or more) combobox linked togheterexamples:section -&amp;gt; subsectioncategory -&amp;gt; subcategorystate -&amp;gt; citymenu1 -&amp;gt; menu2pratical example:state list: Italy, France, ….city list: Italy = { Rome, Milan, …. }, France = { Paris, …. }a single combobo</description>
      <pubDate>Thu, 04 Dec 2008 12:26:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xsd-nested-linked-selection-list-combobox/m-p/204333#M157463</guid>
      <dc:creator>d_segato</dc:creator>
      <dc:date>2008-12-04T12:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: XSD nested/linked selection list / combobox</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xsd-nested-linked-selection-list-combobox/m-p/204334#M157464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This would require a custom XForm widget (&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Creating_XForms_Widgets" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Creating_XForms_Widgets&lt;/A&gt;&lt;SPAN&gt;) that detects (or is notified of) changes in the parent dropdown, and recalculates the values to be displayed in the child dropdown (perhaps by calling a Web Script or some other external service - it depends how much data in total there is and whether it can be filtered solely in the browser).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because Web Forms are basically just DOJO forms (&lt;/SPAN&gt;&lt;A href="http://dojotoolkit.org/" rel="nofollow noopener noreferrer"&gt;http://dojotoolkit.org/&lt;/A&gt;&lt;SPAN&gt;), a good working knowledge of DOJO would be beneficial.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2009 05:37:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xsd-nested-linked-selection-list-combobox/m-p/204334#M157464</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2009-01-03T05:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: XSD nested/linked selection list / combobox</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xsd-nested-linked-selection-list-combobox/m-p/204335#M157465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi pmonks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for you reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've already thinked about this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But i was trying to find a way define it directly from the XSD&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's ok to me to create a new widget. But then what's the best way to "pass" the parent-child relationship and the datas(or where to find the datas) from the XSD to the widget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i can create 2 custom widget that are linked between togheter by a parent-child relationship but then i had to create new custom widgets (and reboot alfresco) for every new dropdown&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you advice a way to pass this informations from XSD to the Widget without defining them in the web-client-config-wcm.xml or inside the javascript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2009 12:13:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xsd-nested-linked-selection-list-combobox/m-p/204335#M157465</guid>
      <dc:creator>d_segato</dc:creator>
      <dc:date>2009-01-03T12:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: XSD nested/linked selection list / combobox</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xsd-nested-linked-selection-list-combobox/m-p/204336#M157466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you implemented anything or started working on your widget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to see what documentation sources you used to get to your solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There aren't any alfresco dependent widget examples out there at all (at least none that I've found yet). Any information you can provide will benefit everyone!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 06:31:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xsd-nested-linked-selection-list-combobox/m-p/204336#M157466</guid>
      <dc:creator>rsulliv1</dc:creator>
      <dc:date>2009-09-24T06:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: XSD nested/linked selection list / combobox</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xsd-nested-linked-selection-list-combobox/m-p/204337#M157467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We didn't go on with this because we changed the way things were done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The reply I can give you is: you must create a new custom widget and play with javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll need a way to "link" the parent and the child select box widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A way is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL style="list-style-type:decimal;"&gt;&lt;LI&gt;put 3 configuration options in your widget: parentWidgetId, widgetClassId, childClassId.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;when you build the widget through javascript assing the widgetClassId to it and use parent/child ones to "find" the other two.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;when a select box change it's value if it has a childId use it to notify the child&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;if you receive a notification use your parentId to get the parent value (or pass it with the previous notification, or whatever)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;update the options of your select box in any way you want. Ajax call, XSD values manipulations and so on…&lt;/LI&gt;&lt;/OL&gt;&lt;SPAN&gt;Good luck and if you manage to create a widget think about making it public.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I'll ever write a widget like that (in my spare time) I'll make it public and I'll say that here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck and regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Daniele&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 07:29:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xsd-nested-linked-selection-list-combobox/m-p/204337#M157467</guid>
      <dc:creator>d_segato</dc:creator>
      <dc:date>2009-09-24T07:29:40Z</dc:date>
    </item>
  </channel>
</rss>

