<?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>topic Access extension properties panel values dynamically in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Access-extension-properties-panel-values-dynamically/m-p/1509162#M9503</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm building an extension in which settings I need to insert xrfkey to communicate with the server. My problem is that I would like to generate a dropdown list with reload tasks but to do that I need to send a request to that server containing that xrfkey previously entered by user. How can I achieve building that list dynamically based on provided parameters instead of hardcoding it as&amp;nbsp; in below&amp;nbsp;file with properties panel code? Also attached screenshot of I would like to achieve dynamically&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;define([], function () {
    'use strict'

    return {
        type: "items",
        component: "accordion",
        items: {
            extensionSettings: {
                type: "items",
                label: "Extension Settings",
                items: {
                    xrfkey: {
                        ref: "&lt;STRONG&gt;props.xrfkey&lt;/STRONG&gt;",
                        label: "Qlik Sense Xrfkey",
                        type: "string"
                    },
                    tasksDropdown: {
                        type: "string",
                        component: "dropdown",
                        label: "Task",
                        ref: "props.taskId",
                        options: function () {
                            return $.ajax({
                                type: "GET",
                                url: "https://serveraddress/hdr/qrs/task/full?Xrfkey=&lt;STRONG&gt;abcdefghijklmnop&lt;/STRONG&gt;",
                                headers: {
                                    "X-Qlik-Xrfkey": &lt;STRONG&gt;"abcdefghijklmnop"&lt;/STRONG&gt;,
                                    "hdr-usr": "domain\\username"
                                }
                            }).then(function (response) {
                                return response.map(function (item) {
                                    return {
                                        value: item.id,
                                        label: item.name
                                    }
                                })
                            })
                        },
                        defaultValue: ""
                    }
                }
            }
        }
    }
})&lt;/PRE&gt;</description>
    <pubDate>Mon, 19 Nov 2018 15:26:47 GMT</pubDate>
    <dc:creator>datawizards1234</dc:creator>
    <dc:date>2018-11-19T15:26:47Z</dc:date>
    <item>
      <title>Access extension properties panel values dynamically</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Access-extension-properties-panel-values-dynamically/m-p/1509162#M9503</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm building an extension in which settings I need to insert xrfkey to communicate with the server. My problem is that I would like to generate a dropdown list with reload tasks but to do that I need to send a request to that server containing that xrfkey previously entered by user. How can I achieve building that list dynamically based on provided parameters instead of hardcoding it as&amp;nbsp; in below&amp;nbsp;file with properties panel code? Also attached screenshot of I would like to achieve dynamically&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;define([], function () {
    'use strict'

    return {
        type: "items",
        component: "accordion",
        items: {
            extensionSettings: {
                type: "items",
                label: "Extension Settings",
                items: {
                    xrfkey: {
                        ref: "&lt;STRONG&gt;props.xrfkey&lt;/STRONG&gt;",
                        label: "Qlik Sense Xrfkey",
                        type: "string"
                    },
                    tasksDropdown: {
                        type: "string",
                        component: "dropdown",
                        label: "Task",
                        ref: "props.taskId",
                        options: function () {
                            return $.ajax({
                                type: "GET",
                                url: "https://serveraddress/hdr/qrs/task/full?Xrfkey=&lt;STRONG&gt;abcdefghijklmnop&lt;/STRONG&gt;",
                                headers: {
                                    "X-Qlik-Xrfkey": &lt;STRONG&gt;"abcdefghijklmnop"&lt;/STRONG&gt;,
                                    "hdr-usr": "domain\\username"
                                }
                            }).then(function (response) {
                                return response.map(function (item) {
                                    return {
                                        value: item.id,
                                        label: item.name
                                    }
                                })
                            })
                        },
                        defaultValue: ""
                    }
                }
            }
        }
    }
})&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Nov 2018 15:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Access-extension-properties-panel-values-dynamically/m-p/1509162#M9503</guid>
      <dc:creator>datawizards1234</dc:creator>
      <dc:date>2018-11-19T15:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Access extension properties panel values dynamically</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Access-extension-properties-panel-values-dynamically/m-p/1509224#M9504</link>
      <description>&lt;P&gt;Try callRepository in capabilities API. It Will generade the xrfKey for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 17:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Access-extension-properties-panel-values-dynamically/m-p/1509224#M9504</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-11-19T17:16:46Z</dc:date>
    </item>
  </channel>
</rss>

