Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-9666

custom search attribute with non-ranged date picker doesn't render the widget

    Details

    • Type: Bug Fix
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.7, 2.2.5, 2.3.0-m2
    • Fix Version/s: Backlog
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
    • Rice Module:
      KEW
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      Add the following search attribute to a doctype and ingest it:

          <ruleAttribute>
            <name>SearchableAttributeDatePicker</name>
            <className>org.kuali.rice.kew.docsearch.xml.StandardGenericXMLSearchableAttribute</className>
            <label>SearchableAttributeDatePicker</label>
            <description>Searchable attribute date picker field</description>
            <type>SearchableXmlAttribute</type>
            <searchingConfig>
              <fieldDef name="dateAttr1" title="dateAttr1 (no range)">
                <display>
                  <type>date</type>
                </display>
                <fieldEvaluation>
                  <xpathexpression>//dateAttr1</xpathexpression>
                </fieldEvaluation>
              </fieldDef>
              <xmlSearchContent>
                <dateAttr1>%dateAttr1%</dateAttr1>
              </xmlSearchContent>
            </searchingConfig>
          </ruleAttribute>
      

      Note the display tag contents. According to the KEW TRG http://site.kuali.org/rice/2.2.3/reference/html/TRG.html (search for 'dataType="datetime"'), setting <display><type> to be date should automatically enable the date picker widget.

      Go to doc search, and select your document type. The date picker widget does not render next to the dateAttr1 search field.

      Note that I've also tried explicitly setting the searchDefinition to enable the single field with a date picker, and that doesn't work either. To try that, add this below the display tag: <searchDefinition dataType="datetime" datePicker="true" rangeSearch="false"></searchDefinition>

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                Unassigned
                Reporter:
                gilesp Peter Giles (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: