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

Abierto
#1,985 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
java
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Java
Estrellas
214
Forks
46
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de lsfusion/platform

Todos los issues de lsfusion/platform

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.