Unable to hyperlink datatable value in action center

Hi Team,

I have been working in a project where I need to pass a datatable variable in create form task and then which I want to display in action center. I have only two columns in datatable

  1. sl.no
  2. document path

I’m using data grid and there are three columns in data grid

text field = to display Sl no.
drop down list = where user can select the appropriate value from orc in yes or no
html element = where I want to hyperlink the document path with text/button.

using <a href="{{data.DocumentPath}}" style="font-size:22px"> click </a> to hyper link the text.

I’m able to hyperlink the text but it’s not working. I feel somehow I’m not able to hyperlink the document path properly which is coming from datatable. But when using the same thing in text area or text filed I’m able to just display the path.

I want user to open the document by clicking on text.

@NoorRobot

Can you please show what you used for click…that way we might get info of what is different

Cheers

@Anil_G
It’s html element from advanced option. and the value which I’m trying to pass as hyperlink is coming from same data table which I used to display the sl no in the above image.

one thing is interesting that when I’m using same value within text field or text area then it is working which is without hyperlink. But I don’t want to display the document path. I want to display single text which is click and the document path should be hyperlinked.

You can see here when I’m using document path within text area then it works fine. But I dont want to display the document path. I want to hyperlink the path within single word (click).

Please note SlNo and Documents Paths are coming from same datatable.

Hi @NoorRobot ,

I believe you would require to upload your files to the Storage Bucket and then have the reference path from that Bucket. Check the below video on how to upload files to Storage Bucket and use it within the Form :

1 Like

@supermanPunch I checked this video earlier but the concept is slightly different in my case. In my case I dont want to display the documents in action center. I wan to save these files in the shared location or local location and create reference for these files which will be hyperlinked with text/button in the action center.

@NoorRobot

If its local path or network path please append it with file:///

So that the link would work

<a href="file:///C:\Programs\abc.xyz">click</a>

Hope this helps

Cheers

@Anil_G it’s working fine when value is hard coded or when exact path is described in the html code (<a href="C:\Noor\Dev\Test1.docx" style="font-size:22px"> click </a>).

But as I mentioned value is coming from excel and convert into datatable. This list is also dynamic. So, I’m already passing the datatable but not sure how I can create the hyperlink fetching the value from same datatable. I hope you understand the question.

@NoorRobot

So after multiple tries…could figure it out…please use it like this

here Column3(Case sensitive) is my column where the filepath is present

<a href="{{ row.Column3 }}">click</a>


image

Hope this helps

cheers

@Anil_G Thanks for your reply. I have used what you suggested and I can see the path coming to the click text but still nothing is happening after clicking on the text. I assumed it will open the file but it is not happening.

Just wanted to understand in your case are you able to open the file after clicking on the text?

@NoorRobot

Can you right click and copy to url and check if that is giving correct value

Cheers

@Anil_G

Yes I just copied the url manually and it is giving the correct value.

Can you please also confirm if you are able to open the the file after clicking there?

@NoorRobot

I tried and yes the file is not opening…butwhat I observed is when I use open in new tab I am getting url as blocked and when I researched about this I found an answer that the browsers will block any local file access to security reasons and hence the click is not working

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.