Draw a pivot with a PIVOT LAST property in the web client

Aperta
#1,968 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
53/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
frontend

Direzione di ricerca

The issue describes the failure in the web client's pivot view, but does not name the relevant source files or tests. Start by tracing how the web client renders pivot properties and handles PIVOT LAST, then find or add coverage for the supplied three-item example. Done means the pivot opens without a TypeError and shows the quantity from the last row by the listed expression order.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

In the web client a pivot table with a PIVOT LAST property is not drawn: opening it shows TypeError: Cannot read properties of null and an empty table, and once the pivot's grouping comes from the server the table stays empty with another TypeError.

FORM items
    OBJECTS i = Item PIVOT
    PROPERTIES(i) READONLY name, quantity PIVOT LAST (name(i))
;

With three items whose quantities are 100, 200 and 300, the total of quantity should be the quantity of the item last by name, but nothing is shown.

Reason

PIVOT LAST could not be used in the web client at all: a form with such a property in the pivot view fails as soon as it is opened.

Fix

A pivot with a PIVOT LAST property is drawn, and the property's aggregated value is taken from the row that is last in the order of the listed expressions, as documented.

Lingua principale
Java
Stelle
214
Fork
46
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lsfusion/platform

Tutte le issue di lsfusion/platform

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.