-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend DataTableLookUp with optional argument: default row #624
base: maintenance/mps20213
Are you sure you want to change the base?
Extend DataTableLookUp with optional argument: default row #624
Conversation
3af4b42
to
39b5bc5
Compare
Extended DataTableLookUp with an optional argument to specify a default row, so if no result is found and the column doesn't contain an empty value, the default row is returned. |
Question: Do we have an convention when to use |
The |
This is fixed now. But when the caret is placed right behind According to (#624 (comment)) the |
…ith-default-value-squashed
@AlexeiQ, @mgronover in case we need this please change the target branch to at least maintenance/mps20213 |
What changed
DataTableLookUp
is extended with an optional argumentdefaultRow
. This argument allows to specify a default row for the lookup, so in case the looked for value was not found in the searched column, the default row will be returned. Unless the column contains anempty
value, then the row of theempty
is returned. (If the look up doesn't specify a column for the search, the tables default column is used)DataTableLookUp
andDataTable
are cleaned up and improvedLimitations
When the
DataTableLookUp
doesn't specify a default column, but uses the tables default column and is about to add thedefaultRow
argument, the code completion menu suggests the,
two times. Currently it's too hard to resolve this:IDotTarget
DataTableLookUp
, but then other invalid entries are proposedTodos
#alias#
versus constant-cell questionPrio
-label