Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Declaring a value dynamically for the getAttribute tag
We sell products for different Vendors, and we would like to display messages on the Item Description based on the Vendor.
We created a Custom Entity Field for the Vendor (custentityglobaltxt) where we store the message and it can be displayed on the Item Description page as following:
<%=getAttribute('vendor',9,'custentityglobaltxt')%>
The problem that we encounter is the Vendor (or Preferred Vendor) is not an Attribute of Items, therefore it cannot be updated dynamically based on the Item.
We tried different things to change dynamically the ID (example change '9' to '15' based on the item) but it doesn't work, the ID has to be hard coded, so it cannot be updated dynamically with java or any othe method.