Maximo Open Forum

 View Only

 Communication template list/multiple lines of service items

  • Administration
Anna Fabia's profile image
Anna Fabia posted 08-27-2024 04:24

I’m trying to create a communication template that retrieves the price from a work orders planned service items. But if the selected work order has fewer lines of planned service items and the template has more, it says :REP_PLANSERV.plusplineprice for each excess line in the template. The number of planned service items can vary per work order and I want to include all planned service items.

Is it possible to get the communication template to select all lines from planned service items in a work order without that text being visible if the lines are fewer than in the template?

The template looks like this:

:REP_PLANSERV[0].plusplineprice

:REP_PLANSERV[1].plusplineprice  

:REP_PLANSERV[2].plusplineprice  

:REP_PLANSERV[3].plusplineprice  

:REP_PLANSERV[4].plusplineprice  

:REP_PLANSERV[5].plusplineprice   

 

And when I apply it to a workorder with only three planned service items it looks like this:

100,00 

6 209,12

1 776,86  

:REP_PLANSERV[3].plusplineprice  

:REP_PLANSERV[4].plusplineprice  

:REP_PLANSERV[5].plusplineprice   

Steven Shull's profile image
Steven Shull

I'd recommend creating a non-persistent attribute and use an automation script initialize value on that non-persistent attribute to provide the data. Then from the automation script you can easily loop through the records and display including with any necessary formatting (IE a HTML table) to make it look good. 

Matt F's profile image
Matt F

Hi Anna,

As @Steven Shull suggested, you can follow his steps to successfully fulfil your requirement. I've also done similar with an automation script only, using a placeholder in my Comm Template. This example stems from @Jade Warren noted below:

https://moremaximo.com/discussion/communication-template-adding-all-worklogs

Let us know how you make out. 

Cheers,