This topic contains 0 replies, has 0 voices, and was last updated by david.lyle 6 years, 6 months ago.

  • Author
    Posts
  • #21231

    david.lyle

    I am trying to write my first Portlet by embedding a youtube video. I am getting this error message on the Portlet:

    Code:
    A User Error Has Occurred

    {"type":"error.SuiteScriptModuleLoaderError","name":"MODULE_DOES_NOT_EXIST","message":"Module does not exist: /SuiteApps/YoutubePortletExample.js","stack":[]}

    My portlet is pretty simple:

    Code:
    /**

    * @NApiVersion 2.x

    * @NScriptType Portlet

    */

    /*

    * Adapted from Online Help article.

    *

    */

    define(

    [],

    function() {

    function _render(params) {

    params.portlet.title = 'SuiteScript 2.0 video';

    var content = '<iframe width="560" height="315" src="https://www.youtube.com/embed/I-7HzlhyXNI&quot; frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>'

    params.portlet.html = content;

    }

    return {

    render : _render

    };

    });
    Can anyone help me troubleshoot? I'm fairly new to Netsuite and am using a temporary training account. Thank you
    This is a cached copy. Click here to see the original post.

You must be logged in to reply to this topic.