CoreBOSBB

Full Version: Gendoc odt with image link
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello,

Using an odt with image link as Gendoc template, when I export my quote, I can't see any image.

Is there anything special to set to see this image ?
not much really: look here https://corebos.com/docs_grav/configuration-tools/gendoc/gramatica
you must include an image, that image will be substituted with the image in the application field, but the image has to be there
Thank you Joe.

Would you have a syntax example because we need to add a link to this image ?
I don't find it in https://corebos.com/docs_grav/configuration-tools/gendoc/gramatica
I can't see any similar case in template examples
My issue is not exactly image but the hyperlink behind : there are coreBOS variables in it.
share with me so I can understand
(06-19-2023, 03:27 PM)joebordes Wrote: [ -> ]share with me so I can understand

Hi Joe,

Here is our case:
We need to insert a button in the PDF file generated from the odt file.
That button have to call a webservice with 2 parameters:


https://xxx.xxxxx.com/accept-quotation?number={Quotes.quote_no}$&email={Accounts.email1}

I try to insert an hyperlink of style button but that doesn't work.
The hyperlink inserted doesn't work neither with parameters passed.

The pdf should look like capture attached with blue button "ACCEPT QUOTE".

Do you have any idea please?
Thank you.
Morgan
(06-20-2023, 08:44 AM)momomonet Wrote: [ -> ]
(06-19-2023, 03:27 PM)joebordes Wrote: [ -> ]share with me so I can understand

Hi Joe,

Here is our case:
We need to insert a button in the PDF file generated from the odt file.
That button have to call a webservice with 2 parameters:


https://xxx.xxxxx.com/accept-quotation?number={Quotes.quote_no}$&email={Accounts.email1}

I try to insert an hyperlink of style button but that doesn't work.
The hyperlink inserted doesn't work neither with parameters passed.

The pdf should look like capture attached with blue button "ACCEPT QUOTE".

Do you have any idea please?
Thank you.
Morgan


Hello,

To add a button in the odt template, insert an image with a hyperlink. Make sure to use a placeholder for the image and link it to a webservice that takes parameters from the selected record.

PS: The webservice provided above contains an extra character that needs to be removed: number={Quotes.quote_no} &email={Accounts.email1}

Hope this helps! Let us know.
 
Thank you,
Xhilda
Hi

I tried by just adding an hyperlink without image but variables are not converted into their values:

https://xxxxxx/accept-quotation?number={Quotes.quote_no}&email={Accounts.email1}

Here is the url in the webbrowser once the link clicked:
https://xxxxxx/accept-quotation?number=%7BQuotes.quote_no%7D&email=%7BAccounts.email1%7D

Do you have any idea please?
Thank you.
Morgan
I just pushed a couple of code changes to support your use case. Update when you can and let me know how it goes.
Pages: 1 2