i'm using the syntax of subsidiary.logo@url for pr...
# advancedpdf
a
i'm using the syntax of subsidiary.logo@url for printing my logo in a template, like so: <img src="${subsidiary.logo@url}" style="float: left; margin: 7px;width:75%; height:75%" /> but when i swap it for a custom field of type document on the subsidiary record, i get a "string index out of bounds exception". same error when i try ${subsidiary.custrecord_field} without the @url. When i just print the field outside of an img src tag, it successfully prints both the image itself (if i do just the field ID) or the URL to the image (if I use @url). But I need it to be within an img src tag so that I can control the size, unless anyone has any way to set the size of just a field reference. Anyone run into this before or have any suggestions?
in case anyone else runs into this, i resolved it by using <@filecabinet, the new syntax for images uploaded to the file cabinet w/o making them available w/o login. i was able to do <@filecabinet nstype="image" src="${subsidiary.custrecord_field}" style="height: 120%; width: 120%" /> without error