Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
55
rated 0 times [  60] [ 5]  / answers: 1 / hits: 27252  / 14 Years ago, wed, march 2, 2011, 12:00:00

Is there an Oracle NVL function equivalent in JavaScript/jQuery. I would be interested to see an example of how it works.


More From » jquery

 Answers
9

Ternary operator typically is used here.



For example, if you're creating a dynamic action in Apex you can do something like this:



( $v(P1_VAL1) ? $v(P1_VAL1) : $v(P1_VAL2) )


This will return the value of P1_VAL1 if it's not blank, otherwise it will return the value of P1_VAL2.


[#93504] Monday, February 28, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
noe

Total Points: 149
Total Questions: 91
Total Answers: 91

Location: Namibia
Member since Mon, Feb 21, 2022
2 Years ago
;