Project

General

Profile

Actions

Feature #17265

open

Column parameters

Added by Krzysztof Putyra 4 months ago. Updated 3 months ago.

Status:
In Progress
Priority:
Normal
Assignee:
Krzysztof Putyra
Target version:
Start date:
10.11.2023
Due date:
% Done:

0%

Estimated time:
Discuss:
Prio Planung:
No
Vote:

Description

The column _encrypt takes one optional parameter, but currently there is no concept for column parameters.
Because of that fetching the parameter is hard coded only for this column.

The column parameter concept intends to improve the situation by introducing a general way to pass parameters to the column renderer. After a vote it was decided to use the functional syntax:

# _color column takes two optional parameters:
#    - text color
#    - background color
# It outputs then the content with the given colors
10.sql = SELECT "red on blue" AS '_color(red,blue)|content'
20.sql = SELECT "red content" AS '_color(red)|content'
30.sql = SELECT "blue backgr" AS '_color(,blue)|content'

A special attention must be paid to the column _+<html attrs>, because HTML attributes may contain brackets.

Actions #1

Updated by Krzysztof Putyra 3 months ago

Current status:
  • implemented: full
  • unit tests: fulfilled
  • documentation: not updated
Noticed problems:
  • AS _encrypt|variable does not store the encrypted value in variable
Actions

Also available in: Atom PDF