You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

Can we print a variable in between the Message that we are showing

3 replies [Last post]
Guest's picture
Guest

Hi,
Can we print a variable value in between the Message that we are displaying?

Thanks in advance,

Lepa's picture
User offline. Last seen 2 years 20 weeks ago. Offline
Joined: 06/23/2008
Posts: 591
Re: Can we print a variable in between the Message that we ...

I'm not sure what you are really asking. Can you give us an example?

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Guest's picture
Guest (not verified)
Re: Can we print a variable in between the Message that we ...

Means if we are showing an error messaage like "Date needs to be entered After &date.A future dated transaction exist on this date."
Suppose this message is stored in message catalog With no &date can we print the &date value also along with that message.

Lepa's picture
User offline. Last seen 2 years 20 weeks ago. Offline
Joined: 06/23/2008
Posts: 591
Re: Can we print a variable in between the Message that we ...

Your message should be stored as ""Date needs to be entered After %1. A future dated transaction exist on this date."
You can then pass the date value when you call the message. If &date value is "none" and you want to send "&date" instead, then you can write an if statement to check for the value before you call your message.

if none(&date) then
/*call message catalog and pass a constant value to it, like '&date'*/
else
/*call your message and pass the actual date value, like &date*/
end-if;

Your question still doesn't make much sense to me, may be because i'm still not sure what you are trying to do.

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog