Well we may say that null means no value, but then on the other hand, each and every technical personnel needs to handle null value in their code, irrespective of the language that is used for coding purpose, and OAF is no exception.
So, how do we check a null value in OA framework? Well that’s very easy; just have a look at the following code.
Before we begin I assume that you have an OAF page (xxTrialPG) and a controller (xxTrialCO). Also I assume that you have created a string xxTrialString on which we will have the null value validation.
if(xxTrialString==null)
{
// your business logic goes here
}
Or you can also write
if(xxTrialString!==null)
{
// your business logic goes here
}
And it is handled.. so simple isn’t it.
Thanks for Reading.