In Procurement purchase Order Table how we will get the 'edit' button in Asset tab as well as in Purchase Order Line item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 04:18 AM
Kindly refer the below snippets we are trying to get the edit button for asset tab and POLitem
- Labels:
-
Enterprise Asset Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 05:19 AM
Hi
Right click on the header of Related List "Purchase order line item" and then select Configure -- >List Control as shown below:
Now click on Enable Edit button as shown below and make sure to uncheck the checkbox named as "Omit Edit button" as shown below:
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 05:21 AM
Also to add, if the above solution does not work then you need to look at below points:
Cause:
One of the causes this will not work is because it is not a Related List but a "Relationship".
The record will have a name such as "REL:xxxxxx" where "xxxxx" is a sys_id of the related list.
This determines that this is actually a Relationship, and relationships will not get the edit button when you click the Enable Edit button from List control. Related lists that are based on a relationship record do not have the Edit button available because it is the relationship itself that defines the records that appear in that related list. The edit button does not make sense in that context. To move records into and out of that related list you would update the target records so that the either matched the relationship criteria or make it so they no longer match.
Resolution
You can get the Edit button not from the List Control, but directly editing the Edit Global UI Action.
"Edit" UI Action: nav_to.do?uri=sys_ui_action.do?sys_id=7fff4c3d0a0a0b3400ad3f1a1d613f74
You can either modify the condition field in the UI Action to fit your requirement, or create a new global Edit UI Action. Keep in mind that any changes to this Edit UI Action will reflect throughout the instance, since it is global.
Please go through below HI articles on the same topic:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0522170
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0722840
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0724463#:~:text=Resolution,the%20Edit%20Global%20UI%20Action.&text=You%20can%20either%20modify%20the,new%20global%20Edit%20UI%20Action.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2022 02:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2022 06:56 AM
Hi
Yes, this is possible. But I would suggest to follow the OOB functionality itself rather than building anything custom here.
I did check here how the OOB way the platform works in this scenario:
1) Navigate to Asset Table and add a field named as "Purchase Order Line" on your Asset form as shown below:
So add your Purchase order line items and it will be automatically displayed in the related list as well as shown below which you want:
This is a defined Related list and you will not be able to add "Edit" button using List Control here.
Below is the link for the defined Relationship:
https://instance.service-now.com/nav_to.do?uri=sys_relationship.do?sys_id=4061d69c37613000158bbfc8bcbe5d33
Replace "instance' with your instance name.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke