Uploaded image for project: 'HTML Form Entry Module'
  1. HTML Form Entry Module
  2. HTML-210

Error: when calling a logic rule with space in name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Won't Fix
    • Affects Version/s: HTML Form Entry 1.7.3
    • Fix Version/s: None
    • Labels:
    • Complexity:
      Undetermined
    • Development:

      Description

      When calling a logic rule from an HTML form, if the name has a space in it, it doesn't work.

      The following works...
      <lookup expression="fn.logic('SN')"/>

      The following doesn't work...
      <lookup expression="fn.logic('S N')"/>
      ...and yields the following error when the form is loaded for a patient...

      Velocity Error! Invocation of method 'logic' in class org.openmrs.module.htmlformentry.VelocityFunctions threw exception org.openmrs.logic.LogicException: Could not parse expression at org.openmrs.module.htmlformentry.FormEntrySession[line 1, column 7]

      This happens with...
      OpenMRS Version: 1.8.2 Build 21762
      Logic Module 0.5
      HTML Form Entry 1.7.3

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              dkayiwa Daniel Kayiwa
              Reporter:
              arbaughj James Arbaugh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: