How to get incident number in catalog client script using alert message

rgv123
Tera Contributor

Hello Guys,

I have a doubt.

 

I have created a record producer to record customer information.

when they submit it i have to pop-up a message saying that this is your incident number.

i did use catalog client script to print alert message but i am not able to retrieve incident number from incident table.

can anyone help me please. 

5 REPLIES 5

RiteshSwarnakar
Giga Guru

Record Producer Script:

 

var link = '<a href="incident.do?sys_id=' + current.sys_id + '" class="breadcrumb" >' + 'Click here to go to the incident.' + '</a>';
var msg = 'Incident: '+ current.number +' is created.<br/>'+ link;
gs.addInfoMessage(msg);
// Prevent redirection
producer.portal_redirect = 'javascript&colon;void(0)';      // &colon; should be replaced by only  :