Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

lookup-one-text-change #337

wants to merge 2 commits into from

Conversation

MichaelNickolas
Copy link
Collaborator

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.

Copy link

netlify bot commented Apr 30, 2024

Deploy Preview for grist-help-preview ready!

Name Link
🔨 Latest commit 84a1e12
🔍 Latest deploy log https://app.netlify.com/sites/grist-help-preview/deploys/664268049ede0a0008960681
😎 Deploy Preview https://deploy-preview-337--grist-help-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator Author

@MichaelNickolas MichaelNickolas left a 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.

@@ -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.
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants