We use MsgGetExplainText() to get the message from message catalog explain text part to display as an error or message or warning.

In PT8.49 onwards, the function is returning the text twice. for example if the text is “This is a Peoplesoft Message“, the output will be like

This is a Peoplesoft Message

This is a Peoplesoft Message

To get rid of this bug, we need to clear the second message which is in the buffer.
use it as below.

&error= MsgGetExplainText(28000,12,”Message not found”);
&novalue=MsgGetExplainText(99999,1,””);/* 99999,1 should not have any text*/
error (&error);

or this way.

&error= MsgGetExplainText(28000,12,”Message not found”);
&error=MsgGetExplainText(0,0,&error);/* 99999,1 should not have any text*/
error (&error);

Advertisements