Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-13134

Allow to use GroovyDsl in FlexibleStringExpender

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • Upcoming Branch
    • Upcoming Branch
    • ALL COMPONENTS
    • None

    Description

      It will allow to call a GroovyDSL method (label, from, run service ...) directly instead of calling the Java class in flexible string expander.

      The standard syntax like the first line can be replaced by the second one (from MrpScreens.xml line 64): 

      `<set field="eventMessage" value="${groovy: org.apache.ofbiz.base.util.UtilProperties.getMessage('ManufacturingUiLabels', 'ManufacturingMrpRunScheduledSuccessfully', locale)}"/>`

      `<set field="eventMessage" value="${groovy: label('ManufacturingUiLabels','ManufacturingMrpRunScheduledSuccessfully')}"/>`

      Attachments

        Activity

          People

            Unassigned Unassigned
            charles steltzlen Charles STELTZLEN
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: