- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2016 07:54 AM
Hi guys,
I'm struggling with the very similar issue as the OP, I used the script just like the one provided above, but there's still sth that isn't right.
In my case I created a Problem RP, and all the fields from the RP are being populated correctly into Problem Record, apart from one: Problem Summary, would you mind taking a look at my script and point out my mistake?
gs.include("FormInfoHeader");
var fi = new FormInfoHeader();
current.state =2;
var s = 'Problem ' + current.number + ' has been submitted.<br/>';
s += 'The Problem Management team will contact you if they need any additional information<br/>';
fi.addMessage(s);
//gs.addInfoMessage(s);
current.Summary = producer.issue_summary;
current.description = producer.describe_the_issue +"\n\nImpacted applications:\n" + producer.impacted_applications;
current.business_impact = producer.business_impact;
current.u_type.setValue(4);
//producer.redirect = 'sc_request.do?sys_id=' + current.sys_id
producer.redirect = "catalog_home.do";
Thank you!!