If it was a Client script, I would use a "window" object to add a new element and put the string as innnerHtml property. But window is not accessible in Suitelets. I'm thinking of just using split() method, but I'm sure it's unsafe.
u
クリスピポテト
04/15/2020, 12:06 PM
you mean the HTML of the form that you created over the Suitelet?
d
Dmitry Masanov
04/15/2020, 12:08 PM
No, it's actually a statement I've created previously and saved in File Cabinet
Dmitry Masanov
04/15/2020, 12:08 PM
So I need to parse it and fetch couple numbers
u
クリスピポテト
04/15/2020, 12:13 PM
Yeah. window's in not available on Suitelet but have you tried N/xml to process the stuff into the HTML document?
d
Dmitry Masanov
04/15/2020, 12:14 PM
Yes, I tried, but I got an error parsing html as xml. I think it was about meta tag
Dmitry Masanov
04/15/2020, 12:16 PM
Though maybe you're right, it's easier to try to cast html to a proper xml. I'll try, thank you!