The CreatorCon Call for Content is officially open! Get started here.

The reference to entity "sys_id" must end with the ';' delimiter.

godfrey1
Kilo Contributor

Hi all,

I am trying create PDF document template and mark signature on it. However, it returns error as below when I click "Mark Signatures".

find_real_file.png

Any chances I can correct this?

Thanks and regards

 

9 REPLIES 9

Worked like a charm, Thanks Alberto!

Cheers,

Vaibhav

Prateek kumar
Mega Sage

Did you check this??

https://community.servicenow.com/community?id=community_question&sys_id=e09ccfa5db9cdbc01dcaf3231f96...

 


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Hi Peter,

Yes, I did check this post but it should be UI action in my case.

var signatureModalLoading = false;
function showPdfCanvas() {
	if (signatureModalLoading)
		return false;
	signatureModalLoading = true;
	var sys_id = g_form.getUniqueValue();
	
	ScriptLoader.getScripts('sn_hr_core.utils_ui.jsdbx', function() {
		getGlideRecord("sn_hr_core_pdf_template", sys_id, getDMSDocRevision);
		return false;
	});
	
	function getDMSDocRevision(gr){
		ScriptLoader.getScripts('sn_hr_core.utils_ui.jsdbx', function() {
			getGlideRecord("dms_document_revision", gr.document_revision, showPDFCanvas);
			return false;
		});
	}
	
	function showPDFCanvas(dmsdocRevgr){
		var dialogClass = GlideModal ? GlideModal : GlideDialogWindow;
		var dialog = new dialogClass('sn_hr_core_Mark Signature Blocks');
		dialog.setTitle(getMessage('Mark Signature Blocks'));
		dialog.setWidth(800);
		dialog.setPreference('sysparm_pdfDocumentRevisionSysId', sys_id);
		dialog.setPreference('sysparm_dmsDocumentRevisionSysId', dmsdocRevgr.sys_id);
		dialog.setPreference('sysparm_attachmentSysId', dmsdocRevgr.attachment);
		dialog.setPreference('sysparm_table', g_form.getValue('table'));
		dialog.render();
		signatureModalLoading = false;
		
		return false;
	}
}

himanshukumar
Kilo Contributor

Hi Godfrey,

 I hope you have resolved the above issue. I you guide me how to resolve it.

 

Thanks,
Himanshu

Hi Himanshu,

 

I found below code in UI Page: Mark Signature Blocks

<div class="hr_task_attachment" style="display:table;">
<g2:evaluate var="jvar_pdfUrl" jelly="true">
			jvar_pdfUrl = "sys_attachment.do?view=true&amp;sys_id=" + jelly.sysparm_attachmentSysId;
</g2:evaluate>

Remove "view=true&amp;" and it works.

 

Cheers,

Godfrey