<?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 layouts (forms) in popup windows in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/layouts-forms-in-popup-windows/m-p/327406#M14407</link>
    <description>&lt;P&gt;I have found different examples of using forms in popup windows in nuxeo, ie.: agenda gadget, social collaboration gadget.
Is it possible and how could it be viewed layouts in popup windows ?&lt;/P&gt;</description>
    <pubDate>Sat, 27 Dec 2014 19:51:40 GMT</pubDate>
    <dc:creator>adam_bo_</dc:creator>
    <dc:date>2014-12-27T19:51:40Z</dc:date>
    <item>
      <title>layouts (forms) in popup windows</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/layouts-forms-in-popup-windows/m-p/327406#M14407</link>
      <description>&lt;P&gt;I have found different examples of using forms in popup windows in nuxeo, ie.: agenda gadget, social collaboration gadget.
Is it possible and how could it be viewed layouts in popup windows ?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Dec 2014 19:51:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/layouts-forms-in-popup-windows/m-p/327406#M14407</guid>
      <dc:creator>adam_bo_</dc:creator>
      <dc:date>2014-12-27T19:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: layouts (forms) in popup windows</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/layouts-forms-in-popup-windows/m-p/327407#M14408</link>
      <description>&lt;P&gt;Partially I have solved the problem.&lt;/P&gt;
&lt;P&gt;It was done by defining views in a type of document:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;default-view&amp;gt;view_myview&amp;lt;/default-view&amp;gt;
  &amp;lt;create-view&amp;gt;create_myview&amp;lt;/create-view&amp;gt;
  &amp;lt;edit-view&amp;gt;edit_myview&amp;lt;/edit-view&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It also needs to define navigation cases:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;navigation-case&amp;gt;
  &amp;lt;from-outcome&amp;gt;view_myview&amp;lt;/from-outcome&amp;gt;
  &amp;lt;to-view-id&amp;gt;/view_myview.xhtml&amp;lt;/to-view-id&amp;gt;
  &amp;lt;redirect /&amp;gt;
&amp;lt;/navigation-case&amp;gt;
&amp;lt;navigation-case&amp;gt;
  &amp;lt;from-outcome&amp;gt;create_myview&amp;lt;/from-outcome&amp;gt;
  &amp;lt;to-view-id&amp;gt;/create_myview.xhtml&amp;lt;/to-view-id&amp;gt;
  &amp;lt;redirect /&amp;gt;
&amp;lt;/navigation-case&amp;gt;
&amp;lt;navigation-case&amp;gt;
  &amp;lt;from-outcome&amp;gt;edit_myview&amp;lt;/from-outcome&amp;gt;
  &amp;lt;to-view-id&amp;gt;/edit_myview.xhtml&amp;lt;/to-view-id&amp;gt;
  &amp;lt;redirect /&amp;gt;
&amp;lt;/navigation-case&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and applications:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;view id="/create_myview.xhtml"&amp;gt;
    &amp;lt;theme&amp;gt;galaxy/popup&amp;lt;/theme&amp;gt;
  &amp;lt;/view&amp;gt;
  &amp;lt;view id="/edit_myview.xhtml"&amp;gt;
    &amp;lt;theme&amp;gt;galaxy/popup&amp;lt;/theme&amp;gt;
  &amp;lt;/view&amp;gt;
  &amp;lt;view id="/view_myview.xhtml"&amp;gt;
    &amp;lt;theme&amp;gt;galaxy/popup&amp;lt;/theme&amp;gt;
  &amp;lt;/view&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then the javascript function showFancyBox() works very well for showing and editing the document.&lt;/P&gt;
&lt;P&gt;There is also nice functionality for deleting a document by using Seam.Component.getInstance('popupHelper').deleteDocument(mydoc.id,cbfunc);&lt;/P&gt;
&lt;P&gt;But I still don't solve how a new document should be created by using a popup window.&lt;/P&gt;
&lt;P&gt;It needs to inject or set &lt;EM&gt;changeableDocument&lt;/EM&gt;. In actions and commandlinks there is used &lt;EM&gt;documentActions.createDocument&lt;/EM&gt;, but how it should be implemented in javascript ?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jan 2015 11:31:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/layouts-forms-in-popup-windows/m-p/327407#M14408</guid>
      <dc:creator>adam_bo_</dc:creator>
      <dc:date>2015-01-01T11:31:02Z</dc:date>
    </item>
  </channel>
</rss>

