<@U2ED4NDEK> you could try loading a Suitelet in a...
# suitescript
m
@jonny you could try loading a Suitelet in an iframe
j
Thanks @michoel putting the logic in a Suitelet does work. Strange that I would have to do that work around.. I switched from the Form type portlet, which does allow client scripts, to inline html because formatting html in table cells is a bit of a bear. Hopefully formatting in an iframe isn’t as cumbersome.
m
@jonny Also, at least in SS 1.0 there is an form.setScript() method to attach client scripts in portlets. My guess is there is an equivelant in SS 2.0 as well.
Looks like it is these guys:
j
@Michael Pope Those methods only exist when the Portlet is of type
Simple Form
. Then the portlet becomes a form that you can set a client script on. If the portlet is
inlinehtml
then it is not a form and just displays static html.
m
Ah, your right!