-
Notifications
You must be signed in to change notification settings - Fork 7
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
Parsing and docs error for command: <%QUERYBUILDER%> #120
Comments
Thank you for the report @MarketHubb! First IssueIn terms of the first issue, I believe the output format is intended to support a wide range of use cases and not limited to just the predefined output formats. For example, the following would be valid (where
Secondary IssueSimilarly, regarding the Secondary Issue, it seems that SmartBlock commands are intended to be accepted in the output format so that they may be applied to the output itself. Which is why the SmartBlock commands in the arguments are explicitly delayed. For example:
<%GET%>There is, however, an undocumented feature that could solve the eg:
To handle your use case you would wrap the variable set to the column name in another
More info here: https://www.loom.com/share/d0492dfdbe5f4e89a4b996fe85c7317b Selection
|
According to the docs, the second argument for the
<%QUERYBUILDER%>
command is for the output format, which is not always the case.Overview of issue
If the second argument is one of the predefined output formats (i.e.,
{text}
or{uid}
), the command will return the first selection (i.e., column) of the Query in that format.However, if you pass the name of any other selection as the second argument - or the first selection if it's been renamed - the command will return the
{text}
of that selection.Secondary issue
When purposefully passing a selection - and not an output format - as the second argument, the command does not parse the
<%GET%>
command.Returns the uid of the first selection, regardless of it's name
Returns undefined even when
columnName
is set to a selection found on the queryReturns the text of the "Client" selection, regardless of it's position
Proposed solution
Update the command to take 4 arguments:
Ensure the arguments are parsed before the command is run so
<%GET%>
can be used for any of the argumentsThe text was updated successfully, but these errors were encountered: