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 Bug Fix
    • Status: Open Open
    • Priority: Major 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:
    • Similar issues:
      KULRICE-3312Allow for both "ranged" date searches and "non-ranged" date searches to be specified for lookups
      KULRICE-3732Allow for date fields in the KNS to be specified as either a range date field or non-range
      KULRICE-5888Date picker not accessible by keyboard
      KULRICE-8717Document Search issue with custom attribute date searches
      KULRICE-10883Date picker (and other widgets) still work when a field is disabled
      KULRICE-11828AFT Failure DemoControlKimGroupAft Widget Input Only Quicklookup Lightbox doesn't render
      KULRICE-7211Default datePicker widget disabled property to disabled property on control
      KULRICE-11899Ajax Retrieval not rendering
      KULRICE-5813KRAD: 2-Month Date Picker only displays current year in dropdown.
      KULRICE-2149Enhance Widgets to render an html id attribute for applicable Edoclite form field types so that prototype and javascript coding is easier/better.
    • 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>

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

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

              Dates

              • Created:
                Updated:

                Structure Helper Panel