1
0
-1

trying to work out a hyperlink action to display a detail page for an item in the datalist.

 

Hyperlink is 

https://app2.clarizen.com/Clarizen/Ext/WidgetObjectDetailsPage.aspx?wt=ViewObjectDetails&

 

parameter is set to a form field that has the following content:

uid=9.633544.234274&wid=ijZM6UT9ikmMbRT_rwQvmA&pid=453.5725549.274345&urgs=1&vid=351.45541889.274345&doid=6.9601025.4345&el=0&CSig=8A016476D3B5FA2C05CB1D8F05F118CF3D8

 

when I go to the hyperlink in the userview, it does not populate the parameter with the hyperlink, instead it only shows the hyperlink portion.

 

I used simpler parameter and it worked. I changed it to this long one and it doesn't.

 

Is this a bug?

    CommentAdd your comment...

    3 answers

    1.  
      1
      0
      -1

      thank you Walter. That explains.

        CommentAdd your comment...
      1.  
        1
        0
        -1

        That's an interesting use case, it is correct that Joget encodes the characters so that values will be passed over correctly as a single parameter value. It did not expect the values to be chain of parameters and values.

        I guess we can create another hyperlink action plugin without this line of code (line 137)

        return (paramValue != null) ? URLEncoder.encode(paramValue, "UTF-8") : null;

         

        See the source code at https://github.com/jogetworkflow/jw-community/blob/6.0-SNAPSHOT/wflow-core/src/main/java/org/joget/apps/datalist/lib/HyperlinkDataListAction.java#L137

          CommentAdd your comment...
        1.  
          1
          0
          -1

          did some more test, changed Hyperlink to 

           

          https://app2.clarizen.com/Clarizen/Ext/

           

          made the parameter as 

          WidgetObjectDetailsPage.aspx?wt=ViewObjectDetails&uid=9.633544.234274&wid=ijZM6UT9ikmMbRT_rwQvmA&pid=453.5725549.274345&urgs=1&vid=351.45541889.274345&doid=6.9601025.4345&el=0&CSig=8A016476D3B5FA2C05CB1D8F05F118CF3D8

           

          Now the parameter is added to the tail of the hyperlink, however it seems that the system encoded some of the characters, for example ? becomes %3F, "=" becomes %3D. This made the hyperlink unusable.

           

          How do I prevent the system from encoding the characters and just use the original character?

           

            CommentAdd your comment...