Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-1877

forEachRecord tag does not support reportObject

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenMRS 1.9.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      The <openmrs:forEachRecord> tag clearly used to support name="reportObject" (due to the reportObjectType parameter) but it does not support this now.

      I noticed this while trying to upgrade the RestrictByRole module to work with modern OpenMRS. This snippet of code no longer returns any results:

      <openmrs:forEachRecord name="reportObject" reportObjectType="Patient Search">
      	<option value="${record.reportObjectId}" <c:if test="${record.reportObjectId == status.value}">selected</c:if>>
      		${record.name}
      	</option>
      </openmrs:forEachRecord>
      

        Attachments

          Activity

            People

            Assignee:
            ashishmittal Aashish Mittal
            Reporter:
            darius Darius Jazayeri
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: