1
0
-1

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

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      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

      1. mahe

        Its List and I aslo tried it already not working.


      2. Ian

        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 

      3. mahe

        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


      4. iman maryadi

        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.

      5. Nik

        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.

      CommentAdd your comment...