I have to display a popup in a data form using messagebundle according to a Condition
Summary:
Here I'm considering two accounts A1, and A5
If A1<A5 Then it has to display an error as a popup.
Content (required):
This is the Data form and the Error
Output:
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
This is the code:
def mbUs = messageBundle( ["en":"The Maximum number is exceeding."] )
def mbl = messageBundleLoader(["en" : mbUs])
def datefix="""
FIX("BegBalance","OEP_Actual","OEP_Working","No Year","No Entity",@Relative("Tot_Product",0))
"No Currency"(
IF("A1"<"A5")
throwVetoException(mbl, "en")
ENDIF
)
ENDFIX
"""
println(datefix)
return datefix;
Tagged:
0