- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2019 11:45 PM
Hi Team
How to add the document links for user information if we click on below link get down load the excel sheets in catalog item form. how to configure this
please find the below
thanks,
Kumar T
Solved! Go to Solution.
- Labels:
-
Facilities Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2019 12:13 AM
This can be done as per the steps mentioned below:
1) First of All Upload the Attachment file which should get downloaded on click of the Variable to the Catalog item which contains that Variable.
2) Create a UI macro as per the below script:
Script:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<p><a href="/sys_attachment.do?sys_id=ca72962870e8960020d27bce9ea54623" title="Click Here to Download the Attachment">Click Here to Download the Attachment</a></p>
</j:jelly>
Navigate to sys_attachment Table and copy the Sys_id for the latest file uploaded as per Step 1 and replace the same in the UI macro script shared above.
3) Once the Macro has been created, create a Variable with Type as "Macro" and attach the macro created above in the Type Specification tab of the Variable.
Have tested this on my Personal instance and it worked. Kindly test the same from your end also.
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shubham Sanjay Gupta.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2023 07:43 PM
Hello Kishor ,
We can able to make default attachement on catalog item I already did that please follow below steps .
Step 1: Create one Ui Macro with following code
Steap 2: On catalog item create one variable and select variable type as Custom with lable
Step 3: just add your attachment on catalog item then enty will created in Sys_attachement table just copy the sys_id of attachemnt and paste in code.
Step 4 : once variable created in type specification you can able to see macro reference field are present now just provide the name of you ui macro
Step 5: once done this things just go to service catalog and you can see the variable is created as link when you click on that automatically attachment will be dawonload on your desktop.
If this information helpful then mark it as correct and share it who need this information.