- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2016 02:39 PM
Hi all,
hope all having good time. Recently came up with a question to modify order status screen to add a custom field. Tried using "Maintain Cart Layouts" and adding a column macro suggested by previous community questions but didn't get success. I have no idea how to get a custom field on order screen. Could anyone have any idea to get this done.
In one of the widget macro called "sc_order_status_view_cart_summary" i found "com.glideapp.servicecatalog_cart_table" mentioned in the macro code, but i don't understand what is this. Attached are screen shots about the requirement, please suggest any useful tips.
thanks,
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2017 10:12 AM
Hi sry,
It's been a while, but I hope what I found will help you :
Open the cart layout Order Status : Service Catalog > Catalog Definition > Maintain Cart Layouts >
Tab Column Macro, click New
Insert the following line in between the j:jelly tag
${jvar_sc_req_item.getGr().getDisplayValue('u_approval_need')}
Set value for Title and Order. They will be used for column title (in the heading) and displaying order of the column, respectively.
The below example shows the column "Order" at position 100 of a request generated by tge Order Guide
(1) Macro
(2) The Tab Column Macro
(3) Result:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2016
07:42 AM
- last edited on
‎09-16-2023
07:34 PM
by
ServiceNow
These links may help you for this:
check the comments in the below link:
Customize your service catalog's shopping cart
Add a custom description field Value on Order Status Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2016 08:48 AM
Hi Ajai,
It seems the second post "Add a custom description field value on order status page" shedding some light but i am not good at Jelly scripting. like i have explained to chuck, i have a custom field "u_approval_need" on table "sc_req_item" and trying to get this column text on to "order status screen". if you guys could help me writing macro that would be great.
thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2017 10:12 AM
Hi sry,
It's been a while, but I hope what I found will help you :
Open the cart layout Order Status : Service Catalog > Catalog Definition > Maintain Cart Layouts >
Tab Column Macro, click New
Insert the following line in between the j:jelly tag
${jvar_sc_req_item.getGr().getDisplayValue('u_approval_need')}
Set value for Title and Order. They will be used for column title (in the heading) and displaying order of the column, respectively.
The below example shows the column "Order" at position 100 of a request generated by tge Order Guide
(1) Macro
(2) The Tab Column Macro
(3) Result:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2017 01:23 PM
Thank you very much Oanh for posting this solution. we actually did the same thing for this part. Ajai has already refer a previous community post that helped us to fix this. we even marked it as helpful. Now yours clearly explaining i am marking it as correct answer.
thanks,
RY
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2022 08:04 AM
Hello
Just wondering if it's still possible? or do we have to clone the widget to add the "Requested For" on the order status page?
I tried your steps but had no success.
Thanks,
G