Hi, I’ve got a problem with a calculated field (type url) in one of my apps.
As you can see here, I compose an URL with an expression. There is a fixed part and a variable part (the name of the file, located in the field [IDCJUSTIFICANTE]) .
When I copy and paste the generated URL (look at the image below to see the resulting text of the URL) to a browser the correct file (that with the name in the field [IDCJUSTIFICANTE]) opens,
But if I click the link button (the little box with an arrow) in the URL type field it ALWAYS opens the SAME FILE, no matter which row I’m viewing.
I can see that the generated URL is correct and different for each row. I can copy paste it to go to the correct file. But the link sends me to a wrong destination, and always to the same one.
Everything was working fine before, don’t know what happened…
I’ve duplicated it in two fields (IDCJUSTIFICANTE and Enlace) to have one as LongText and make it posible for user to access the files using Copy and Paste till this is solved.
And the link doesn’t work. Now even the Copy+Paste alternative fails..
I’ve tried to substitute only the spaces in the URL with %20 and the Copy+Paste trick works, but the link points again to the same file as before: a file existing in the folder, but not the one whose name is contained in the field. And always opens the same field, no matter wich row I’m in.
I’ve found the problem and solved it. Sorry, my bad .
It was caused for inconsistent data in the index field of the main table. I tried to replicate the app from the start and, on loading the main table, I received a warning from appsheet about the data having a duplicate. No warnings in the working app (cause the data was preloaded in the file directly, not saved in-app).
Thanks to @Aleksi_Alkio for his help and to the contributors @Steve and @Marc_Dillon