<?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: Assign DataSource with initial view in script in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/assign-datasource-with-initial-view-in-script/qaa-p/12397283#M4639798</link>
    <description>&lt;P&gt;Hello Benjamin,&lt;/P&gt;&lt;P&gt;this is a valid question, but I'm afraid that there is no good answer. What you would need a is a kind of  "copyState" API for data sources - which does not exist so far. The initial view contains many properties, for some we offer property getters and setters which would allow to copy (e.g. copyFilters), but unfortunately not for all.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt; Reiner.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 07:43:23 GMT</pubDate>
    <dc:creator>reiner_hille-doering</dc:creator>
    <dc:date>2021-04-07T07:43:23Z</dc:date>
    <item>
      <title>Assign DataSource with initial view in script</title>
      <link>https://community.sap.com/t5/technology-q-a/assign-datasource-with-initial-view-in-script/qaq-p/12397281</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
  &lt;P&gt;I have a dashboard in Lumira Designer with multiple KPI tiles. Each tile is an instance of the same composite and gets assigned a DataSource by the dashboard application using the following interface function setDs(I_ds): &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;compositeDS.assignDataSource(I_ds.getInfo().system, DataSourceType.QUERY, I_ds.getInfo().queryTechnicalName);&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;After this command, the composite can use the DS. However, I configured an initial view for the DS in the dashboard app, and this view is being ignored by the composite. I tried to change the second parameter to DataSourceType.VIEW, but this results in errors and the DS not being loaded at all. I was unable to find any example of assigning DataSourceType.VIEW online.&lt;/P&gt;
  &lt;P&gt;I'd kindly appreciate any suggestions on how to transfer the initial view to the component.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 19:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/assign-datasource-with-initial-view-in-script/qaq-p/12397281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-04-06T19:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Assign DataSource with initial view in script</title>
      <link>https://community.sap.com/t5/technology-q-a/assign-datasource-with-initial-view-in-script/qaa-p/12397282#M4639797</link>
      <description>&lt;P&gt;Thank you for
visiting SAP Community to get answers to your questions. Since this is your
first question, I recommend that you familiarize yourself with our Q&amp;amp;A
Tutorial: &lt;A href="https://developers.sap.com/tutorials/community-qa.html"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;,
as it provides tips for preparing questions that draw responses from our
members. Should you wish, you can revise your question by selecting Actions,
then Edit.&lt;/P&gt;&lt;P&gt;By adding a picture
to your profile you encourage readers to respond: &lt;A href="https://www.youtube.com/watch?v=46bt1juWUUM"&gt;https://www.youtube.com/watch?v=46bt1juWUUM&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 19:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/assign-datasource-with-initial-view-in-script/qaa-p/12397282#M4639797</guid>
      <dc:creator>former_member34</dc:creator>
      <dc:date>2021-04-06T19:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Assign DataSource with initial view in script</title>
      <link>https://community.sap.com/t5/technology-q-a/assign-datasource-with-initial-view-in-script/qaa-p/12397283#M4639798</link>
      <description>&lt;P&gt;Hello Benjamin,&lt;/P&gt;&lt;P&gt;this is a valid question, but I'm afraid that there is no good answer. What you would need a is a kind of  "copyState" API for data sources - which does not exist so far. The initial view contains many properties, for some we offer property getters and setters which would allow to copy (e.g. copyFilters), but unfortunately not for all.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt; Reiner.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 07:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/assign-datasource-with-initial-view-in-script/qaa-p/12397283#M4639798</guid>
      <dc:creator>reiner_hille-doering</dc:creator>
      <dc:date>2021-04-07T07:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Assign DataSource with initial view in script</title>
      <link>https://community.sap.com/t5/technology-q-a/assign-datasource-with-initial-view-in-script/qaa-p/12397284#M4639799</link>
      <description>&lt;P&gt;Thank you for your answer Reiner. We will then have to change the queries directly to the adequate form in query designer.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 14:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/assign-datasource-with-initial-view-in-script/qaa-p/12397284#M4639799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-04-07T14:42:21Z</dc:date>
    </item>
  </channel>
</rss>

