Some field values are missing when export a change record as pdf

Hemagiri B
Tera Expert

Hello Team,

Need your help here. While I am exporting a change record as PDF form, some field values are missing from change record  in the PDF file.

please help me how to resolve this?

1 ACCEPTED SOLUTION

Thank you @Sandeep Rajput for your valuable time. I will make it as accept solution.

View solution in original post

8 REPLIES 8

Sandeep Rajput
Tera Patron
Tera Patron

@Hemagiri B Are you exporting the change record in PDF form using a UI Action. If yes, then your UI Action must be having code similar to the following.

function onClick(g_form) {
    var url = '/' + g_form.getTableName() + '.do?sys_id=' +
        g_form.getUniqueValue() + '&sysparm_view=export_to_pdf&PDF';
    top.window.open(url, '_blank');
}

If you notice there is view name currently being pass with sysparm_view parameter. In this case the view name is export_to_pdf. Similar code should have been present in your UI Action too. You just need to find the view name which is currently being used for exporting the PDF, add the missing fields in the same view using the configure form layout feature and once the missing fields are added check if the PDF export feature now adds the missing fields within the PDF.

@Sandeep Rajput  

Thanks for your reply. I am exporting the PDF as per the below picture. Please let me know then where I can check the settings/values to resolve this. using view as "Default".

 

HemagiriB_0-1682047301804.png

 

@Hemagiri B 

 

Please configure the form layout to add fields to your PDF.

 

Here are the steps to configure fields in a specific view.

 

Screenshot 2023-04-21 at 1.08.27 PM.png

Screenshot 2023-04-21 at 1.08.49 PM.png

Once the fields are added on your view, try exporting the PDF and this time the missing fields will be included in your PDF. 

 

Hope this helps.

@Sandeep Rajput 
Thanks for your reply. Form layout is already configured as below for "Default view". From "Short description" all field values are missing in PDF from the picture.

HemagiriB_0-1682069300701.png