Introduction
I hope that most of you are already aware of defining a static message and using the same in the application, but the message appears more informational, concrete and compact if we could add dynamic values to the same.
This can be achieved using Message Tokens.
In this example, we would demonstrate the same.
Worked-Out Example
We would create a custom message (which includes tokens) and then display the same on the “Absence Recording” screen. The high-level steps involved are:
- Create Custom Message
- Create Custom “Global Absence Entry Validation” Fast Formula
- Attach Validation Fast Formula to absence type
- Record an Absence and Verify Results
Create Custom Message
Navigation: Setup and Maintenance -> Search -> Manage Messages->Create
We will create a custom message which should have following details:
Create Custom “Global Absence Entry Validation” Fast Formula
Navigation: Setup and Maintenance -> Search -> Fast Formulas -> Create
We will create a custom Validation Fast Formula. Formula content is below for ready reference:
Attach Validation Fast Formula to absence type
Navigation: Setup and Maintenance -> Search -> Manage Absence Type -> Search -> Sick
We will now attach the newly create validation fast formula to an existing absence type (“Sick” for this example)
Record an Absence and Verify Results
Now we will try to record and absence and verify results. We would need to navigate to “Manage Absence Record” screen.
Navigation is: My Client Groups -> Person Management -> Search (for Person Number 40 for this example) -> Absences -> Manage Absence Records
We will try to record an absence of “Sick” type (which will have an absence duration greater than 40, as this is the condition when message should be displayed)
Now, if we try to record absence for another employee, we will see that the person number and user name would change accordingly
Summary
So, this is how we can display dynamic values in a message by making use of message token.
In the above demonstration we have used Absence Management module to display the message, but one can use any module area wherever messages can be invoked.
And with this we have come to end of the article.
Hope this was a good read and would be helpful.
Thanks all for your time and have a great day ahead.
Downloadable files are available from the below links:
GetMessageDetails_dm.xdm.catalog
GetMessageDetailReportTemplate.rtf
GetMessageDetailReport.xdo.catalog
Comments
RSS feed for comments to this post