Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  CustomTab: slash in foldername

    Posted Tue December 02, 2025 04:01 AM

    Hi,

    We have a folder we want to add into a custom tab, that has a slash ("/") in it. Does anyone know how to refer to it in the spec?

    The placement is Gruppeinnhold > Analytics > 2. Avdelingsvis innhold > Kategori > OTC/HV

    The search path is /content/folder[@name='Analytics']/folder[@name='2. Avdelingsvis innhold']/folder[@name='Kategori']/folder[@name='OTC/HV']

    The path would be

    "path": ".public_folders/Analytics/2. Avdelingsvis innhold/Kategori/OTC/HV",

    where the slash in OTC/HV is in the folder name

    I have tried single and double back slash ("\") before the slash, but no luck

    "path": ".public_folders/Analytics/2. Avdelingsvis innhold/Kategori/OTC\/HV",

    "path": ".public_folders/Analytics/2. Avdelingsvis innhold/Kategori/OTC\\/HV",

    We can't change the folder name, as it has been around a long time, and people have bookmarked, schedules etc the folder and/or its content.



    ------------------------------
    Sandeep Dhirad
    ------------------------------


  • 2.  RE: CustomTab: slash in foldername

    Posted Tue December 02, 2025 04:21 AM

    Hi Sandeep,

    same issue here as well. We ended up renaming the folder.

    If there is a solution, I would also like to know how to fix the problem.



    ------------------------------
    Robert Dostal
    Principal Expert BI
    GEMÜ Gebr. Müller Apparatebau GmbH & Co. KG
    Kupferzell
    ------------------------------



  • 3.  RE: CustomTab: slash in foldername

    Posted Wed December 03, 2025 09:05 AM

    An alternative would be to refer to the folder ID, but not been able to make that work. Does anyone know if it's possible to refer to the ID instead of the path?



    ------------------------------
    Sandeep DHIRAD
    ------------------------------



  • 4.  RE: CustomTab: slash in foldername

    Posted Wed December 03, 2025 09:55 AM
    Edited by Sandeep DHIRAD Thu December 04, 2025 02:05 AM

    I found a solution.

    Using hex througout the path, replacing special characters, ie space and slash, and then it works

    "path": ".public_folders/Analytics/2.%20Avdelingsvis%20innhold/Kategori/Kategori%20OTC%2FHV",

    cc: @Robert Dostal



    ------------------------------
    Sandeep DHIRAD
    ------------------------------



  • 5.  RE: CustomTab: slash in foldername

    Posted Thu December 04, 2025 03:34 AM

    Hi,

    Based on Sandeep's answer, I did not have a chance to test, but I believe the following javascript code (with encodeURIComponent) should work for you:

    const path = ".public_folders/Analytics/2. Avdelingsvis innhold/Kategori/OTC/HV";

    const safePath = encodeURIComponent(path);

    console.log(safePath);

    Best regards,



    ------------------------------
    Patrick Neveu
    BSL Consulting
    IBM Champion
    ------------------------------