This instructional material aims to guide professionals in troubleshooting and resolving issues concerning the inconsistent display of data in two Advanced PDF forms for the same transaction within Netsuite.
Specifically, we will address the problem of images not appearing in one of the forms, despite the code similarities and data source.
1. Review the Code:
Begin by carefully examining the code snippet related to image display. It is crucial to ensure that all the necessary elements are correctly implemented.
<td colspan="7" line-height="150%" style="vertical-align:top;">
<#if item.custcol_item_image_url?starts_with("http")>
<img src="${item.custcol_item_image_url}" style="height:40px;width:40px;margin:1px"/>
</#if></td>
2. Verify Image Source:
Check the source of the images being displayed. Confirm that the images' URLs are correctly specified and accessible. Use the following troubleshooting steps:
- Ensure that the image URLs specified within the code (item.custcol_item_image_url) are correctly mapped to the Sales Order object in Netsuite.
- Verify that the URLs begin with "http," indicating that they are valid addresses.
- Manually attempt to access the image URLs in a browser to ensure they are accessible to all users within the organization.
3. Inspect Data Sources:
Confirm that both the Sales Proposal and Order Acknowledgement forms derive their data from the Sales Order in Netsuite. Confirm that the relevant fields in the Sales Order are populating correctly.
- Check if the ${item.custcol_xyz} field, which successfully references data from the Sales Order, is accurately populated in both forms. This helps ensure data consistency.
- Ensure that the necessary data fields, such as item.custcol_item_image_url, exist in the Sales Order and that the required data is populated for both forms.
4. Modify the Code:
Consider making the following adjustments to the code to troubleshoot the image display issue:
- Cross-check the code between the Order Acknowledgement and Picking Ticket forms for any subtle differences, ensuring that both forms use identical variables and methods.
- Try incorporating the use of the "record.item" syntax, if applicable, to ensure proper data retrieval in the Picking Ticket form.
5. Seek Professional Assistance:
If the issue persists after following the above steps, consider seeking the assistance of Netsuite professionals who specialize in troubleshooting Advanced PDF forms.
They can provide invaluable insights, identify any potential system bugs, and offer tailored solutions to address the problem.
By carefully reviewing the code, verifying image sources, inspecting data sources, modifying the code, and seeking professional help if necessary, professionals can effectively address image display issues in Netsuite Advanced PDF forms.