Hi,

Is it possible to have multiple xForms on one page when the objects to be 
edited are not on the same page.


We have a object of class "child" and a object of Class "parent"; each object 
is stored on it's own page.


But users would like to be able to modify the object of class "header" while 
they are editing the object of class


In my headerClass sheet I have...

{{velocity}}

## You can modify this page to customize the presentation of your object.

## At first you should keep the default presentation and just save the document.

#if(!$headerDoc)

  #set($headerDoc = $xwiki.getDocument("Sandbox.testHeader"))

#end

#set($classHeader = $headerDoc.getObject('Sandbox.classHeader').xWikiClass)

#foreach($prop in $classHeader.properties)

  ; $prop.prettyName

  : $headerDoc.display($prop.getName())

#end

{{/velocity}}


In my childClass sheet I have:

{{velocity}}

#set($headerDoc = $xwiki.getDocument("Sandbox.testHeader") )

{{display reference="$headerDoc"/}}


## You can modify this page to customize the presentation of your object.

## At first you should keep the default presentation and just save the document.


#set($class = $doc.getObject('Sandbox.classChild').xWikiClass)

#foreach($prop in $class.properties)

  ; $prop.prettyName

  : $doc.display($prop.getName())

#end

{{/velocity}}


When I create or edit the page holding the childClass object I do get the 
impression I can Edit the header object, but when I save only the properties of 
the child object are saved?


Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerrit...@cdlsworld.org>



Reply via email to