IBM Support

Sorting output of getSurroundingNodeList api

Question & Answer


Question

How do you sort output of getSurroundingNodeList api in IBM Sterling Order Management?

Cause

The output from the external service/user exit is sorted based on the 'distance' but the final XML generated by getSurroundingNodeList api is removing the sorting.

Answer

Scenario:
You have implemented the user exit YFSGetDistanceForNodeListUE on the getSurroundingNodeList api where you have an external integration to fetch the surrounding nodes based on zip code.

OOB product does not have an attribute in the getSurroundingNodeList api input xml that can be used to achieve this requirement. You have to customize to meet your requirement.

The getSurroundingNodeList API can be called followed by an XSL to sort it based on the attribute '@DistanceFromShipToAddress' in ascending order.

Service Details:
Start - API-getSurroundingNodeList - XSL Translator-StoreNodeListSortBasedOnDistanceFromShipToAddress.xsl - End

[{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg21963300