6.2 Populating Data in Corresponding Fields From UI

This topic provides information on Populating Data in Corresponding Fields From UI.

Unlike the other transaction screen data-segments, the ejlogged data is not required. Instead, two GET calls that happen during screen launch fetches all the details.

To fetch the corresponding Additional-Fields-Maintenance screen record based on which it will display the maintained fields for this function code.

Endpoint : CORE.GET_CMC_ADDITIONAL_ATTRIBUTES

Request URL : http://whf00peb.in.oracle.com:8003/api-gateway/cmc-additional- attributesservices/cmcadditional-attributes-services/?uiKey=fsgbu-ob-cmn-ds-additional- fields@1006

Sample Response :

{
    "data": [
    {
              "keyId": "33347926-842b-4232-af31-8c1b59612244",
              "makerId": "ABHINAV",
              "makerDateStamp": null,
              "checkerId": null,
              "checkerDateStamp": null,
              "modNo": 1,
              "recordStatus": "O",
              "authStatus": "A",
              "onceAuth": null,
              "doerRemarks": null,
              "approverRemarks": null,
              "links": [
                       {
                       "rel": "self",
                       "href": "http://10.40.158.157:8005/cmc-
                        additional-attributesservices/cmcadditional-
                        attributes-services/33347926-842b-4232-
                        af318c1b59612244"
                        }
                        ],
               "description": "Additional Fields",
               "fieldMetaData":
               "[{\"id\":\"OTH_Mobile\",\"label\":\"Mobile
               Number\",\"type\":\"NUMBER\",\"required\":true},{\"id\":\"OTH
               _From\",\"label\":\"Fr om
               Date\",\"type\":\"DATE\",\"required\":true},{\"id\":\"OTH_To_D
               ate\",\"label\":\"To
               Date\",\"type\":\"DATE\",\"required\":true}]", "uiKey": "fsgbu-
               ob-cmn-ds-additional-fields@1006", "validationMetaData":
        "[{\"id\":\"\",\"validateMethod\":\"compareFromToDates\",\"type\":\"
               \",\"args\":[{\"ty
               pe\":\"FIELD\",\"value\":\"OTH_From\"},
       {\"type\":\"FIELD\",\"value\
               ":\"OTH_To_Date\"
               }],\"errorMsg\":\"Error Date 1 must be > Date    
               2\",\"validationName\":\"Date
               Validation\"}]",
              "applicationId": "OBTFPM"
               } ],
        "paging": {
               "totalResults": 1,
               "links": {
               "next": null,
               "prev": null
                }
            }
        }