|
[ https://issues.apache.org/jira/browse/OFBIZ-10195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Deepak Dixit reopened OFBIZ-10195: ---------------------------------- Assignee: Deepak Dixit (was: Gil Portenseigne) Lookup rendering is broken {quote} For "&&" right-hand operand: Expected a boolean, but this has evaluated to a string (wrapper: f.t.SimpleScalar): ==> ajaxEnabled [in template "component://common-theme/template/macro/HtmlFormMacroLibrary.ftl" at line 650, column 35] ---- FTL stack trace ("~" means nesting-related): - Failed at: #if ajaxEnabled?has_content && ajaxEn... [in template "component://common-theme/template/macro/HtmlFormMacroLibrary.ftl" in macro "renderLookupField" at line 650, column 3] - Reached through: @renderLookupField name, formName, fi... [in template "component://common-theme/template/includes/HtmlTemplate.ftl" in macro "lookupField" at line 35, column 3] - Reached through: @htmlTemplate.lookupField value="$\{pa... [in template "component://order/template/entry/CheckInits.ftl" at line 104, column 15] ---- "window" == presentation [in template "component://common-theme/template/macro/HtmlFormMacroLibrary.ftl" at line 673, column 42] ---- FTL stack trace ("~" means nesting-related): - Failed at: #elseif presentation?has_content && "... [in template "component://common-theme/template/macro/HtmlFormMacroLibrary.ftl" in macro "renderLookupField" at line 673, column 5] - Reached through: @renderLookupField name, formName, fi... [in template "component://common-theme/template/includes/HtmlTemplate.ftl" in macro "lookupField" at line 35, column 3] - Reached through: @htmlTemplate.lookupField value="${pa... [in template "component://order/template/entry/CheckInits.ftl" at line 104, column 15] ---- data-lookup-ajax-url="Can't convert boolean to string automatically, because the "boolean_format" setting was "true,false", which is the legacy default computer-language format, and hence isn't accepted. ---- Tip: If you just want "true"/"false" result as you are generting computer-language output, use "?c", like ${myBool?c}. ---- Tip: You can write myBool?string('yes', 'no') and like to specify boolean formatting in place. ---- Tip: If you need the same two values on most places, the programmers should set the "boolean_format" setting to something like "yes,no". ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${ajaxUrl} [in template "component://common-theme/template/macro/HtmlFormMacroLibrary.ftl" in macro "renderLookupField" at line 703, column 27] - Reached through: @renderLookupField name, formName, fi... [in template "component://common-theme/template/includes/HtmlTemplate.ftl" in macro "lookupField" at line 35, column 3] - Reached through: @htmlTemplate.lookupField value="$\{pa... [in template "component://order/template/entry/CheckInits.ftl" at line 104, column 15] ----" /> {quote} > Add the ability in performFind service to set OR search criteria > ---------------------------------------------------------------- > > Key: OFBIZ-10195 > URL: https://issues.apache.org/jira/browse/OFBIZ-10195 > Project: OFBiz > Issue Type: Improvement > Reporter: Gil Portenseigne > Assignee: Deepak Dixit > Priority: Minor > Fix For: Upcoming Branch > > Attachments: OFBIZ-10195.patch, OFBIZ-10195.patch, OFBIZ-10195.patch > > > When using performFind service for advanced entity search, we can meet the need to have search criteria that do not intersect between them, but make the union of the condition. > To realize this improvement we propose to set a new suffix _grp. > Thus using : > <field name="field1"><text-find/></field> > <field name="field1_grp"><hidden value="unionKey"/></field> > <field name="field2"><text-find/></field> > <field name="field2_grp"><hidden value="unionKey"/></field> > Then the two search fields criteria will be unioned during the search by the OR operator. > Several different keys can be used for several different unioned condition. > -- This message was sent by Atlassian JIRA (v7.6.3#76005) |
| Free forum by Nabble | Edit this page |
