<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Re: Add space information to app information area - Status changed to: Closed - Archived in Suggest an Idea</title>
    <link>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idc-p/2099793#M13072</link>
    <description />
    <pubDate>Wed, 02 Aug 2023 14:58:52 GMT</pubDate>
    <dc:creator>Ideation</dc:creator>
    <dc:date>2023-08-02T14:58:52Z</dc:date>
    <item>
      <title>Add space information to app information area</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idi-p/1866697</link>
      <description>&lt;P&gt;Similar to the post on &lt;A title="App Owner Information in the app information section" href="https://community.qlik.com/t5/Suggest-an-Idea/App-Owner-Information-in-the-app-information-section/idi-p/1725480" target="_blank" rel="noopener"&gt;expanding the app information section to include app owner information&lt;/A&gt;, so too could this area use further expansion to include space information (ex. Personal or Managed Space - [space name] or Shared Space - [space name]).&lt;/P&gt;
&lt;P&gt;Working on same named apps across the variety of spaces can be confusing without further context. Enriching the app information area could greatly aid development by adding a key breadcrumb and indicator for which app and space you are working or viewing. Thanks!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Please add space info" style="width: 923px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67915i0445E0202C45B10F/image-size/large?v=v2&amp;amp;px=999" role="button" title="space_info.png" alt="Please add space info" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Please add space info&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 16:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idi-p/1866697</guid>
      <dc:creator>psublue98</dc:creator>
      <dc:date>2021-12-08T16:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add space information to app information area - Status changed to: Open - Collecting Feedback</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idc-p/2014753#M11178</link>
      <description />
      <pubDate>Fri, 09 Dec 2022 12:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idc-p/2014753#M11178</guid>
      <dc:creator>Ian_Crosland</dc:creator>
      <dc:date>2022-12-09T12:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add space information to app information area</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idc-p/2014801#M11191</link>
      <description>&lt;P&gt;Thank you for considering! Couple times this past week where this would have been helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 13:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idc-p/2014801#M11191</guid>
      <dc:creator>psublue98</dc:creator>
      <dc:date>2022-12-09T13:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add space information to app information area</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idc-p/2016126#M11314</link>
      <description>&lt;P&gt;Also requested here:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Ideas-Internal-Only/Show-space-details-in-App-Overview/idi-p/2009564" target="_blank"&gt;https://community.qlik.com/t5/Ideas-Internal-Only/Show-space-details-in-App-Overview/idi-p/2009564&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 18:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idc-p/2016126#M11314</guid>
      <dc:creator>Meghann_MacDonald</dc:creator>
      <dc:date>2022-12-13T18:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add space information to app information area</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idc-p/2048163#M12171</link>
      <description>&lt;P&gt;Not a very good solution, but with some adjustment in the code from one of the analyzer apps, it is possible to retrieve the space of the app using the REST api connector.The following works, but this was&amp;nbsp; a very, very, very quick fix, so this can for sure be simplified a lot, and probably a good idea, to use a variable for the space name and drop the tables. The code below is a modification of 2 of the sections of the script in the&amp;nbsp;Entitlement analyzer app. Ideally it should be available in the description area of the app, and preferably also as a function one could call from within the app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// config

/* 
1. Fully qualified domain name for your tenant. 
		Example: 'company.us.qlikcloud.com'
*/
SET vu_tenant_fqdn = '&amp;lt;tenant&amp;gt;.&amp;lt;region&amp;gt;.qlikcloud.com';

/*
2. The name of the REST connection that will be used. You must first create a valid REST connection to any endpoint to Qlik Sense tenant.
		Example: '&amp;lt;Space&amp;gt;:&amp;lt;Connection Name&amp;gt;'
        			Note: ':&amp;lt;Connection Name&amp;gt;' is the relative path which will check for a connection in the current space.
		Example Connection: 
					URL: 			https://&amp;lt;tenant-name&amp;gt;.&amp;lt;region&amp;gt;.qlikcloud.com/api/v1/items
					Header: 		"Authorization"
					Header Value: 	"Bearer &amp;lt;token&amp;gt;"
		For reference on how to connect: 
					https://qlik.dev/tutorials/generate-your-first-api-key
*/
SET vu_rest_connection = '&amp;lt;Name of space with connection&amp;gt;:REST_connection';





//---------------------------------------------------------
// code



Sub get_spaces

	SET vParams = 'limit=100';  
    
    [Spaces_pre]:
    Load * Inline [SpaceID];

  	Do
  
        LIB Connect To '$(vu_rest_connection)';

        RestConnectorMasterTable:
        SQL SELECT 
            "__KEY_root",
            (SELECT 
                "id",
                "type",
                "ownerId",
                "tenantId",
                "name",
                "description",
                "createdAt",
                "createdBy",
                "updatedAt",
                "__KEY_data",
                "__FK_data",
                (SELECT 
                    "__KEY_meta",
                    "__FK_meta"
                FROM "meta" PK "__KEY_meta" FK "__FK_meta"),
                (SELECT 
                    "__KEY_links",
                    "__FK_links"
                FROM "links" PK "__KEY_links" FK "__FK_links")
            FROM "data" PK "__KEY_data" FK "__FK_data"),
            (SELECT 
                "__KEY_links_u0",
                "__FK_links_u0",
                (SELECT 
                    "href" AS "href_u2",
                    "__FK_next"
                FROM "next" FK "__FK_next")
            FROM "links" PK "__KEY_links_u0" FK "__FK_links_u0")
        FROM JSON (wrap on) "root" PK "__KEY_root"
        WITH CONNECTION (  
          URL "https://$(vu_tenant_fqdn)/api/v1/spaces?$(vParams)"
        );

        Concatenate (Spaces_pre)
        Load	
            [id] AS SpaceID,
            Capitalize([type]) AS SpaceType,
            [name] AS SpaceName
        Resident RestConnectorMasterTable
        Where not IsNull([__FK_data]);

        NextURL:
        Load	
        	[href_u2] AS NextURL
        Resident RestConnectorMasterTable
        Where not IsNull([__FK_next]);

        Drop Table RestConnectorMasterTable;

        LET vParams = SubField(Peek('NextURL',0,'NextURL'),'?',-1);
        LET vNextURLRows = NoOfRows('NextURL');

        Drop Table NextURL;
    
	Loop while $(vNextURLRows)&amp;gt;0;
  
    Concatenate(Spaces_pre)
    Load
        'Personal' AS SpaceID,
        'Personal' AS SpaceName,
        'Personal' AS SpaceType
    AutoGenerate(1);

    AllSpacesMap:
    Mapping Load Distinct
        SpaceID,
        1
    Resident Spaces_pre;

End Sub



Sub get_apps

	SET vParams = 'limit=100';
  
  	Do
  
        LIB Connect to '$(vu_rest_connection)';

        RestConnectorMasterTable:
        SQL SELECT 
            "__KEY_root",
            (SELECT 
                "name" AS "name_u0",
                "resourceCustomAttributes",
                "resourceUpdatedAt",
                "resourceType",
                "resourceId",
                "resourceCreatedAt",
                "id" AS "id_u0",
                "createdAt",
                "updatedAt",
                "creatorId",
                "updaterId",
                "tenantId",
                "isFavorited" AS "isFavorited_u0",
                "ownerId" AS "ownerId_u0",
                "description" AS "description_u0",
                "__KEY_data",
                "__FK_data",
                (SELECT 
                    "_resourcetype",
                    "createdDate",
                    "description",
                    "dynamicColor",
                    "hasSectionAccess",
                    "id",
                    "lastReloadTime",
                    "modifiedDate",
                    "name",
                    "originAppId",
                    "owner",
                    "ownerId",
                    "publishTime",
                    "published",
                    "spaceId",
                    "thumbnail",
                    "encrypted",
                    "__FK_resourceAttributes"
                FROM "resourceAttributes" FK "__FK_resourceAttributes"),
                (SELECT 
                    "__KEY_links",
                    "__FK_links"
                FROM "links" PK "__KEY_links" FK "__FK_links"),
                (SELECT 
                    "__KEY_meta",
                    "__FK_meta"
                FROM "meta" PK "__KEY_meta" FK "__FK_meta")
            FROM "data" PK "__KEY_data" FK "__FK_data"),
            (SELECT 
                "__KEY_links_u0",
                "__FK_links_u0",
                (SELECT 
                    "href" AS "href_u4",
                    "__FK_next"
                FROM "next" FK "__FK_next")
            FROM "links" PK "__KEY_links_u0" FK "__FK_links_u0")
        FROM JSON (wrap on) "root" PK "__KEY_root"
        WITH CONNECTION (  
        	URL "https://$(vu_tenant_fqdn)/api/v1/items?$(vParams)"
        );


        [Apps]:
        Load	
            [name_u0] AS AppName,
            [resourceId] AS appId
         Resident RestConnectorMasterTable
        Where not IsNull([__FK_data])
        and  [resourceId]=documentname()
        and resourceType='app' or resourceType='qvapp' AND EXISTS(appId,[resourceId])
        ;


        //left keep(Apps)
       AppDetails:
        Load	
            [id] AS appId,
            [owner] AS AppOwnerName,
            If(ApplyMap('AllSpacesMap',spaceId)&amp;lt;&amp;gt;1,'Personal',spaceId) AS SpaceID
        Resident RestConnectorMasterTable
        Where not IsNull([__FK_resourceAttributes]) AND EXISTS(appId,[id])
        and id=documentname();

		noconcatenate
        NextURL:
        Load	
            [href_u4] AS NextURL
        Resident RestConnectorMasterTable
        Where not IsNull([__FK_next]);

        Drop Table RestConnectorMasterTable;

        LET vParams = SubField(Peek('NextURL',0,'NextURL'),'?',-1);
        LET vNextURLRows = NoOfRows('NextURL');

        Drop Table NextURL;

	Loop while $(vNextURLRows)&amp;gt;0;
  
END SUB;

Call get_spaces;
Call get_apps;



Left keep(AppDetails)
Spaces:
Load * resident Spaces_pre;
Drop table Spaces_pre;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2023 00:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idc-p/2048163#M12171</guid>
      <dc:creator>E_Røse</dc:creator>
      <dc:date>2023-03-12T00:35:02Z</dc:date>
    </item>
    <item>
      <title>From now on, please track this idea from the Ideation por...</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idc-p/2099792#M13071</link>
      <description>&lt;P&gt;From now on, please track this idea from the Ideation portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A title="Link to new idea" href="https://ideation.qlik.com/app/#/case/274655" target="_blank" rel="noopener"&gt;Link to new idea&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Meghann&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;EM&gt;NOTE: Upon clicking this link 2 tabs may open - please feel free to close the one with a login page. If you &lt;STRONG&gt;only&lt;/STRONG&gt; see 1 tab with the login page, please try clicking this link first: &lt;STRONG&gt;&lt;A title="Authenticate me!" href="#" target="_blank" rel="noopener"&gt;Authenticate me!&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;t&lt;/EM&gt;&lt;EM&gt;hen try the link above again. Ensure pop-up blocker is off.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 14:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idc-p/2099792#M13071</guid>
      <dc:creator>Meghann_MacDonald</dc:creator>
      <dc:date>2023-08-02T14:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add space information to app information area - Status changed to: Closed - Archived</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idc-p/2099793#M13072</link>
      <description />
      <pubDate>Wed, 02 Aug 2023 14:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Add-space-information-to-app-information-area/idc-p/2099793#M13072</guid>
      <dc:creator>Ideation</dc:creator>
      <dc:date>2023-08-02T14:58:52Z</dc:date>
    </item>
  </channel>
</rss>

