This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UIX v2: API for getting value list icon URL?

Value list items can have an icon. In M-Files COM API we used to have GetIconAsPNG() https://developer.m-files.com/APIs/COM-API/Reference/index.html#MFilesAPI~ValueListItem~GetIconAsPNG.html

Do we have a corresponding API call usable in UIX v2?

I could only find API calls for getting icons for object type and file type (good!) in the ShellUI interface.

Ideally, we'd like to get an URL, we don't need binary PNG data.

Parents
  • It looks like this could be a limitation of the UIXv2 right now.  I will add this as an improvement request.

    At the moment I think the only option would be to get the data via a vault extension method call.  You could encode it server-side to base64, then return that as and use it as a URI for your image.  Obviously cache the result so that you don't need to retrieve it lots of times.

Reply
  • It looks like this could be a limitation of the UIXv2 right now.  I will add this as an improvement request.

    At the moment I think the only option would be to get the data via a vault extension method call.  You could encode it server-side to base64, then return that as and use it as a URI for your image.  Obviously cache the result so that you don't need to retrieve it lots of times.

Children