HTML and #form. to get info to print

Confluence User - 03 Dec, 2017

Hi team, i'm trying to print an invoice like come on the example on APP Simple Quotation. (See Fig 1)

but even though i have the same tables, forms and fields the code is not working, 

I have a couple of doubts:

1- Is the problem with code that come on the original form?  


<div>
<strong>#form.qms_quotation.accountName#</strong>
<br/>
#form.qms_quotation.company_street#
<br/>
#form.qms_quotation.company_city#,&nbsp;#form.qms_quotation.company_state#&nbsp;
<br/>
#form.qms_quotation.company_postcode# #form.qms_quotation.company_country#
<br/>
Phone: #form.qms_quotation.company_phone# Fax: #form.qms_quotation.company_fax#
<br/>
#form.qms_quotation.company_email#
</div>
</div>

 

2- Is the problem with and enviroment  or workflow variable ?

 

Fig 1

 

forms;customhtml

4


04 Dec, 2017
confluenceUser
confluenceUser

I'm not exactly sure where you intend it to work but form hash variable need to be in context (need to be in runtime, and has existing record primary key to lookup a record row in database table row) to work. In your case, it will never work in preview mode.

06 Dec, 2017
confluenceUser
confluenceUser

Hi Walter, i'm agree with you, also i did discover this couple of things that i would like comment you.

From a userview i'm working with a Datalist Inbox control that call to Datalist, On this datalist i have a link that is used to print using a HTML form.
    But by a very clear reason when you use the Link in the app the form pass the ID of the process instead the id of the record and the HTML fail.
In order to comprobate the issue i did put the record ID manually and note that the HTML page work fine.
What do you think I must put in the link to work correctly?

 

 

 

 

 

 

 

07 Dec, 2017
confluenceUser
1
confluenceUser

Hi

What is the relationship between "Id of the process" (lets call it Id-A) and "Id of the record" (call it Id-B) that you want to retrieve?

Is Id-A the parent of Id-B (child)?

You can change the datalist to query and list the Id-B records, and when this list calls your quotation form, it will pass the corred Id-B value.

 

09 Dec, 2017
confluenceUser
confluenceUser

Hi Andrew, thanks for your contribution,  it help me to find the answer.

the problem was that I was using a table and the HTML form was using another table, then there is never was concidence between the fields.

So, the recomendation is of course work with the same tables

 

 

 

Also we must modify the HTML Code according with the situation like this example:

 

<div>
<strong>#form.hr_expense_claim.company_name#</strong>
<br/>
#form.hr_expense_claim.company_street#
<br/>
#form.hr_expense_claim.company_city#,&nbsp;#form.hr_expense_claim.company_state#&nbsp;
<br/>
#form.hr_expense_claim.company_postcode# #form.hr_expense_claim.company_country#
<br/>
Phone: #form.hr_expense_claim.company_phone# Fax: #form.hr_expense_claim.company_fax#
<br/>
#form.hr_expense_claim.company_email#

 

 

 

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print