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

Ajai S Nair
Giga Guru

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

 

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,


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:




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


Hello @oanh_nguyen @Oanh Nguyen 

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