Item10484: Query search long form fails

Priority: Normal
Current State: Closed
Released In: 1.2.0
Target Release: minor
Applies To: Engine
Branches: Release01x01 trunk master
Reported By: GeorgeClark
Waiting For:
Last Change By: CrawfordCurrie
Long forms of Query Search not working.

   works:  "(lc(Country) ~ lc('%URLPARAM{"search_field_one" encode="quote" default="Australia"}%'))" 
   fails:  "(lc(UserForm.Country) ~ lc('%URLPARAM{"search_field_one" encode="quote" default="Australia"}%'))"
   fails:  "(lc(UserForm[name='Country'].value) ~ lc('%URLPARAM{"search_field_one" encode="quote" default="Australia"}%'))" 

-- GeorgeClark - 13 Mar 2011

Created unit tests, these forms all work on release11 checkout. No action needed.

-- GeorgeClark - 14 Mar 2011

PaulHarvey identified the issue. Once the Form Name is included, it needs to be fully qualified to the Metadata. However it appears the parser can't handle a qualified form as in Main.UserForm[name='Country'].value Not sure if this is a bug or a limitation of the language. Re-opening. -- GeorgeClark - 14 Mar 2011

See also: Item10520

-- PaulHarvey - 07 Apr 2011

Consulting with pharvey on IRC, pushing this task to 1.2 - needs feedback from Crawford. should we allow fully-qualified web.form names in the "long form" syntax.

-- GeorgeClark - 03 Oct 2011

Between Sven & Crawford I guess we need to know if we should "fix" this by allowing MyForm.SomeField to scan any topic that has a topic-part of MyForm; I.e. match topics with both'MyForm' AND'Whatever/The.MyForm' etc.

-- PaulHarvey - 03 Oct 2011

It's a limitation of the language, and a usage that needs to be dropped, urgently. The problem is that it creates a context sensitivity; you can never know if "Main.UserForm" refers to a form or to a field until after the search has completed and the topic is available to disambiguate it.

-- CrawfordCurrie - 04 Oct 2011

See also Development.AddNormalizeWebTopicModifiersToQueries

-- PaulHarvey - 26 Feb 2012

The default reference implementation works fine for all three of these search expressions. However the third usage is not recommended and will be removed from documentation.

-- CrawfordCurrie - 03 Nov 2014
Topic revision: r14 - 03 Nov 2014, CrawfordCurrie - This page was cached on 13 Sep 2020 - 09:21.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy