Built in Product Catalog APP does not display images on user that came from the portal

Built in Product Catalog APP does not display images on user that came from the portal

This is the code I found showing the image . It is not displaying corretly when I tried it from the portal. I tried giving all the permission to the user but without success. if I am admin or users from Zoho creator they can see it normally.




  1. <%
  2. getProdDetails = Add_Product[ID == recID.toLong()];
  3. getPrimaryImg = Add_Product_Images[Product_Name == recID.toLong() && Primary_Pic].ID;
  4. getImgs = Add_Product_Images[Product_Name == recID.toLong()].ID.getAll();
  5. imgList = {};
  6. imgIDList = {};
  7. for each  eachImages in getImgs
  8. {
  9. getImg = Add_Product_Images[ID == eachImages.toLong()];
  10. imgstr = getImg.Product_Image.replaceAll("/sharedBy/appLinkName/viewLinkName/fieldName",zoho.appuri + "Shared_Report_Image/Product_Image");
  11. imgstr = imgstr.replaceAll("<img src = ","<img style='height:100%;' src=");
  12. imgList.add(imgstr);
  13. imgIDList.add(getImg.ID);
  14. }
  15. %>