Hi I was trying to create portlets for a suiteapp ...
# suitescript
s
Hi I was trying to create portlets for a suiteapp I am working on, so I can design the suiteapp's dashboard.The help section code for 'Inline HTML Portlet Script Sample' is throwing error. Any help on how I can design a dashboard of a SuiteApp using SDF will be great.
b
usually you need to provide the error message
and the code that produces the error message
s
I am new here so I am very sorry for that. I have attached the code. It is the basic code provided in the help section of netsuite. 'A User Error Has Occurred {"type":"error.SuiteScriptError","name":"SSS_INVALID_UI_OBJECT_TYPE","message":"That operation is not supported for this type of UI object: form. It is only supported for type: html.","stack":["anonymous(N/portletWrapper)","render(/SuiteScripts/PortletTry.js:10)"],"cause":{"type":"internal error","code":"SSS_INVALID_UI_OBJECT_TYPE","details":"That operation is not supported for this type of UI object: form. It is only supported for type: html.","userEvent":null,"stackTrace":["anonymous(N/portletWrapper)","render(/SuiteScripts/PortletTry.js:10)"],"notifyOff":false},"id":"","notifyOff":false,"userFacing":false}'
error is written in the message section, since it looks crowded I am sharing the error message again
A User Error Has Occurred {"type":"error.SuiteScriptError","name":"SSS_INVALID_UI_OBJECT_TYPE","message":"That operation is not supported for this type of UI object: form. It is only supported for type: html.","stack":["anonymous(N/portletWrapper)","render(/SuiteScripts/PortletTry.js:10)"],"cause":{"type":"internal error","code":"SSS_INVALID_UI_OBJECT_TYPE","details":"That operation is not supported for this type of UI object: form. It is only supported for type: html.","userEvent":null,"stackTrace":["anonymous(N/portletWrapper)","render(/SuiteScripts/PortletTry.js:10)"],"notifyOff":false},"id":"","notifyOff":false,"userFacing":false}
b
wrong portlet type
go to the script record and change the portlet type to
Inline HTML
https://system.na0.netsuite.com/app/help/helpcenter.nl?fid=section_4671201924.html lists the different types of portlets and the members available to each
s
Thanks alot @battk that helps.