You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Charles STELTZLEN (Jira)" <ji...@apache.org> on 2024/09/05 08:18:00 UTC

[jira] [Closed] (OFBIZ-13134) Allow to use GroovyDsl in FlexibleStringExpender

     [ https://issues.apache.org/jira/browse/OFBIZ-13134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charles STELTZLEN closed OFBIZ-13134.
-------------------------------------
    Resolution: Duplicate

> Allow to use GroovyDsl in FlexibleStringExpender
> ------------------------------------------------
>
>                 Key: OFBIZ-13134
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13134
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL COMPONENTS
>    Affects Versions: Upcoming Branch
>            Reporter: Charles STELTZLEN
>            Priority: Minor
>             Fix For: Upcoming Branch
>
>
> 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')}"/>`



--
This message was sent by Atlassian Jira
(v8.20.10#820010)