Unable to execute If conditions in REST API

Unable to execute If conditions in REST API

beginner_2018beginner_2018 Posts: 46Questions: 19Answers: 0
edited May 2018 in Free community support

Folks,

While I am trying to get the value from SharePoint List items I encountered with the url https://datatables.net/manual/tech-notes/4 for one of the column "Sessions".

And I had written the below lines of code to over come from the null value after the going through the url.
But I find no movement with it.Can any one please do let me know what's wrong in it

{
"mData": " Session"
render: function ( row, type, set )
    {
        if ( type === null || type === " " )
          {
                 return "Select";
           }
        else 
          {
                return row.Name;
           }
      } );
}

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Happy to take a look at a test case showing the issue, or use the debugger to give us a trace.

    Allan

This discussion has been closed.