This topic contains 1 reply, has 0 voices, and was last updated by starlingMark 6 years, 6 months ago.

  • Author
    Posts
  • #17908

    leacelosacolumna

    Has anyone ever successfully added an image on a suitelet list? Here’s my sample code:

    var arList = ui.createList({

    title : “A/R Aging with % of Total”

    });

    arList.addColumn({

    id : ‘column9’,

    type : ui.FieldType.IMAGE,

    label : “Image”

    });

    arList.addRow({

    row : { column9 : imgValue }

    })

    My problem is that NetSuite resizes the image. I want to add the image using the original image size. I proved this by inspecting the element. NetSuite is adding the following parameters to the image: resizeid=-3&resizeh=80&resizew=80

    “https://system.na2.netsuite.com/core/media/media.nl?id=266706&c=1124108&h=a097c96ea8d 53179fb8b&resizeid=-3&resizeh=80&resizew=80”

    Anyone has a trick? I tried setting this type to INLINEHTML, but it’s throwing out an error saying “invalid type argument”.
    This is a cached copy. Click here to see the original post.

  • #17909

    starlingMark

    Have you tried making the field text/long text and just setting the value to the anchor tag?

You must be logged in to reply to this topic.