Start a new topic
Answered

Define Icon Dynamic Folder

Hi all,


I've tried to define custom icons using rjon (dynamic folder) but it is not working.


I am trying to define it under Properties with the CustomImageName property. I want to refer to a custom path/folder (not the default IconLibrary), and the files are PNG.


Here is what I've tried:


"Type": "Folder",

"Name": "name",

        "CredentialsFromParent": true,

        "Properties": {

            "SecureGatewayFromParent": true,

            "CustomImageName":"full path icon",

       },



Once I run the Dynamic Folder script,  I see a "?" icon instead of the icons - I am using python Script with Dynamic Folder.


Can someone help with this, please?


Thanks


Best Answer

Hi Leandro,


first, please don't nest "SecureGatewayFromParent" in a "Properties" object as it's a natively supported rJSON property.

For more information about RoyalDocument properties vs. rJSON properties and how to mix them, please see the following documentation.


Regarding images...

Currently, the only way to assign a custom icon to an object using rJSON is by using the "IconName" property. And yes, you can only specify icons from our built-in icon libraries there.

Unfortunately, there's currently no way to specify a custom icon from another source.


If you'd like to see support for setting custom images that come from other sources in a future update, please post a feature request in our "Ideas" forum.


thx,

Felix


Answer

Hi Leandro,


first, please don't nest "SecureGatewayFromParent" in a "Properties" object as it's a natively supported rJSON property.

For more information about RoyalDocument properties vs. rJSON properties and how to mix them, please see the following documentation.


Regarding images...

Currently, the only way to assign a custom icon to an object using rJSON is by using the "IconName" property. And yes, you can only specify icons from our built-in icon libraries there.

Unfortunately, there's currently no way to specify a custom icon from another source.


If you'd like to see support for setting custom images that come from other sources in a future update, please post a feature request in our "Ideas" forum.


thx,

Felix

Hi Felix, Thank you. I dropped the custom icons into the library and it is working now.
Login or Signup to post a comment