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
lookup-one-text-change #337
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for grist-help-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this coming up correctly? Codespaces is being strange today.
help/en/docs/functions.md
Outdated
@@ -138,8 +138,7 @@ sum(r.Population for r in Countries.all) | |||
</summary> | |||
Returns a [Record](#record) matching the given field=value arguments. The value may be any expression, | |||
most commonly a field in the current row (e.g. `$SomeField`) or a constant (e.g. a quoted string | |||
like `"Some Value"`). If multiple records match, returns one of them. If none match, returns the | |||
special empty record. If `sort_by=field` is given, sort the results by that field. | |||
like `"Some Value"`). If multiple records are found, the first match is returned. You may set the optional sort_by parameter to the column ID by which to sort multiple matching results, to determine which of them is returned. You can prefix the column ID with "-" to reverse the order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add backticks around the sort_by
parameter name? It would cause this name to appear as code style in the documentation.
Also, I notice there is no link to the longer article, i.e. https://support.getgrist.com/references-lookups/#lookupone (you would add it as [some description...](references-lookups.md#lookupone)
)
Similarly, it would be nice to include a link to https://support.getgrist.com/references-lookups/#lookuprecords ([some description...](references-lookups.md#lookuprecords)
) into the documentation of lookupRecords.
Inputting... "If multiple records are found, the first match is returned. You may set the optional sort_by parameter to the column ID by which to sort multiple matching results, to determine which of them is returned. You can prefix the column ID with "-" to reverse the order."
...in the lookupOne function description.