Image display with oxy_url
Posted: Wed Sep 11, 2024 8:56 pm
Hello,
We use the version 26.0.0.0 of oxygen sdk.
In our application we handle CGM files but we want to display the raster version in format JPEG.
We used to do this in our css this way :
Now we want to do it dynamically, so we try this :
with raster.ext set to .JPEG or an other extension.
It works quite well, the issue is that we only have the raster.ext value after css is first loaded.
So we need to force the refresh to see images properly.
Do you have a better way to implement this behavior ?
Is it possible to use StylesFilter class to do it ?
Thanks,
Regards,
Isabelle
We use the version 26.0.0.0 of oxygen sdk.
In our application we handle CGM files but we want to display the raster version in format JPEG.
We used to do this in our css this way :
Code: Select all
content: oxy_url(oxy_replace(oxy_unparsed-entity-uri(attr(infoIdent)), '.CGM', 'JPEG'));
Code: Select all
content: oxy_url(oxy_replace(oxy_unparsed-entity-uri(attr(infoIdent)), '.CGM', '${system("raster.ext")}'));
It works quite well, the issue is that we only have the raster.ext value after css is first loaded.
So we need to force the refresh to see images properly.
Do you have a better way to implement this behavior ?
Is it possible to use StylesFilter class to do it ?
Thanks,
Regards,
Isabelle