[ANN] Export plugin 0.6 released

View: New views
3 Messages — Rating Filter:   Alert me  

[ANN] Export plugin 0.6 released

by Andreas Schmitt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Export plugin 0.6 has been released. This plugin allows you to export
domain objects to CSV, Excel, ODS (Open Document Spreadsheet), RTF,
PDF and XML and can be extended to support additional formats.

Version 0.6 adds better support for inherited domain class attributes.

Thank you for reporting bugs or suggesting improvements.

For further information check out http://www.grails.org/plugin/export

I had some issues releasing the plugin with Grails 1.1.1. If you need
a version for 1.1.1 you can download one here
http://plugins.grails.org/grails-export/trunk/grails-export-0.6.zip

Regards,
Andreas

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: [ANN] Export plugin 0.6 released

by Jonathan Andrew Ong :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Andreas,

I'm looking at the export plugin page, but I'm not sure I understand  
what you mean by better support for inherited domain classes. Could  
you elaborate? Basically I'm looking/waiting for the feature that will  
print the toString() value of associated properties. Is this the new  
feature in 0.6?

Regards,
Jonathan
On Nov 8, 2009, at 3:54 AM, Andreas Schmitt wrote:

> Hi,
>
> Export plugin 0.6 has been released. This plugin allows you to export
> domain objects to CSV, Excel, ODS (Open Document Spreadsheet), RTF,
> PDF and XML and can be extended to support additional formats.
>
> Version 0.6 adds better support for inherited domain class attributes.
>
> Thank you for reporting bugs or suggesting improvements.
>
> For further information check out http://www.grails.org/plugin/export
>
> I had some issues releasing the plugin with Grails 1.1.1. If you need
> a version for 1.1.1 you can download one here
> http://plugins.grails.org/grails-export/trunk/grails-export-0.6.zip
>
> Regards,
> Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: [ANN] Export plugin 0.6 released

by Andreas Schmitt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jonathan,

better support for inherited domain class attributes means that if you
are using the export method of the exportService without specifying
fields, inherited attributes will be exported as well. The feature
that associated properties are exported using their toString() method,
should have already been available in one of the last releases. Let me
check that we talk about the same functionality.

class Song {
    static hasMany = [tags: Tag]

    ....
}

class Tag {
    String name

    String toString {
        name
    }

  ...
}

Given those domain classes you would export Song objects and specify
"tags" as one of the fields that should be exported.
The output you would get would be something like "[Rock, Metal,
2001]". You could then pass a closure to format the result
e.g. get rid of the brackets and get "Rock, Metal, 2001". Is that the
feature you were talking about?

Regards,
Andreas

2009/11/8 Jonathan Andrew Ong <onats.ong@...>:

> Hi Andreas,
>
> I'm looking at the export plugin page, but I'm not sure I understand what
> you mean by better support for inherited domain classes. Could you
> elaborate? Basically I'm looking/waiting for the feature that will print the
> toString() value of associated properties. Is this the new feature in 0.6?
>
> Regards,
> Jonathan
> On Nov 8, 2009, at 3:54 AM, Andreas Schmitt wrote:
>
>> Hi,
>>
>> Export plugin 0.6 has been released. This plugin allows you to export
>> domain objects to CSV, Excel, ODS (Open Document Spreadsheet), RTF,
>> PDF and XML and can be extended to support additional formats.
>>
>> Version 0.6 adds better support for inherited domain class attributes.
>>
>> Thank you for reporting bugs or suggesting improvements.
>>
>> For further information check out http://www.grails.org/plugin/export
>>
>> I had some issues releasing the plugin with Grails 1.1.1. If you need
>> a version for 1.1.1 you can download one here
>> http://plugins.grails.org/grails-export/trunk/grails-export-0.6.zip
>>
>> Regards,
>> Andreas
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>   http://xircles.codehaus.org/manage_email
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email