2 Replies Latest reply: Jul 25, 2013 6:55 AM by pmartel RSS

    My Own Tree Icons in APEX 4.2

    pmartel

      Good morning.

      I can't find any documentation about the correct syntax for the "icon" column of the SQL statement to create the tree. I don't know if it should be an URL, a class, whatever...

       

      I have seen examples from past versions, but none work. 

      If I write down a string in the icon column, say "custom_icon"

      select case when connect_by_isleaf = 1 then 0

                  when level = 1             then 1

                  else                           -1

             end as status,

             level,

             "CHI" as title,

             'custom_icon' as icon,

             "CHI" as value,

             NULL as tooltip,

             NULL as link

      from ...

       

      then on the generated HTML I can see

      <script type="text/javascript">

      var l39146525463344744Data = [

      {attributes:{"id":"CERN"},data:{"title":"CERN", "icon":"custom_icon", attributes:{}}, children: [...

       

       

      What should I do to view my own icon? I have icons in the workspace, and associated to the application itself as well... I don't mind using a class for the icons on my page...

       

      Thank you in advance

      Pedro