- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 02:56 AM - edited 12-17-2024 02:58 AM
Hi all,
Could you please help me find out how this layout is appearing on the order form in the CSM/FSM Workspace please? I have checked the order form layout, but this section is not configured there. I need to update the fields appearing in this layout.
Thanks in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 08:35 AM
After overriding you can review the return JSON by running the following from Scripts – Backgroud.
var orderInfo = new sn_ind_tmt_orm.OrderUtil().getOrderDetailsJSON('Put SysId of order here');
gs.info(JSON.stringify(orderInfo));
Overriding OrderUtilOOB
This script include extends the script include OrderUtilOOB.
The method in OderUtilOOB which needs to be overridden is generateDetailsJSON.
In the method generateDetailsJSON the part of the JSON which displays in the Order Summary Container is the contact_fields of contact_card.
You will need to copy the whole method generateDetailsJSON and put it into the script include OrderUtil and then modify contact_fields to display the desired information. For example you could remove State from the contact_fields. In the image below State which was below City has been removed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 08:35 AM
After overriding you can review the return JSON by running the following from Scripts – Backgroud.
var orderInfo = new sn_ind_tmt_orm.OrderUtil().getOrderDetailsJSON('Put SysId of order here');
gs.info(JSON.stringify(orderInfo));
Overriding OrderUtilOOB
This script include extends the script include OrderUtilOOB.
The method in OderUtilOOB which needs to be overridden is generateDetailsJSON.
In the method generateDetailsJSON the part of the JSON which displays in the Order Summary Container is the contact_fields of contact_card.
You will need to copy the whole method generateDetailsJSON and put it into the script include OrderUtil and then modify contact_fields to display the desired information. For example you could remove State from the contact_fields. In the image below State which was below City has been removed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 11:22 PM
Thank you Kenny. This solution is wonderful!