Hi Swapnil, Jacques Yes, it looks like a required improvement in fail-property usage.
Though we can go the groovy route if service/event written using it. Best regards, Pranay Pandey HotWax Systems http://www.hotwaxsystems.com/ On Sun, Jun 5, 2016 at 9:40 AM, Jacques Le Roux < [email protected]> wrote: > Hi Swapnil, > > This is possible with fail-message but seems indeed impossible with > fail-property > > Jacques > > > > Le 04/06/2016 à 13:14, Swapnil Mane a écrit : > >> Dear team, >> >> As per the current OOTB code, In <fail-property> tag, we don't have >> support >> for fetching the property message along with updated value of placeholder. >> for e.g. We have UiLabel AccountingInvoiceUpdateOnlyWithInProcessStatus >> >> >> {code} >> >> <property key="AccountingInvoiceUpdateOnlyWithInProcessStatus"> >> >> <value xml:lang="en">Can only update Invoice, when status is >> >>> in-process...current status: ${lookedUpValue.statusId}</value> >>> >> {code} >> >> >> >> (*Here placeholder is ${lookedUpValue.statusId}*) >> >> Now, In simple method 'InvoiceStatusInProgress' >> (accounting/widget/InvoiceScreens.xml), we used fail-property >> >> {code} >> >> <fail-property resource="AccountingUiLabels" >> >>> property="AccountingInvoiceUpdateOnlyWithInProcessStatus" /> >>> >> {code} >> >> >> >> using this, we are unable to pass the value of statusId, for getting >> the message like >> >> Can only update Invoice, when status is in-process...current status: >> >>> *INVOICE_PAID* >>> >> >> Kindly let me know if I am missing anything while using the >> <fail-property> >> or if it is the current limitation, we can proceed to create Jira ticket >> (Please confirm :) >> >> - Best Regards, >> Swapnil M Mane >> HotWax Systems, >> www.hotwaxsystems.com >> >> >
