Download attachment button in workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 05:53 AM
Hi, I have a download button in workspace. it is working fine in native UI. but in workspace i am getting error.
This form has not been configured for Workspace. To edit the form, select a different type of record, or contact your administrator.
how to resolve it?
var attSysID;
var gr = new GlideRecord("sys_attachment");
gr.addQuery('table_sys_id', current.sys_id);
gr.query();
while (gr.next()) {
attSysID = gr.getValue('sys_id');
}
var URL = "/sys_attachment.do?sys_id=" + attSysID;
action.setRedirectURL(URL);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 06:09 AM
Hi Rosy,
This error happens because you will need to configure a new view called workspace. Go to Farm Layout or Form Design and create a new view called workspace.
This kb article might help you
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0819411
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 06:10 AM
Workspace view is already present
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 06:29 AM
Hi Rosy,
Check the table if it is a Parent/child to make sure both parent and child has the workspace view and make sure 'workspace' is the backend name of it.
Also if your workspace is customised one check in the UI action if Format for Configurable Workspace is clicked .
Do check if any code is written for workspace client script
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 08:41 AM
The table which are extending from it need also have the view or only parant have is enough?