Hyperlink broken in Sharepoint calculated column
-
viernes, 16 de marzo de 2012 6:59
Hi All,
I have created one calculated column name "Album Details page Link" like :
=CONCATENATE("<a target='_blank' href='","",Title,"http://servername:42153/Pages/Photo%20Gallery.aspx?RootFolder=",Title,"'>",Title,"</a>")
I have appended the "Title" column after link. but when my title is like : "Test's Title" then i will get the result link like below :
http://servername:42153/Pages/Photo%20Gallery.aspx?RootFolder=Test that means the link is broken after Apostrophe.
Any Idea ??
Thanks in advance to all.
Regards,
Chandresh
Todas las respuestas
-
viernes, 16 de marzo de 2012 7:15
It's correct. I suppose you should use something
=CONCATENATE("<a target='_blank' href='","",Title,"http://servername:42153/Pages/Photo%20Gallery.aspx?RootFolder=",replace(B1,SEARCH("'", B1),1,"%27"),Title),"'>",Title,"</a>")
It means that yous should relace quote to url code of that symbol. Otherwise you href attr end on qoute.
- Editado tolstyi.toxa viernes, 16 de marzo de 2012 7:15
- Propuesto como respuesta tolstyi.toxa viernes, 16 de marzo de 2012 7:23
- Votado como útil tolstyi.toxa viernes, 16 de marzo de 2012 7:23
- Marcado como respuesta Jack-GaoMicrosoft Contingent Staff, Moderator viernes, 23 de marzo de 2012 15:08
-
viernes, 16 de marzo de 2012 7:56
Hi ,
Thanks for your reply.
What is the "B1" in that link ? i have tried this to put in calculated column but it is noe working..
Thanks,
Chandresh
-
viernes, 16 de marzo de 2012 9:01
oh, pardon.
I tested this in Excel. Formulas in Excel and in SharePoint are equal).
Try to put Title against B1.
- Marcado como respuesta Jack-GaoMicrosoft Contingent Staff, Moderator viernes, 23 de marzo de 2012 15:08

