`@@inputlist` and `@@noinputlist` are ignored by the value completion of a filter

Aperta
#1,985 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
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
java
Ambito
frontend

Direzione di ricerca

Start from the value completion of the filter, which is controlled by the @@inputlist and @@noinputlist annotations on the property and by the working parameter useGroupFiltersInAsyncFilterCompletion. Compare the path used when that parameter is 2 (the default) with the path used when it is 0, where @@inputlist already works. Done means the filter value field honours both annotations under either setting, matching the editor of the cell, for the four properties in the example.

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

Descrizione

bug
Description

The @@inputlist and @@noinputlist annotations of a property turn on and off the list of its values that is offered while the user types. In the editor of the property they work. In the value field of a filter by the same property they do not: the list is offered, or not offered, as if the property had no annotation.

CLASS Item;
name 'Name' = DATA STRING[50] (Item);
nameNo 'Name, no list' = DATA STRING[50] (Item) @@noinputlist;
note 'Note' = DATA TEXT (Item);
noteYes 'Note, list' = DATA TEXT (Item) @@inputlist;

FORM items
    OBJECTS i = Item
    PROPERTIES(i) name, nameNo, note, noteYes
;

With several dozen items that have different values in all four properties, and the default working parameters, typing into a cell of a column, and into the value field of a filter by that column, gives:

Property Editor of the cell Filter value field Expected in the filter
name values offered values offered values offered
nameNo (@@noinputlist) no list values offered no list
note no list no list no list
noteYes (@@inputlist) values offered no list values offered

With the working parameter useGroupFiltersInAsyncFilterCompletion set to 0 (the default is 2) @@inputlist is honoured in the filter, and @@noinputlist still is not.

Reason

A property gets @@noinputlist because its values must not be suggested, or @@inputlist because a text property should suggest them. The annotation works in the editor, so nothing tells the developer that the filter of the same column behaves differently, and what the filter does depends on a working parameter that is about something else.

Fix

The annotations of the property a filter is built on govern the value completion of that filter, whatever the value of useGroupFiltersInAsyncFilterCompletion.

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.