Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

frontend: export view to excel #1197

Closed
teosarca opened this issue Sep 13, 2017 · 5 comments
Closed

frontend: export view to excel #1197

teosarca opened this issue Sep 13, 2017 · 5 comments

Comments

@teosarca
Copy link
Member

teosarca commented Sep 13, 2017

Type of issue

Feature request

Expected behavior

  • open any grid view, e.g. sales orders - https://w101.metasfresh.com:8443/window/143
  • Menu -> Download selected (this is a new menu item that shall be introduced). When clicked, the /rest/api/documentView/{windowId}/{viewId}/export/excel?selectedIds=.... endpoinyt shall be called.

image

Backend task: metasfresh/metasfresh-webui-api-legacy#547

@pablosichert
Copy link
Contributor

Is there a way to safely assume that the current view is a grid?

I found that type is passed down in

https://github.com/metasfresh/metasfresh-webui-frontend/blob/0c72e61b2209208cc99c74a9458a4ea849bee1a6/src/containers/DocList.js#L105

but since it's not in the store I can't access it from components that are higher up in the node hierarchy (in this case the submenu). I think it would be worth refactoring so that this information is available when connected to the store.

@teosarca
Copy link
Member Author

hi @pablosichert

Grid vs Sidelist

Grid

image

Side list

image

To answer to your question: whateve' i would say because the user won't have an option to export a side list anyways and when and IF we would decide that it's useful to export a side list we would just enable the option for the user.

@teosarca
Copy link
Member Author

@pablosichert

Are the language keys window.downloadSelected.caption and window.downloadSelected.nothingSelectedok?

Yes they are. we just have to add them on backend side.

@pablosichert
Copy link
Contributor

Hi! Great, thank you for the visualisation.

@metas-lc
Copy link

IT

  1. open any window in gridview. Don't select anything. Go to actions
    => Download selected (nothing selected) readonly
  2. open any window in gridview, select 1 line. Go to actions
    => download selected
  3. use Download selected
    => an xls file opens, called report. It contains same columns you see in gridview, just 1 line (the one you selected), all data correctly set
  4. open any window in gridview, select multiple lines. Go to actions -> use Download selected
    => same as in step 3 but you get multiple lines (the ones you selected)
  5. open a window in gridview, one that has multiple pages. Select all rows (select all on this page -> select all xx items) and Go to actions -> use Download selected
    => same as in step 3, but all the data from that window is shown (you have xx rows)

swing version:

  1. login on swing, open any window in grid view, go to Datei -> Exportieren
    => a save as popup appears
  2. set a name.xls and press save
    => xls opens with all rows (not for the selected.. but for filtered)

metas-ts added a commit to metasfresh/metasfresh that referenced this issue Sep 24, 2017
[#608](metasfresh/metasfresh-webui-api-legacy#608) CU
Quantity in Excel Export from HU Editor is wrong
[#2477](#2477)
Subscription Import Window Adjustments
[#588](metasfresh/metasfresh-webui-api-legacy#588)
Cloning Feature: Error when cloning BOM
[#2541](#2541) Allow
filtering by product group in window product
[#2538](#2538) Remove
legacy LDAP code
[#576](metasfresh/metasfresh-webui-api-legacy#576)
Implement batch entry for Sales/Purchase Invoice documents
[#2484](#2484) allow
using partner product numbers and name for entering order line
[#2502](#2502) Allow
multiple shipment schedules per orderline
[#2395](#2395) Drop
C_Flatrate_Conditions.IsNewTermCreatesOrder together with java code
[#2529](#2529) Import
System users
[#607](metasfresh/metasfresh-webui-api-legacy#607)
AD_Column.IsMandatory shall be overwritten by MandatoryLogic
[#2514](#2514) Support
importing multiline fields
[#603](metasfresh/metasfresh-webui-api-legacy#603)
Handle incorrect AD_Window_ID in URL
[#1167](metasfresh/metasfresh-webui-frontend-legacy#1167)
Edit Fields in Main Grid View
[#2146](#2146) Implement
Generic Multi Tags / labels for records
[#2501](#2501) Import
Requests
[#2510](#2510) Prevent
users from creating duplicate main prices
[#2344](#2344) Support
version 02 CAMT54 file
[#1197](metasfresh/metasfresh-webui-frontend-legacy#1197)
frontend: export view to excel
[#2482](#2482) Allow
disabling of model interceptors on the fly
[#1194](metasfresh/metasfresh-webui-frontend-legacy#1194)
Use API to fetch the locale
[#591](metasfresh/metasfresh-webui-api-legacy#591)
Filter by warehouse when selecting HUs to issue
[#593](metasfresh/metasfresh-webui-api-legacy#593)
Remove Clone action if not supported
[#2492](#2492) Process
C_Dunning_Candidate_Process fails
[#491](metasfresh/metasfresh-webui-api-legacy#491)
Wrong widget Type for Date-Range in Process Parameter

me-45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants