Hash Variable for fetching the id

Confluence User - 25 Jul, 2024

what is the Hash Variable for fetching the id value of the current row in Datalist.

datalists;hashvariable;id

6


26 Jul, 2024
confluenceUser
confluenceUser

if its inside the form just use Form Data hash variable. 

  • #form.tableName.fieldId #

check the form table name in form builder, let's say the form tablename is "request"

then the hash variable would be:

#form.request.id#

Reference: Hash Variable - Knowledge Base for DX 8 - Joget | COMMUNITY

26 Jul, 2024
confluenceUser
confluenceUser

Its List and I aslo tried it already not working.


26 Jul, 2024
confluenceUser
confluenceUser

yeah your question is kinda vague. Where are you planning to use it? I'm assuming its one of the datalist actions...

if its beanshell datalist action , use the injected variables rowKeys 

ref: Bean Shell Programming Guide - Knowledge Base for DX 8 - Joget | COMMUNITY

if its JDBC / Database Datalist action, you could use #requestParam.id?sql# 

ref: JDBC Datalist Action - Knowledge Base for DX 7 - Joget | COMMUNITY 

26 Jul, 2024
confluenceUser
confluenceUser

well its kinda complex. I want to use it in bootstrap steps formatter plugin as you can see i need to use it in <a> tag


01 Aug, 2024
confluenceUser
confluenceUser

hi mahe, for reference can you see link this https://stackoverflow.com/questions/40131875/create-a-href-link-in-select-query-statement-using-mysql

you can embed the link in the query, and next you use in the datalist joget.

12 Sep, 2024
confluenceUser
confluenceUser

I have the same problem. I have a list hyperlink action (row based) and I need to append in its hyperlink value the content of a column in the row that the hyperlink action belongs to, for example 

"predefined URL" + "a current row column cell content"

, I found that there is a "datalist.col......# hash variable collection but there is not something that gives the content of a column cell. Those hash variables refer to either to the content of a column or in aggregate functions for all cells in a column.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print