I apologize for this noob question before I ask it...
# suitescript
m
I apologize for this noob question before I ask it, but looking for some conceptual guidance. Trying to build a homegrown item configurator and would like to display an image based on field selections on a custom record. I can't seem to get an 'inline HTML' field to set and display an image using the fieldChanged Client Script entry point (SS 2.0). Is this the best way to achieve this? Trying to throw the image in real time while the record is in edit mode.
w
I have a feeling that inline html fields aren't editable in client-scripts. You might have better luck editing the DOM on the fieldChange.
s
Building a custom configurator sounds like a job for a SPA using NS Restlet/Suitelet only as an API
w
@stalbert when you are talking about a SPA. You mean "Single Page Application"? Can you share any examples of this in NS?
s
yes. We've created a variety of these using Angular and Vue. Having the massive ecosystem of Angular/Vue/your choice library makes it actually real web dev, rather than the half baked thing they call Suitelets.
w
Anything you can show a partly obfuscated screenshot of?
s
I don't have a screenshot handy but you can quite literally do anything you want with the screen - you're using plain old web frameworks in their full glory.
none of the limitations of UI Suitelets. This is the reason I only recommend UI (imperative coded) suitelets if it's very trivial and you want the page to look like NS.
anything beyond the trivial and I'd first reach for plain HTML
anything fancier and I reach for a SPA experience using mostly Angular these days for LOB apps. You upload the assets for the app to the file cabinet and serve it from there. Client-side SPA calls Suitelets/Restlets