Need to download form page as PDF

malaisamyj
Tera Contributor

Hi All,

I have a requirement as below,

I want to create an UI action to download the form page as PDF,.

I have tried the below UI action code.

var urlString =   gs.getProperty('glide.servlet.uri')+current.getTableName()+'.do?PDF&sys_id='+current.sys_id+'';

action.setRedirectURL(urlString);

Its working fine. But in PDF file it contains Table name,run date and time, report title and Run by. I dont want to see these details in my PDF file . is it possible to avoid these details?

And one more thing , In my form i have lot of sections.   But as soon as press Download PDF button it has to create PDF file for specific section without the related list tables

is it possible to achieve?

Thanks,

Malaisamy

8 REPLIES 8

Hello Malaisamy,



check if below thread helps you(if you havent checked yet)


Re: UI action


Moulik



i have gone through that. But its not working for me ,,


I have created my view and added the view to the code as below.



var urlString =   gs.getProperty('glide.servlet.uri')+current.getTableName()+'.do?PDF&sys_id='+current.sys_id+'&sysparm_view=PDF View';


action.setRedirectURL(urlString);



But still its not working.



Thanks,


Malaisamy


Please try to provide you view name looks like you are trying with view title..


Shishir,



PDF View is my view name.



But its still printing whole form.