Skip to content

Commit

Permalink
Item5642: added gotcha note as recommended in the task
Browse files Browse the repository at this point in the history
  • Loading branch information
Crawford Currie committed Jun 20, 2015
1 parent 37eb973 commit 5c72c60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/data/System/QuerySearch.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1434484983" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" date="1434785593" format="1.1" version="1"}%
%META:TOPICPARENT{name="UserDocumentationCategory"}%
%STARTINCLUDE%
---+ Query Search
Expand Down Expand Up @@ -224,6 +224,7 @@ will return an array of the values of the Published field in all versions author

---++ Gotchas
* Remember that in the query language, topic names are _constants_. You cannot write =%USERSWEB%.UserTopic/UserForm.firstName= because =%USERSWEB%.UserTopic= will be interpreted as a form field name. If you want to refer to topics you *must* enclose the topic name in quotes i.e. ='%USERSWEB%.UserTopic'/UserForm.firstName=
* Query operations are performed in the context of =%<nop>WEB% and =%<nop>TOPIC%. This can cause confusing when they are used in an <code>%INCLUDE</code>ed topic, where you might expect them to operate in the context of the _including_ topic, rather than the _included_ topic.

---++ Examples
---+++ Query examples
Expand Down

0 comments on commit 5c72c60

Please sign in to comment.