I created a feature class in Arc Pro and published it in AGOL for our surveyors to show the locations of their monuments and have the points link to the recorded survey document in our Laserfiche database online.
Here is what the table looks like in Arc Pro, note that in Arc Pro it is a hyperlink and if I click Ctrl and click on the link it will open in my web browser.
When I published the feature class online and opened it in Map Viewer it no longer shows up as a hyperlink:
If I copy and paste the link into my browser it will take me to the correct document.
Note that in the link below the only thing that will change will be the Rec Doc AFN number and that number is stored in my attribute table:
https://www.cowlitzinfo.net/WLAudPublicWorks/Search.aspx?dbid=0&repo=CCIMAGES&searchcommand={[AUD - Recorded Documents]:[Rec Doc AFN]="3753011", [Rec Doc Document Type]="SURVEY"}
In this example when I paste this link in my browser it finds the correct document but the resulting link changes to a random id number that is assigned to the document by laserfiche:
The metadata for the survey shows the search criteria that is used, which is how I was able to create the link that I stored in my attribute table.
I used Chat GPT to try to get the hyperlink to work in Arcade in Map Viewer and have been working on it for a day and a half but no matter what I try the hyperlink does not work.
I would appreciate if someone would please take a look at it.
Attempt 1:
First I tried clicking Add content Arcade, but no matter what I added it didn't show up in the pop up window:
Next I tried clicking Options, Attribute Expressions, Add Expression and then I was able to see the link I was working on:
When I click Run with the following code, if I copy and paste the output into my web browser it goes to the correct document.
Output Link:
text: 'https://www.cowlitzinfo.net/WLAudPublicWorks/Search.aspx?dbid=0&repo=CCIMAGES&searchcommand={[AUD - Recorded Documents]:[Rec Doc AFN]="3753011", [Rec Doc Document Type]="SURVEY"}'
But when I click Done, and click on the link in the pop-up window it goes to this link instead which says " No results have been returned yet".
https://www.cowlitzinfo.net/WLAudPublicWorks/Search.aspx?dbid=0&repo=CCIMAGES&searchcommand=
(Note that I added a text box with it linked to the expression to get it to show up in the pop-up window)
Attempt 2:
Next I tried creating a text box and using it to turn the column in my attribute table that contains the full document link into a hyperlink. But that didn't work either.
I still haven't made any progress on getting my hyperlink to work, if anyone has any advice I would appreciate it.