Using HTML to Get fields from two or more tables or trought query maded on datalists

Confluence User - 09 Dec, 2017

Hi Community members ,

I need use a custom HTML control to show various fields from diferents tables, i did try to get thems from a datalist that use a Datasource query  option but it don´t work . In other hand also try to get the info directly from the tables and does not work either.

Anybody know if it is possible?

 

It is the example of the Datalist, Query and HTML code:

 

SQL Query on CONS_COTIZA_CLI  datalist:  

" SELECT a.id, a.c_username,a.c_total_prop,a.c_quotation_number,a.dateCreated,a.c_customer,a.c_due_date, b.c_accountName FROM app_fd_hr_expense_claim a INNER JOIN app_fd_mcrm_account b
ON a.c_customer=b.id AND a.c_status='Submitted'  "

 

HTML  CODE USED TO GET THE FIELDS:

 

<td>
#form.hr_expense_claim.due_date#                        !! This Piece work fine !!
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="layout2">
<div class="col first billShip">
<h3>
ATENCIÓN:
</h3>
<div>
<strong>#form.hr_expense_claim.customer_contact#</strong>
</div>
<div>
#form.CONS_COTIZA_CLI.accountName#    !! This Piece don´t work !!
</div>
<div>
<div>
#form.mcrm_accoun.email#                          !! This Piece don´t work !!
</div>
<div>

 

 

 

 

 

 

forms;datalists

3


12 Dec, 2017
confluenceUser
1
confluenceUser

Hi, for the form data hash variable you may need to pass in the ID of the required record #form.tableName.fieldId[recordId] or use the nested format eg #form.registration.registeredDate[{variable.recordId}]# as described in Hash Variable#FormDataHashVariable

17 Dec, 2017
confluenceUser
confluenceUser

Hi Anders, thanks a lot for your answer. I used the examples and I was able to obtain the variables to show them, however to make the dynamic data load I must use Nested Hash Variables, the problem is that it is not working for me. I have three lines to explain, the first one brings the name of the company with the field ID, (it works). The second is the ID of the Field (it works) the third one is Nested Hash Variable (it does not work). <div> #form.mcrm_account.accountName[QC0001]# </div> <div> <div> #form.hr_expense_claim.customer# <div> #form.mcrm_account.accountName.{form.hr_expense_claim.customer}# </div> what do you thing about?

17 Dec, 2017
confluenceUser
confluenceUser

I did found the answer to this last problem here¡ https://dev.joget.org/community/display/KBv5/questions/29821538/hash-variable-for-nested-column i was not using [] #form.mcrm_account.accountName[{form.hr_expense_claim.customer}]# thanks

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print