Creating and attribute with a form with Image URL
Image URL Attribute:
<img src='images\Folder\UBD\nstudios\N/A.png' height='120' width='163'><img src='images\Folder\UBD\nstudios\BCU.png' height='120' width='163'>
<img src='images\Folder\UBD\nstudios\IUM.png' height='120' width='163'>
<img src='images\Folder\UBD\nstudios\WAR.png' height='120' width='163'>
<img src='images\Folder\UBD\nstudios\TVN.png' height='120' width='163'>
<img src='images\Folder\UBD\nstudios\N/A.png' height='120' width='163'>
<IMG src="../images/1.png" height=80 width=400>
Concat("../images/Dash/", Id, ".png")
ApplySimple(" '<img src=../images/Dash/'+ltrim(str(#0))+'.png height=120 width=120>' ", Id)
IF((StudioName = "OURS"), "Ours", "Competitive")
ApplySimple(" '<img src=../images/Dash/'+str(#0)+'.png>' ", Id)ApplySimple( " '<img src=images/Dash/'+ltrim(str(#0))+'.png>' ", Id)
ApplySimple("'<img src= './images/Dash/#0.png' height='120' width='163'>' ", Id)
ApplySimple("'<img src=' x'7f' 'http://172.26.18.10/WEBSERVER/arrow.gif' x' 7f' ' OnClick=' x'7f' 'Javascript:alert(' x'7D' #0 x'7D' ') ' x'7f' '>' " #0; ATTRIBUTE_NAME)
ApplySimple(" '<img src=http://localhost/MicroStrategy/images/'+Cstr(#0)+'.jpg>' "; )
ApplySimple("case when #0 = 'chicago' then '<font color=red>' + #0 + '</font>' else #0 end", [City])
ApplySimple("'<img src=' + #0 + '> ' + #1", [Object_Image], [Object_Desc])
In MicroStrategy Web, image set as "Picture" type attribute form does not auto fit to the size of report grid in MicroStrategy Web. It displays as the original image size.
1. Resize the image itself to fit the desired display effect;
2. If resize image is not feasible, use HTML tag type attribute form instead of use Picture type
In HTML tag, use <img src=xxx HEIGHT= WIDTH= /> to define the image URL and size.
Possible Causes:
This is working as designed in MicroStrategy Web.
How to Fix:
An enhancement request has been logged to add this feature into MicroStrategy Web.
WORKAROUND:
1. Resize the image itself to fit the desired display effect;
2. If resize image is not feasible, use HTML tag type attribute form instead of use Picture type
In HTML tag, use <img src=xxx HEIGHT= WIDTH= /> to define the image URL and size.
Additional TN: https://community.microstrategy.com/s/article/KB19021-How-to-create-an-attribute-form-as-a-hyperlink-or?language=en_US
Additional TN: https://community.microstrategy.com/s/article/KB19021-How-to-create-an-attribute-form-as-a-hyperlink-or?language=en_US
Comments
Post a Comment