Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gendoc odt with image link
#1
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 ?
Reply
#2
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
Joe
TSolucio
Reply
#3
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
Reply
#4
download the documentation template, there are some examples there for sure

https://corebos.com/docs_grav/configuration-tools/gendoc-templates/gendocdocumentation.odt
https://corebos.com/docs_grav/configuration-tools/gendoc-templates

   
Joe
TSolucio
Reply
#5
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.
Reply
#6
share with me so I can understand
Joe
TSolucio
Reply
#7
(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


Attached Files Image(s)
   
Reply
#8
(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
Reply
#9
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
Reply
#10
I just pushed a couple of code changes to support your use case. Update when you can and let me know how it goes.


Attached Files Image(s)
       

.txt   GenDocLinkDemo_changeextensiontoodt.txt (Size: 104.12 KB / Downloads: 9)
.pdf   GenDocLinkDemo.pdf (Size: 62.27 KB / Downloads: 9)
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)