121
Views
3
Comments
html2pdf -could not pass input parameter to URL input parameter of Action GeneratePdf
Question

Hi All, 

Scenario:

I have List screen of record says Screen1. It has a search bar, where I can filter. After filtering, It shows some result, that result should be converted into pdf.

What I did, I had created a print screen where I am calling the same aggregate but missing the search filters. So I had created an input parameter to the Print screen. 

Now the problem is I am unable to pass that parameter into GeneratePDF Action because it is calling the same screen and able to get the context of the search filters parameter.


Regards,

Amreen

2019-04-11 10-22-10
Domingues

Hi Amreen,

you can build the URL with the imput parameters using the getEntryURL from the httpRequestHandler extension.

It will return the correct URL. 

Br


2018-10-17 18-00-19
Carlos Gonçalves

Hello,

To generate a Pdf you should have a screen only for that propose and, use the URL for that with the parameters needed. In that screen you can get the parameters "preparation" and do what you need to the screen before convert to pdf.


Eg: 

SyntaxEditor Code Snippet

EspaceName/Module/Screen.aspx?LanguageId=pt-PT&ShipmentId="+GetShipmentListCC.List.Current.Shipment.Id


I hope this helps.


Regards

2021-10-17 12-36-16
Amreen Shaikh

Carlos Diogo Lima Gonçalves wrote:

Hello,

To generate a Pdf you should have a screen only for that propose and, use the URL for that with the parameters needed. In that screen you can get the parameters "preparation" and do what you need to the screen before convert to pdf.


Eg: 

SyntaxEditor Code Snippet

EspaceName/Module/Screen.aspx?LanguageId=pt-PT&ShipmentId="+GetShipmentListCC.List.Current.Shipment.Id


I hope this helps.


Regards

Thank you Carlos Diogo Lima Gonçalves. I was going in the right direction, just I placed the input parameter's assignment inside the double quotes, and it was throwing an exceptional error.  It was a silly mistake. Once again thank you.


Regards,

Amreen


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.