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
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.
@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.
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 :
@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.
@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.
@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?
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