Re: Export data from Lenya

Andreas Hartmann <[email protected]>
Newsgroups gmane.comp.cms.lenya.user
Message-ID <[email protected]>
Andrey Volkov schrieb:
> Could you describe in more details where I should define serializer and 
> how to redirect output from a usecase to it?

http://lenya.apache.org/docu20/reference/usecase-framework/usecase-framework-overview.html#N101BC

"If you don't want to display a form, but output arbitrary XML, text, an 
SVG-generated image or something like that, you can use a uri attribute 
instead of the template attribute."

In your case that would be a cocoon:// URI which calls a pipeline in 
your module that ends with the text serializer.

HTH,

-- Andreas


> 
> On Tue, Sep 8, 2009 at 1:26 PM, Thorsten Scherler 
> <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     On Tue, 2009-09-08 at 14:26 +0530, Anish wrote:
>      >
>      > > I need to export data from Lenya. For example, add 'Export' button
>      > > for 'Users' page to export list of all users in csv format.
>      > > What should I do? What configuration should I make to return
>      > > downloadable data instead of html page?
>      > Hi Andrey
>      >
>      > You can use text serialiser for that purpose. An XSLT will
>      > transforming response to CSV then serialise it to text.
>      >
> 
> 
>     Yeah, http://markmail.org/message/4ouboneplmtvcmtb tells you what to do
>     in the xsl.
> 
>     salu2
> 
> 
>      > Andrey Volkov wrote:
>      > > Hi All,
>      > >
>      > > I need to export data from Lenya. For example, add 'Export' button
>      > > for 'Users' page to export list of all users in csv format.
>      > > What should I do? What configuration should I make to return
>      > > downloadable data instead of html page?
>      > >
>      > > --
>      > > With best regards,
>      > > Andrey Volkov
>      >
>      >
>      > Thanks & regards
>      > --
>      > Anish Sneh
>      > Software Engineer
>      > Techblue Softwares Pvt. Ltd.
>      > www.technologyblueprint.co.uk <http://www.technologyblueprint.co.uk>
>      >
>      >
>     --
>     Thorsten Scherler <thorsten.at.apache.org
>     <http://thorsten.at.apache.org>>
>     Open Source Java <consulting, training and solutions>
> 
>     Sociedad Andaluza para el Desarrollo de la Sociedad
>     de la Información, S.A.U. (SADESI)
> 
> 
> 
> 
> 
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: [email protected]
>     <mailto:[email protected]>
>     For additional commands, e-mail: [email protected]
>     <mailto:[email protected]>
> 
> 
> 
> 
> -- 
> With best regards,
> Andrey Volkov


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.