[ESS] How to write your very first SuiteScript - for non-developers!

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 65

  • @lpaddikt
    @lpaddikt 7 лет назад +11

    Not my first time coding but this definitely helped with the syntax of netsuite and how the modules work, Great work Eric!

  • @iwantcheesypuffs
    @iwantcheesypuffs 2 года назад

    Great demo. The last part illustrates the inherent weakness of Client script in VIEW mode. This video is a good primer for the basics of SS 2.0, syntax at a high level, how to get that script up to NetSuite., and how to deploy it. Many areas where you could of talked about more things, but didn't. And I think for this video that's perfect. A nice quick brief but complete walkthrough. Well done!

  • @malhsaurabh
    @malhsaurabh 4 года назад +1

    Superb and great tutorial. You explained very well how non developer can start.
    What I was looking today you had already explained 2 years before.

  • @zakaurrahmanranjha2668
    @zakaurrahmanranjha2668 2 года назад

    Sir yor method of teaching and elaborating the concepts is very simple and very effective, I want to learn and perform java script concepts in depth for netsuit. Thank you very much for sharing this informative and effective vedio session.

  • @sapphire1740
    @sapphire1740 Год назад

    This is a great video, thank you for creating this! It brings understanding to NetSuite and JS!

  • @stevenkelly8567
    @stevenkelly8567 5 лет назад +3

    This was very cool. Thank you for doing this. I just wrote my first script

  • @olakunle5139
    @olakunle5139 3 года назад +1

    Thank you for the easy to follow tutorial

  • @ArvindSingh-er5vf
    @ArvindSingh-er5vf Год назад

    literally understood thankyou for making this video

  • @ahmedkidwany2591
    @ahmedkidwany2591 5 лет назад +1

    That's so helpful, thank you very much for your effort

  • @sionwebsites
    @sionwebsites 5 лет назад +1

    I don't speak English, but I thank you for your help.

  • @max-zl1vm
    @max-zl1vm 5 лет назад

    Thanks for this intro. Very informative

  • @ULTRADARKSETH
    @ULTRADARKSETH 5 лет назад +4

    Great Tutorial. I et no Errors but I also get no Popup message.
    /**
    @NApiVersion 2.0
    @NScriptType ClientScript
    @NModuleScope Public
    */
    define([], function (){
    function showMessage(){
    var message = "My Test Script Popup";
    alert(message);
    }
    return {
    pageInit: showMessage
    };
    });

    • @mawilbur42
      @mawilbur42 4 года назад

      I am not getting the popup either. Same code, character for character "Hello, Michael!" instead of "Hello, Eric!"

    • @SZNITKA88
      @SZNITKA88 4 года назад +1

      I had a similar issue. I followed this video to the T and the script was not executing. I realized it was a dumb mistake on my part. Here is what I was doing wrong. When I was uploading the script to NetSuite using the + symbol a pop-up box came up. I clicked choose file and selected the script I wanted. There was another field within the pop-up called FIELD NAME. I thought I would fill in this field thinking it organizes my scripts. Nope, it replaced my script with pretty much an empty file. I kept the file name field clear and submitted the script. It works like a charm now. Not sure if you had the same issue but I figured I'd throw that out there.

  • @monicaliang220
    @monicaliang220 5 лет назад

    Thank you for your sharing

  • @snehasisdas6171
    @snehasisdas6171 4 года назад

    Very helpful, can you please share a video on enable or disable a particular textfield on checkbox check in Wrire Check page

  • @kaz-ittraininghub9388
    @kaz-ittraininghub9388 5 лет назад

    nice work
    Keep it up.

  • @muhammadkalim6946
    @muhammadkalim6946 4 года назад

    Thanks so much

  • @tusharswamy498
    @tusharswamy498 Месяц назад

    I am not getting an alert message when I click on edit, please help me out

    • @StoicSoftware
      @StoicSoftware  Месяц назад

      There's not much I can do without seeing code and the Deployment. All I can say at the moment is to go through the steps in the video again and double-check you've done them all. You can also make sure your browser is not blocking popups on the page.

  • @minhhoangnguyen1539
    @minhhoangnguyen1539 4 года назад

    thank you

  • @frewuillrodriguez7273
    @frewuillrodriguez7273 7 лет назад

    Thank you!

  • @sachingreat222
    @sachingreat222 4 года назад

    Dear Sir , m not getting checkbox for PAGE INIT FUNCTIONS , me getting little bit different interface .

  • @lucilav.kendziur1150
    @lucilav.kendziur1150 3 года назад +1

    Hi! are you still offering the suitescript course?

  • @gyuzelzarieva3824
    @gyuzelzarieva3824 5 лет назад

    Tried to complete this and got this message from NS:
    Fail to evaluate script: {"type":"error.SuiteScriptModuleLoaderError","name":"UNEXPECTED_ERROR","message":"syntax error (SS_SCRIPT_FOR_METADATA#10)","stack":[]}

  • @nikunjpatel9647
    @nikunjpatel9647 5 лет назад

    how to call single function from script file when click button in webstore?

  • @khateerzubi
    @khateerzubi 4 года назад

    eric. script deployed but not showing any pop-up message

  • @leikz11
    @leikz11 7 лет назад

    I'll just set the email field to mandatory ^__^

  • @basharawwad5451
    @basharawwad5451 4 года назад

    I would like to thank you. I have a problem, I followed all the steps and once I selected the File it asks to select SuiteScript API 1.0 not 2.0! how to change?

    • @StoicSoftware
      @StoicSoftware  4 года назад

      Your @NApiVersion tag is likely incorrect or missing.

  • @acea2438
    @acea2438 3 года назад

    The sign-up link doesn't work, please advise.

  • @timpedersen3525
    @timpedersen3525 3 года назад

    Hmm, this didn't work for me either. I've closely inspected the file I uploaded, but nothing popped up when I edited the corresponding record in NetSuite. Has something changed in NetSuite since this video was published?
    /**
    @NApiVersion 2.0
    @NScriptType ClientScript
    @NModuleScope Public
    */
    define([], function () {
    function showMessage() {
    var message = "Hi There!";
    alert(message);
    }
    return {
    pageInit: showMessage
    };
    });

    • @StoicSoftware
      @StoicSoftware  3 года назад

      File looks fine; what about the Script and Deployment records?

    • @timpedersen3525
      @timpedersen3525 3 года назад

      @@StoicSoftware Script Record Screenshots - www.screencast.com/t/qbVBXjVYvI0 and www.screencast.com/t/ZMkG0IVe2Ns, and deployment record - www.screencast.com/t/tsIAhzdwCj

    • @StoicSoftware
      @StoicSoftware  3 года назад

      @@timpedersen3525 Are you blocking popups or alerts? Assuming your user is "BC Admin", this all looks fine. Try a `console.log` statement instead of an alert, and open the browser's developer console (usually F12) before you refresh the record page.

    • @timpedersen3525
      @timpedersen3525 3 года назад

      @@StoicSoftware No pop up blockers that I can see. I looked in the chrome extensions, and there aren't anythings like pop up blockers there. I attempted changing my alert to a console.log message, but I don't see anything in the console either. Here's a video - www.loom.com/share/a39e421d9bfa43d1bbe86b3d0d70890f

    • @StoicSoftware
      @StoicSoftware  3 года назад

      @@timpedersen3525 Your file doesn't have an extension. It must have a `.js` extension, or NetSuite won't know how to load it correctly.

  • @mabisoh
    @mabisoh 4 года назад

    I hope you can help me. I think my code is an exact copy of yours but I get this error. "SuiteScript 2.0 entry point scripts must implement one script type function." Can you help me? Thank you.

    • @mabisoh
      @mabisoh 4 года назад

      /**
      @NApiVersion 2.0
      @NScriptType ClientScript
      @NModuleScope Public
      */
      define([], function() {
      function showMessage() {
      var message = "Hello, Matt!";
      alert(message);
      }
      return {
      pageinit: showMessage
      };
      });

    • @StoicSoftware
      @StoicSoftware  4 года назад +1

      @@mabisoh It's `pageInit`, not `pageinit`; notice the capitalization.

    • @mabisoh
      @mabisoh 4 года назад

      @@StoicSoftware Thank you! Appreciate it very much.

  • @TheDrumChannel
    @TheDrumChannel 6 лет назад

    Not new to programming but very new to netsuite. Is there a way to step through code and debug ?

    • @grubes34
      @grubes34 6 лет назад

      There's a debugger environment, but I don't use it myself so I don't have too much advice for you there. Check out the Slack at netsuiteprofessionals.com/; definitely someone there who can help.

  • @leikz11
    @leikz11 7 лет назад

    I am starting to learn SuiteScript, I am a Functional Consultant and want to go for extra skills. Which would you recommend for me, 1.0 or 2.0? We are currently using 1.0 on our company. Thanks!

    • @StoicSoftware
      @StoicSoftware  7 лет назад

      I just wrote about this *exact* topic for the Effective SuiteScript mailing list this week; once that email goes out on Thursday. I will post my response and reasoning publicly as well.
      Short Answer: Start with 2.0.

    • @leikz11
      @leikz11 7 лет назад

      hmmm.. ok ok, but I already started on 1.0. I'll just push my self for 2.0. Any advantage on using 2.0?

    • @StoicSoftware
      @StoicSoftware  7 лет назад

      There are many advantages to 2.0. I go through some of them in the SS2 Modules video: ruclips.net/video/YdPFCYZijPY/видео.html but the biggest advantage is going to be that moving forward, all new SuiteScript features will be added to 2.0, but not 1.0.
      Some of these new features already exist, like SFTP and the new Map/Reduce script type. New SDF and CLI functionality will only be added to 2.0. Basically, 1.0 will only get further and further behind.
      As promised, here is my public response to this question: stoic.software/why-ss2/

  • @ShaneCrenshaw
    @ShaneCrenshaw 7 лет назад

    Is there any reason that you don't link Eclipse to Netsuite to take advantage of intellisense and other useful features? Just starting Netsuite at my job and was curious.

    • @StoicSoftware
      @StoicSoftware  7 лет назад

      I do use WebStorm with a NetSuite plugin and an npm-based build pipeline when writing code. When I'm teaching someone that has never seen code before to write a script, introducing an IDE is just way too much overhead and overwhelming.

    • @ShaneCrenshaw
      @ShaneCrenshaw 7 лет назад

      Makes sense. Ok, I'd never heard of webstorm before. I'll look into it. Do you know of a good way to version control NetSuite?

    • @ShaneCrenshaw
      @ShaneCrenshaw 7 лет назад

      Also, I apologize if this is a very foolish question, but what do you mean by an "npm-based build pipeline when writing code".

    • @StoicSoftware
      @StoicSoftware  7 лет назад

      I use git for all of my version control (check out gitlab.com/stoicsoftware for my public repos). I use a branching scheme similar to gitflow (www.atlassian.com/git/tutorials/comparing-workflows#gitflow-workflow).
      I also build all my NetSuite customizations as npm packages (www.npmjs.com/). I use npm build scripts to run ESLint, JSDoc, and mocha unit tests on my project.

    • @ShaneCrenshaw
      @ShaneCrenshaw 7 лет назад

      Ok, very cool. Yeah I was curious about looking into Unit Test for NetSuite. I've never written unit test, which I know is lazy lol, but I plan on doing so this go around as I start fiddling with NetSuite.
      Thanks for your responses. Love the videos.

  • @MUHAMMADMUBUSHERASLAM
    @MUHAMMADMUBUSHERASLAM 5 лет назад

    any idea of NetSuite SuiteTalk ?

  • @learnsuitescript874
    @learnsuitescript874 5 лет назад

    Thanks this is very helpful. I am looking to write a custom workflow action that would grey-out a specified transaction column line field. Any ideas please. I have attempted this but no joy at the moment . My code below:
    /**
    *@NApiVersion 2.0
    *@NScriptType WorkflowActionScript
    *@NModuleScope SameAccount
    */
    define(['N/record'], function(){
    function greyOut(cr){
    if (cr.mode == 'edit'){
    var cr = cr.currentRecord;
    var sl = cr.getSublist({sublistId: 'item',field: 'quantity'});
    sl.isDiable = true;
    }
    }

    });

  • @andylimpert7461
    @andylimpert7461 2 года назад

    Do not click the link in his description, not a good website.

    • @StoicSoftware
      @StoicSoftware  2 года назад +1

      Oof thank you for pointing this out to me; I let the domain registration on that site lapse. I'm updating the description on all the videos with a real, appropriate link to my blog archives.

  • @nikunjpatel9647
    @nikunjpatel9647 5 лет назад

    what is extension of file for suitescript ?

    • @StoicSoftware
      @StoicSoftware  5 лет назад

      SuiteScript is just a library on top of Javascript so the file extension is .js

  • @PraydShiken
    @PraydShiken 4 года назад

    Hi eric you still active?