Use UUID instead of GUID when opening FileDocument

0
Hi Mendix Community,   One of our clients has requested that we use the file document UUID instead of GUID when opening uploaded documents in the browser. Do you have any suggestions on how to proceed with this?   below is a sample of link when opening the document:   http://localhost:8088/file?guid=171699735793551551&changedDate=1734329553867&name=Exit%2520Permit.jpg&target=window
asked
4 answers
0

You can create a UUID with th javaaction RandomHash in CommunityCommons. Store this hash in a new attribute of the specialization of the FileDocument and use it as the parameter for you page URL.

answered
0

Hi Martin van Dijk,

 

Thanks for your answer, actually when i tried to use the custom UUID as page URL parameter, Studio pro raised an error as per the attached image.

 

Custom UUID.png

answered
0

Hi Martin van Dijk,

 

even if i passed /{Entity/Attribute}, the same issue still exist, it seems its not supported in Mendix version 9.24.28, please check the image.

 

A.png

answered
0

Oke, then you have to upgrade or use the old deeplink module.  (upgrading is the better option)

answered