How can include a library like bootbox in a client...
# suitescript
a
How can include a library like bootbox in a client script? I added the cdn to the page using a UE script but that didn't work.
🥺 1
s
I haven't used bootstrap, but the general concept I've used for react is (all in inlinehtml field) 1. add to page, get specific libraries/stylesheets 2. add the div 3. read the contents from the React file it ends up looking something like this
Copy code
rec.setValue('custrecord_inlinthtmlfield',
            react.getReactLibraries() + // this is the overall package
            react.getSpecificLib(specificLibName) + // this is the specific one I am using
            '<div id="someReactDivName" ></div>' + 
            react.renderReactElement('fnOnTheReactFile', 'someReactDivName', 'reactFileName') // just help to read the file and set into proper place on the page
        );
Where
react
is a helper file that we made that goes and does all that stuff
we used unpkg to add everythign to the page, you can probably do the same
a
If I do it all in an inlinehtml field how can I call netsuite api's like record.create?