<?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>Question Re: Smart filter bar value help defaulting in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489057#M87541</link>
    <description>&lt;P&gt;We can use this as an example as mine is pretty much the same: &lt;A href="https://sapui5.netweaver.ondemand.com/sdk/explored.html#/sample/sap.ui.comp.sample.smartfilterbar/preview"&gt;Smart Filter Bar&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So if I click on the value help of the 'Company Code' I would like to default the 'Currency' field in the dialog.&lt;BR /&gt;The pseudocode would be something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var oDlg = sap.ui.getCore().byId("__dialog6");
var fBar = oDlg.getFilterBar();
//Create a JSON model, populate it with default values and set it below:
fBar.setFilterData(new JSONModel());&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But the problem is that the dialog has a dynamic ID so I can't access it using the id.&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2017 07:47:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-05-30T07:47:27Z</dc:date>
    <item>
      <title>Smart filter bar value help defaulting</title>
      <link>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaq-p/489053</link>
      <description>&lt;P&gt;Using a smart filter bar with value help dialog - is it possible to default values of highlighted input fields?&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/36361-29-05-2017-11-30-00.png" /&gt;&lt;/P&gt;&lt;P&gt;E.g. Having 2 fields in the smart filter bar: 'Currency' (combobox) and 'Company code'  if I select currency 'GBP' and then open the value help of Company Code I would like to have the field 'Currency Code' already defaulted with what was selected in the smart filter bar.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 10:37:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaq-p/489053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-29T10:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Smart filter bar value help defaulting</title>
      <link>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489054#M87538</link>
      <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/3986/radekch.html"&gt;Radek Chudziak&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;You need to default the data of the model bind to the controls in smart filter.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Viplove&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 12:06:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489054#M87538</guid>
      <dc:creator>former_member340030</dc:creator>
      <dc:date>2017-05-29T12:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Smart filter bar value help defaulting</title>
      <link>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489055#M87539</link>
      <description>&lt;P&gt;Can you elaborate a bit more? That value help dialog is generated automatically so I can't really get hold of it by id and the model behind it.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 13:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489055#M87539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-29T13:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Smart filter bar value help defaulting</title>
      <link>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489056#M87540</link>
      <description>&lt;P&gt;Can you just share your code .. what you have done till now .. i can take from there and if possible provide you a solution &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Viplove&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 07:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489056#M87540</guid>
      <dc:creator>former_member340030</dc:creator>
      <dc:date>2017-05-30T07:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Smart filter bar value help defaulting</title>
      <link>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489057#M87541</link>
      <description>&lt;P&gt;We can use this as an example as mine is pretty much the same: &lt;A href="https://sapui5.netweaver.ondemand.com/sdk/explored.html#/sample/sap.ui.comp.sample.smartfilterbar/preview"&gt;Smart Filter Bar&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So if I click on the value help of the 'Company Code' I would like to default the 'Currency' field in the dialog.&lt;BR /&gt;The pseudocode would be something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var oDlg = sap.ui.getCore().byId("__dialog6");
var fBar = oDlg.getFilterBar();
//Create a JSON model, populate it with default values and set it below:
fBar.setFilterData(new JSONModel());&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But the problem is that the dialog has a dynamic ID so I can't access it using the id.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 07:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489057#M87541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-30T07:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Smart filter bar value help defaulting</title>
      <link>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489058#M87542</link>
      <description>&lt;P&gt;Any idea how to default it?&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 20:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489058#M87542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-31T20:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Smart filter bar value help defaulting</title>
      <link>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489059#M87543</link>
      <description>&lt;P&gt;Can yo please help with some details steps and Sample Code ?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 19:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489059#M87543</guid>
      <dc:creator>former_member289890</dc:creator>
      <dc:date>2018-09-30T19:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Smart filter bar value help defaulting</title>
      <link>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489060#M87544</link>
      <description>&lt;P&gt;Hi,I was able to solve this by using annotations on the fiori app, first select the entity type that correspond to the help value.second select the property you want to add the default value, and then add the annotation common.FilterDefaultValue and the value you want &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/258863-shot.png" /&gt;&lt;/P&gt;&lt;P&gt;the result is this&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/258864-shot.png" /&gt;&lt;/P&gt;&lt;P&gt;also there's another &lt;A href="https://answers.sap.com/questions/624018/set-compact-filter-default-value-in-analytical-lis.html"&gt;blog&lt;/A&gt; on how to add default values but this worked for me. I hope that this could help you  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 21:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489060#M87544</guid>
      <dc:creator>EliuGonzalez86</dc:creator>
      <dc:date>2019-01-10T21:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Smart filter bar value help defaulting</title>
      <link>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489061#M87545</link>
      <description>&lt;P&gt;Hi Eliu Gonzalez,&lt;/P&gt;&lt;P&gt;How can I repeat the same if I want to add multiple default values to the same Smart-filter bar. &lt;/P&gt;&lt;P&gt;thanks &amp;amp; best regards,&lt;BR /&gt;Sandesh&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 11:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smart-filter-bar-value-help-defaulting/qaa-p/489061#M87545</guid>
      <dc:creator>sandesh25</dc:creator>
      <dc:date>2019-05-07T11:03:08Z</dc:date>
    </item>
  </channel>
</rss>

