sp-attachment-manager not showing attachments

Community Alums
Not applicable

Hello Experts,

I have created a widget and included below code into that widget

 

<div>
<!-- your widget template -->
 
  <sp-attachment-manager table="'kb_knowledge'" sys-id="xxx" omit-edit="true"></sp-attachment-manager>
</div>

added angular provider "spAttachmentManager" to this widget

find_real_file.png

still attachments are not visible on the page.

can anyone help with this, please

Thanks & Regards,

Rajendra

1 REPLY 1

Jags5
Mega Sage

Did you mark the sys-id intentionally ? I am thinking sys-id is not set right.

Refer to this code.

<h4 ng-if="data.direct"> 
${View or download the attachments below} 
</h4> 
<div ng-if="::data.showAttachments || data.direct" class="b-t m-t"> 
<sp-attachment-manager table="'kb_knowledge'" sys-id="::data.sys_id" omit-edit="true"></sp-attachment-manager> 
</div> 

https://hi.service-now.com/kb_view.do?sysparm_article=KB0752450

Please mark reply as Helpful/Correct, if applicable. Thanks!