<?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 Re: Locking field selection using JS in Mashup in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Locking-field-selection-using-JS-in-Mashup/m-p/1641974#M11668</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/74404"&gt;@garvit96&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You should be able to do:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;const field = await app.field('your_field');
await field.selectValues(...);
await field.lock();&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/September2019/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/FieldAPI/lock-method.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/September2019/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/FieldAPI/lock-method.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I hope this helps&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2019 06:45:51 GMT</pubDate>
    <dc:creator>Aiham_Azmeh</dc:creator>
    <dc:date>2019-11-01T06:45:51Z</dc:date>
    <item>
      <title>Locking field selection using JS in Mashup</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Locking-field-selection-using-JS-in-Mashup/m-p/1641095#M11654</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to pass a field value using app.field and selectvalues method and it also appears in the selection pane. What I want to do is lock that selection or hide that selection so that no user can change the values of that particular dimension. Does anyone have any method or a way to solve this issue preferably using JS.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Locking-field-selection-using-JS-in-Mashup/m-p/1641095#M11654</guid>
      <dc:creator>garvit96</dc:creator>
      <dc:date>2024-11-16T04:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Locking field selection using JS in Mashup</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Locking-field-selection-using-JS-in-Mashup/m-p/1641974#M11668</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/74404"&gt;@garvit96&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You should be able to do:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;const field = await app.field('your_field');
await field.selectValues(...);
await field.lock();&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/September2019/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/FieldAPI/lock-method.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/September2019/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/FieldAPI/lock-method.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I hope this helps&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 06:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Locking-field-selection-using-JS-in-Mashup/m-p/1641974#M11668</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2019-11-01T06:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Locking field selection using JS in Mashup</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Locking-field-selection-using-JS-in-Mashup/m-p/1642044#M11671</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/45449"&gt;@Aiham_Azmeh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the solution. Had to make some amendments to it as 'await' did not work properly in the mashup. Here I am also pasting my code for further reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;var app = qlik.openApp('app id');&lt;BR /&gt;app.field('field').selectValues([{qText: "value"}], false, false);&lt;BR /&gt;app.field('field').lock();&lt;/P&gt;&lt;P&gt;Let me know if this doesn't work properly for anyone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 11:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Locking-field-selection-using-JS-in-Mashup/m-p/1642044#M11671</guid>
      <dc:creator>garvit96</dc:creator>
      <dc:date>2019-11-01T11:47:55Z</dc:date>
    </item>
  </channel>
</rss>

