Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
Newbie: how to check Null variable — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Newbie: how to check Null variable

Accepted answer
1
Views
1
Comments

Summary:

Hi,

I have a JS function which get value from text boxes and construct a Where clause of REST q parameter. Now how to check if any parameter has NULL value the where clause should ignore it. Like if there is no docDate then the query should work for docName only and ignore docDate.

Content (required):

FlowModule.prototype.passParam = function(form,pDocDate){

    var vParams = '\'*'+form+'*\'';  

    var query = 'docName like '+vParams+ ' AND docDate=\''+pDocDate+'\'';

    var ret = {"q":query};

    return ret;

}


Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!