geezus's Profile
Rookie
11
Points

Questions
0

Answers
5

  • what’s with all the div tags?

    • 500 views
    • 1 answers
    • 0 votes
  • Rookie Asked on February 22, 2022 in SuiteScript.

    i believe, you can’t do what you want directly cuz they have limited what is availabe in that narrow method.

    So if you are trying to dynamically join in the date from the transaction then you have two choices.

    Before either choice, notice that if you export the query using toSuiteQL you’ll find that the function being used is `BUILTIN.CURRENCY_CONVERT` and it only accepts certain values.  You can use this function manually yourself so:

      1. use a formula instead. in your formula you can reference  {trandate} and manually build in the function call yourself 
      2. jump through their hoops and then export/manipulate the SQL after it is generated.
          1. use an obviously-wrong-date such as new Date(0) (this is always 1969-12-30 ) 1969-12-30
          2. dump the query toSuiteQL
          3. Search and replace the date 1969-12-30 — subsituting in "TRANSACTION".trandate instead
            1.  
        1.  

     

     

    • 348 views
    • 1 answers
    • 0 votes
  • Rookie Asked on February 20, 2022 in SuiteCloud.

    run your client entry point as 2.0.  if you wan tto write code as 2.1 then call out to other modules that use it or transpile your code down before deployment

    • 554 views
    • 1 answers
    • 0 votes
  • .  I assume you’re working either a suitelet form or a record in netsuite — as opposed to your own full html suitelet.
    does pageInit meet your use-case?  There is jQuery available which provides a domReady method

    • 377 views
    • 1 answers
    • 0 votes
  • Rookie Asked on October 17, 2021 in SuiteScript.

    
    options.id
    
    
    is the correct option for the serverWidget.Sublist api.  Seems to fail like this on an empty string. Seems like a bug — treating empty string as undefined here.  if you believe it is a bug then you could catch this error and in the catch test if you are setting empty string — if you are not then re-throw the error.  That way if it is a bug or not and they fix it or not then you’re insulated.

    • 1145 views
    • 2 answers
    • 0 votes