Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
How create a dynamic page with Netsuite
I am trying to create a printable version of all of my information items. I would like to be able to link to one page that will dynamically change with the information item attributes.
Is there any code I can use with Netsuite to grab get variables, so that I can use a url like this...
www.mydomain.com/print?itemNum=3
I have the simple page layout here but it is hard coded to look up info item 1...
<html> <head> <title><%=getAttribute('infoitem','1','itemid')%></title> </head> <body> <table border="0" width="740" cellspacing="0" cellpadding="6" id="table1" bgcolor="#F1F1D9"> <tr> <td height="36" valign="top" width="98%"><font size="4" face="Arial"><%=getAttribute('infoitem','1','itemid')%></font></td> <td rowspan="2" valign="top" width="1%"> <img src="/images/store/templates/common/spacer.gif" height="12" width="12"></td> <td rowspan="2" valign="top" width="1%"><%=getAttribute('infoitem','1','storedisplayimagehtml')%></td> </tr> <tr> <td valign="top"><%=getAttribute('infoitem','1','storedetaileddescription')%></td> </tr> </table> </body> </html> 0