Discussions
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.