Hello,

Load your pdf as content and call stream request-map
like this :

applications/accounting/widget/AgreementForms.xml#ListAgreementContent :
        <field name="contentName">
            <display-entity entity-name="Content" description="${contentName}" key-field-name="contentId">                 <sub-hyperlink target="stream" description="${contentId}" link-type="anchor">
                    <parameter param-name="contentId"/>
                </sub-hyperlink>
            </display-entity>
        </field>

Nicolas

On 18/07/2022 05:40, Avijit Bose wrote:
Dear Sir,

I have a link in the form as shown below:
--------------------------
<field name="salaryCertificateUrl" use-when="${salaryCertificateUrl!='Not
Applicable'}" title="${uiLabelMap.salaryCertificate}" widget-style="text">
         <hyperlink target="salaryCertificateUrl"
description="${salaryCertificateUrl}" also-hidden="false" size="25">
                   <parameter param-name="salaryCertificateUrl"/>
         </hyperlink>
</field>
--------------------------

Note: "salaryCertificateUrl" is a path of a pdf file. I DON'T WANT TO
GENERATE PDF FILE. JUST WANT TO VIEW PRE_GENERATED PDFs. I am uploading it
and then wants to view it from the link in my form. Same this for images.

Pls let me know how do I view this.

regards
Avijit

Reply via email to