How to modify order status screen

sry
Giga Guru

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,

1 ACCEPTED SOLUTION

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


find_real_file.png


(2) The Tab Column Macro


find_real_file.png


(3) Result:




View solution in original post

10 REPLIES 10

Chuck Tomasi
Tera Patron

Did you take a look here? There's even a video tutorial!



Configuring Cart Layouts - ServiceNow Wiki


Hi Chuck,


                              Thank you sir for your prompt reply. Yes i have seen that video tutorial but my requirement is different. I want to add a column(custom) to order status screen. For that i have written a macro and given order number as well. But this hasn't added a column to order status screen.



thanks,


Can you include some screenshots and perhaps the code to your macro so others can observe/analyze it?


Hi Chuck,


                                  I am not really good at jelly, below is the macro i have tried. basically i have a custom column "u_approval_need" on table "sc_req_item". and trying to get this column on to "order status screen".


macro.png