I posted this in another thread, but it is important enough to be worth its own thread. Please read this carefully as you may need to make some minor changes to your item templates to ensure your site is compatible with version 2007.0 as that version is released to you.
This has to do with a technique where custom fields are used to hold text that itself contains further item attribute tags, and the item template uses a custom field tag to access that text to obtain the inner tags.
The NetSuite tag engine cannot always discover the tags you are using when you have tags "hidden" within other values that are themselves returned using tags (tags within tags). This is the case when your item template uses a tag to reference a custom field, and the custom field contains text with more tags embedded in it. This can also happen with the item long description field contains further tags, as that field is internally retrieved using a tag. If you try to do this, you will likely get an attribute not found error. In version 11.0.6, you will get the error in some cases but not others, but in version 2007.0 you would always get the error.
The solution for this is to forward declare use of the "hidden" tags (the ones that are only referenced from within the custom field) in your item template. In version 2007, you will also need to do this with your category page templates, as "hidden" tags will no longer be supported without forward declaration in any templates.
To allow for this, three new tags are created:
<%=declareAttribute(recordType, id, fieldName)%> <%=declareCurrentAttribute(recordType, fieldName)%> <%=declareRecordAttribute(recordTypeId, id, fieldName)%>
declareAttribute takes the same parameters as getAttribute() and can be used to forward declare the existence of an attribute. recordType is usually 'item' 'infoitem' or 'sitecategory'.declareCurrentAttribute takes the same parameters as getCurrentAttribute() and can be used to forward declare the existence of a current attribute. recordType is usually 'item' 'infoitem' or 'sitecategory'.declareRecordAttribute takes the same parameters as getRecordAttribute() and can be used to forward declare the existence of a custom record attribute. recordTypeId is the id of the custom record being accessed.These tags always evaluate to nothing, so putting them in your template doesn't affect its output. But invoking them ensures the requested attribute will be available later in the template, regardless of its being nested deeply within the values of other atributes.Please examine your site if you make use of custom fields that contain further tags and make sure you reliably make use of the declare tags. Otherwise your site may experience problems when version 2007 is released to you.Thank you,- DJ