You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- #SmartBlock bugGetSelectionsFromQueryBuilderCommand
- ^^Set the default vars for the query^^
<%SET:queryAlias,Active-Projects%>
<%SET:querySelection,text%>
<%NOBLOCKOUTPUT%>
- ^^Various ways the second arg could be passed to the `<%QUERYBUILDER%>` command^^
<%SET:varNoBrackets,<%QUERYBUILDER:queryAlias,querySelection%>%>
<%SET:varWithBrackets,<%QUERYBUILDER:queryAlias,{querySelection}%>%>
<%SET:getVarWithBrackets,<%QUERYBUILDER:queryAlias,{<%GET:querySelection%>}%>%>
<%SET:getVarNoBrackets,<%QUERYBUILDER:queryAlias,<%GET:querySelection%>%>%>
<%SET:hardCoded,<%QUERYBUILDER:queryAlias,{text}%>%>
<%NOBLOCKOUTPUT%>
- ^^Outputting the results of each command above. Only the **hard-coded** will output correctly^^ <%NOBLOCKOUTPUT%>
- <%GET:querySelection%>
- **varNoBrackets**: <%GET:varNoBrackets%>
**varWithBrackets**: <%GET:varWithBrackets%>
**getVarWithBrackets**: <%GET:getVarWithBrackets%>
**getVarNoBrackets**: <%GET:getVarNoBrackets%>
**hardCoded**: <%GET:hardCoded%>
Reported by Chris H. via slack
The text was updated successfully, but these errors were encountered:
This allows the SmartBlock commands to be used on the output of <%QUERYBUILDER%>
eg: <%QUERYBUILDER:myQueryBlock,Random Block from {text}: <%RANDOMBLOCKFROM:{uid}%>%>
To pass a selection as a variable, one can use the "block reference as arg" feature (to be documented), and pass in the column name variable like this: <%GET:<%GET:columnNameVar%>%>
eg:
- My Smartblock #SmartBlock
- <%SET:columnNameVar,data%>
- <%QUERYBUILDER:myQuery,((ITe51brrn))%>
Steps to repo:
Reported by Chris H. via slack
The text was updated successfully, but these errors were encountered: