Tuesday, June 8, 2021

OIC - NVL in javascript

NVL lets us to replace null (returned as blank) with a string in the results of a query. For example, 

NVL(value1, value2)

If value1 is null then it will be replaced with value2.


Javascript:

function nvl(value,nullValue){

var output = "";

if (value == null || value == "")

{

output = nullValue;

}else {

output = value;

}

return output;

}

No comments:

Post a Comment

Featured Post

OIC - Handling Base64 Encoded JSON NXSD Parsing Issue in Oracle Integration Cloud (OIC)

๐Ÿ“Œ Problem Statement In a Real-Time REST integration in Oracle Integration Cloud, the source system sends Base64 encoded JSON. Flow: Receive...