appsmithorg / appsmithorg/appsmith

[Enhancement] Custom columns in table widget cannot reference other custom columns from currentRow

Open
#5,090 6 comments 2 reactions 0 assignees View on GitHub
Community Reported Enhancement Needs Triaging Table Widget Widgets Product
Dominant language
TypeScript
Stars
40.9k
Forks
4.8k
Avg merge
1d 22h
Merged PRs (30d)
45

Description

## Description

In the table widget, custom column can refer to other column values of the current row using bindings like `{{currentRow.columnName}}`. However, when using this to refer to other custom columns, the value always returns `null`.

![Screenshot 2021-06-13 at 21 00 09](https://user-images.githubusercontent.com/120119/121813605-5ba49d00-cc8a-11eb-9c8d-7bfc779e12d6.png)

If using other computed columns is not supported, then they should be removed from the auto-complete suggestions, or it gives the wrong impression that they can be used.

### Steps to reproduce the behaviour:

1. Drop a new table widget.
2. Add a new column, the `customColumn1`, and set it's computed value to `{{currentRow.step + 'x'}}`. Notice that the values in this column show up correctly.
3. Now add another column, the `customColumn2`, and set it's computed value to `{{currentRow.computedColumn1}}`.
4. Notice that the value in this column is always empty.

### Important Details

- Version: Cloud
- OS: macOS
- Browser: Firefox
- Environment: Production, .

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.