Archana Mettu wrote: > Hello developers, > > Thank you for responding to my previous query. > > Can you please explain the differences between the following two macros, > what advantages does includeInContext provide over the other? > > 1. includeForm() > 2. includeInContext() > They do the same thing except that using includeForm will trigger the Edit button at the top of the page to launch the "inline" mode (form mode) instead of the wiki editor.
> Having retrieved an object on a page, how can I update some fields of that > object and save? > Doc.save() saves the document changing its version.... but, doesn't update > the object-parameters. What am I missing? > > You can use $doc.getObject(classname) to retrieve an object and manipulate it's properties. Or you can use $doc.updateObjectFromRequest(classname) if you used the standard names for the properties (if you used $doc.display(fieldname, "edit")) Ludovic > Regards, > Archana Mettu. > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > > -- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

