The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we have Dynamic variables for Notification prompts and report header names

Highlighted
Shravan Kathuri
Senior Member

Can we have Dynamic variables for Notification prompts and report header names

Hi,

Presently we are in PPM 7.1 SP5, we have a requirement were header names of the reports should be represented by the variables instead of hardcoding them in report.

The same case applied for notifications also, were I doesn't want to hardcode the Prompt names like
Problem Owner:

Is there any way to have some variables or tokens to avoid hardcoding in reports and notifications even for Prompts names and report headers.

This is the urgent requirement from our client. Please anyone respond ASAP.

Thanks
Shravan kumar
2 REPLIES
Sascha Mohr
Esteemed Contributor

Re: Can we have Dynamic variables for Notification prompts and report header names

Hello Shravan,
there is no easy or comfortable way to do so. As to reports you could have a look at the seeded report "Request Details Report" and its JSP file in X:\ITG\server\Server\deploy\itg.war\web\knta\crt\rpt\
That might be a start as it can display all kinds of requests.
Notifications do not allow that kind of dynamic content; token always resolve to field contents. What you would need to solve this is:
- the fields you need for the notifications have to have the same token names in all request types
- for each of these fields you need an additional hidden field that has a default value of the prompt you want to use in the notifications (these fields' names need to the same on all RT as well)

Decide for yourself if this is worth the effort though.
Regards
Sascha
Łukasz Czech
Collector

Re: Can we have Dynamic variables for Notification prompts and report header names

I'm not sure it answers your question, but you can use user defined tokens in Notification message Subject and Body e.g. [REQD.P.FIELD_TOKEN].
//Add this to "OnDomLoad" event