This topic contains 2 replies, has 0 voices, and was last updated by kentroylance 7 years, 7 months ago.

  • Author
    Posts
  • #21898 Score: 0

    kentroylance
    • Contributions: 0
    • Level 1

    I found some examples where they were using this call directly after creating

    var columns = new Array();

    columns[0] = new nlobjSearchColumn('internalid');

    columns[0].setSort() – getting error Code: SSS_INVALID_ARRAY_ARGUMENT Details: columns[0]

    I need to be able to dynamically set the sort attribute on a column, so I was hoping this would work. But it looks like this is not allowed.
    This is a cached copy. Click here to see the original post.

  • #21899 Score: 0

    Olivier Gagnon NC
    • Contributions: 0
    • Level 1

    Try columns[0] = columns[0].setSort() although in theory that should not make a difference. If you comment out the line with the setSort, does the search execute properly? What kind of search is this, can you show the rest of the code up to the search call?

  • #21900 Score: 0

    kentroylance
    • Contributions: 0
    • Level 1

    I apologize, I screwed up. When I switched from using nlapiSearchRecord to nlapiCreateSearch, I didn't change the arguments as well. I wrongly assumed they would be the same. This is when I wish there were some better way to do reference checking for Java Script. Thanks for your help.

You must be logged in to reply to this topic.