<?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 Set qOneAndOnlyOne Field Property from MashUp in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-qOneAndOnlyOne-Field-Property-from-MashUp/m-p/1557026#M10181</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am building a MashUp and one of my main objectives is set a field (Fecha) to always one selected value. When I open the App in openApp.js, I include the following code:&lt;/P&gt;&lt;PRE&gt;openApp = app.obj.qlik.openApp(config.id, config);
      app.obj.app = openApp;
      console.log("app opened " + config.id + " in host " + config.host);
      app.obj.app.field('Fecha').selectValues(["Feb 2018"], false, true);
      
      var response = app.obj.app.global.session.rpc({
        "method": "GetField",
        "handle": app.obj.app.model.handle,
        "params": ["Fecha"]
      }).then(function (response) {
        if(response.result &amp;amp;&amp;amp; response.result.qReturn &amp;amp;&amp;amp;
          response.result.qReturn.qType === "Field") {
            let qHandle = response.result.qReturn.qHandle;
            app.obj.app.global.session.rpc({
              "handle": qHandle,
              "method": "SetNxProperties",
              "params": {
                "qProperties": {
                  "qOneAndOnlyOne": "true"
                }
              }
            })
        }
      });&lt;/PRE&gt;&lt;P&gt;Fecha is setting properly to "Feb 2018" but the OneAndOnlyOne property is not working properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where am I wrong?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:19:39 GMT</pubDate>
    <dc:creator>alvaro_fernande</dc:creator>
    <dc:date>2024-11-16T06:19:39Z</dc:date>
    <item>
      <title>Set qOneAndOnlyOne Field Property from MashUp</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-qOneAndOnlyOne-Field-Property-from-MashUp/m-p/1557026#M10181</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am building a MashUp and one of my main objectives is set a field (Fecha) to always one selected value. When I open the App in openApp.js, I include the following code:&lt;/P&gt;&lt;PRE&gt;openApp = app.obj.qlik.openApp(config.id, config);
      app.obj.app = openApp;
      console.log("app opened " + config.id + " in host " + config.host);
      app.obj.app.field('Fecha').selectValues(["Feb 2018"], false, true);
      
      var response = app.obj.app.global.session.rpc({
        "method": "GetField",
        "handle": app.obj.app.model.handle,
        "params": ["Fecha"]
      }).then(function (response) {
        if(response.result &amp;amp;&amp;amp; response.result.qReturn &amp;amp;&amp;amp;
          response.result.qReturn.qType === "Field") {
            let qHandle = response.result.qReturn.qHandle;
            app.obj.app.global.session.rpc({
              "handle": qHandle,
              "method": "SetNxProperties",
              "params": {
                "qProperties": {
                  "qOneAndOnlyOne": "true"
                }
              }
            })
        }
      });&lt;/PRE&gt;&lt;P&gt;Fecha is setting properly to "Feb 2018" but the OneAndOnlyOne property is not working properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where am I wrong?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-qOneAndOnlyOne-Field-Property-from-MashUp/m-p/1557026#M10181</guid>
      <dc:creator>alvaro_fernande</dc:creator>
      <dc:date>2024-11-16T06:19:39Z</dc:date>
    </item>
  </channel>
</rss>

