Javascript Bundles Documentation

Hi,

I'm trying to start developing bundles in javascript for SAGE X3, but there is a lack of documentation...

Does anyone have some documents that could be useful to me?

Best Regards

Parents Reply Children
  • 0 in reply to Vad

    Hi Vad,

    Think you probably missed one step.
    In package.json file, you must declare/publish your extension.

    Should be something like this:

    (package.json file)

    {
        ( ... other content)

        "sage":
            {
                "x3":
                    {
                        "extensions":
                            {
                                "4gl-apis":
                                    [
                                        {
                                            "module": "./<path to your source from bundle root>._js"
                                        },
                                        {
                                            "module": "./<path to your source from bundle root>.js"
                                        }
                                    ]
                             }
                     }
             }
    }

    In your case you need "module": "./testmodule/index.js" (or ._js)

  • 0 in reply to jfazenda

    It works! Thank you!