Ability to export data from InfoWindow

Description

Hello,

A missing feature is ability to export data from info windows.
Current patch (draft) adds a button which generate an excel file.

ATM, it only exports current page (means max 100 records if more than one page).

Any test/help/hint would be useful

Thanks,

Regards,

Nicolas

Environment

None

Attachments

2

Activity

Show:

Nicolas Micoud January 23, 2019 at 8:25 AM

Carlos Ruiz November 15, 2017 at 8:13 AM

Hi ,

Idea is really good, I think that's a big add-on to Info Windows, my suggestions:

  • the export button must be shown just if the role has permission to export

  • it must not export the ID column

  • I think we must follow the same approach that we have in windows, implementing some interface called IInfoWindowExporter - similar to IGridTabExporter, but instead of receiving a GridTab as parameter I guess we would need to pass maybe the InfoWindow object (to have accesss to the query, columns, etc)

  • about your patch when I tried product info window with warehouse and without price list it threw an error:
    java.lang.IndexOutOfBoundsException: Index: 12, Size: 12

Regards,

Carlos Ruiz

Nicolas Micoud October 13, 2017 at 12:57 PM
Edited

Hi,
Here's an updated patch using advices.

The code can be improved and the new button should be managed like others (using a protected method in InfoPanel).
Also, i have no idea what will happen if a user exports thousands of rows :-/ Perhaps a limit should be implemented.

If you try it, you'll see the first column (which display ID and IsSelected Y/N) is not necessary, but I can't find a nice way to remove it.
But perhaps it can be useful to keep ID ?

Thanks,

Nicolas

Hiep Lq October 11, 2017 at 11:44 AM

you can reuse function InfoWindow.readData

Nicolas Micoud October 10, 2017 at 10:31 AM

That means i would have to generate a print format for each execution ? (to get good columns translations)

Duplicate

Details

Assignee

Reporter

Labels

Priority

Created October 10, 2017 at 9:03 AM
Updated March 1, 2019 at 11:44 AM
Resolved January 23, 2019 at 9:28 AM