Display info message on CSM Portal

Khusi1
Tera Contributor

How to display info message with CASE number after CASE submission.

 

bandita_lakra_0-1668593484602.png

 

1 ACCEPTED SOLUTION

Hello @Khusi1 ,

Try to print this info message in client controller instead of printing it in server script 

try to store your number in a variable like below

server script :

data.number=reqItem.number.toString();

Client Controller :

api.controller=function(spUtil) {
  /* widget controller */
  var c = this;
	spUtil.addInfoMessage('Case Number :'+c.data.number);
};

 

Hope this helps 

MARK MY ANSWER CORRECT IF THIS HELPS YOU

Thanks

Mohith Devatte

 

 

View solution in original post

10 REPLIES 10

Saurav11
Kilo Patron
Kilo Patron

Hello

 

Are you talking about the page where we see the screenshot 

 

There are two ways you can clown the existing widget and add gs.addinfomessage in the server script

 

OR 

 

Create a new widget and add gs.addinfomessage in the server script and add the new widget on the page

 

Please mark my answer as correct based on Impact.

 

Please mark my answer as correct based on Impact.

Khusi1
Tera Contributor

 

Thank you for your response.
I tried, but how to display the CASE number with the message current.number is not working.

Hello,

 

current.number will not work as it is on portal not on any table to form. You will have to glide the record. So whenever you submit the record producer you will have the sysid in the url you just need to get the sysid from the url glide the case table and get the number.

Khusi1
Tera Contributor

Yes,  its working but showing 3 times. How to fix this

bandita_lakra_1-1668785113974.png