Adding Date and Time in Manage Attachment ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2018 11:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2023 10:24 AM - edited 05-23-2023 10:26 AM
In case this is helpful for future readers:
The scrip snippet from davo does work for newly added attachments. Just that you won't see the date/timestamp until you reload the form (i.e. incident) and re-open Manage Attachments view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 05:04 AM
Hi Davo, if I'm following this then it's working for all the out-of-the-box tables like change, problem, incident etc. Can I restrict it to my custom table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 05:26 AM
Not something I have looked at potentially you could do something similar to this in the UI Macro (not tested):
var recordClass = current.getRecordClassName();
if(recordClass == <your_custom_table_name>) {
//add Created date to layout
${HTML:sys_attachment.sys_created_on.getDisplayValue()}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2023 11:42 PM - edited 05-21-2023 11:42 PM
It didn't work as the form is not adding the attachments when using this script. Besides, do you have any idea in same dialog box beside timestamp can we add the state at which it is uploaded. for example - If I have attached a file named 'test.txt' on 'In Progress' state of Incident so when I click on Manage Attachments I will be able to see file name and beside it In Progress(state name on which the file is added)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 06:14 AM
How to provide Date/Time stamp in Attachment in SOW not in Manage attachment.