Skip to main content
danielm49702136
Participating Frequently
February 23, 2026
Answered

SDK: How to set color label to collection?

  • February 23, 2026
  • 2 replies
  • 38 views

Dear,

Is there any way to set and get the color label of a collection from the SDK ?

    Correct answer johnrellis

    Unfortunately, the color label isn’t available via the SDK.  My Any Filter plugin retrieves it from the catalog SQL database using the “sqlite3” utility.

    2 replies

    johnrellis
    Legend
    February 24, 2026

    Reading from the database with “sqlite3” is quite safe.  You have to be much, much more careful, of course, if you update the database.

     

    See this post for details about how to run “sqlite3” correctly:

     

    danielm49702136
    Participating Frequently
    February 24, 2026

    Many thanks. By now, I would just like set and get the color label of collections. I guess this will be safe for reading the label, but since I an not specialist in SQL I am afraid I can corrupt the database while writing to it

    Is there any SQL database reference?

     

    johnrellis
    johnrellisCorrect answer
    Legend
    February 24, 2026

    Unfortunately, the color label isn’t available via the SDK.  My Any Filter plugin retrieves it from the catalog SQL database using the “sqlite3” utility.

    danielm49702136
    Participating Frequently
    February 24, 2026

    thanks! I guess it is not so safe for me to access directly via sqlite directly to the database. I am not so confident with sqlite