<?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: clone visual API not working in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/clone-visual-API-not-working/m-p/1639760#M27620</link>
    <description>&lt;P&gt;I give a bit more detail here:&lt;/P&gt;&lt;P&gt;I am copying a hidden visual and even if specifying in the layout as you can see above that I want it to be "Visible", it is still letting it hidden, this is why I could not see it. I do not know if this is a bug, I would say yes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second thing, on a clone visual, changing properties of the newly created visual is also changing properties from the original visual fromw which it was clone. There are no details on the API if this is the normal expected behaviour but I can imagine how limiting this could be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other way to duplicate a visual without having to use clone? In my case the visual is an image on which I want to associate an action as a button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2021 18:04:15 GMT</pubDate>
    <dc:creator>Marco57</dc:creator>
    <dc:date>2021-02-02T18:04:15Z</dc:date>
    <item>
      <title>clone visual API not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/clone-visual-API-not-working/m-p/1639592#M27617</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a clone of a visual and I do not even have the clone created at all. I am using V3 api of the power bi client:&lt;/P&gt;&lt;PRE&gt; let cloneLayout = {
      layout: &amp;lt;pbi.models.IVisualLayout&amp;gt; {
        x: slicerVisual.layout.x + slicerVisual.layout.width + 1,
        y: slicerVisual.layout.y + slicerVisual.layout.height * .5 - this.deleteFilterButtonVisual.layout.height * .5,
        width: 60,
        height: 60,
        displayState: {
          mode: pbi.models.VisualContainerDisplayMode.Visible
        }
      },
      autoFocus: false,
    };

let deleteVisual = await this.deleteFilterButtonVisual.clone(cloneLayout);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the console I can see properly that I get my new visual created:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marco57_1-1612284156962.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/446017iD960FD286F818E4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marco57_1-1612284156962.png" alt="Marco57_1-1612284156962.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still I can't see anything about my visual on the report. I also tried cloning other visuals and still same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other required step to see the new visual cloned after generating it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Marc.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 16:44:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/clone-visual-API-not-working/m-p/1639592#M27617</guid>
      <dc:creator>Marco57</dc:creator>
      <dc:date>2021-02-02T16:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: clone visual API not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/clone-visual-API-not-working/m-p/1639760#M27620</link>
      <description>&lt;P&gt;I give a bit more detail here:&lt;/P&gt;&lt;P&gt;I am copying a hidden visual and even if specifying in the layout as you can see above that I want it to be "Visible", it is still letting it hidden, this is why I could not see it. I do not know if this is a bug, I would say yes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second thing, on a clone visual, changing properties of the newly created visual is also changing properties from the original visual fromw which it was clone. There are no details on the API if this is the normal expected behaviour but I can imagine how limiting this could be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other way to duplicate a visual without having to use clone? In my case the visual is an image on which I want to associate an action as a button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 18:04:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/clone-visual-API-not-working/m-p/1639760#M27620</guid>
      <dc:creator>Marco57</dc:creator>
      <dc:date>2021-02-02T18:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: clone visual API not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/clone-visual-API-not-working/m-p/1647393#M27692</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/278723"&gt;@Marco57&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have the "Edit" permission of the report?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Lionel Chen&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 08:10:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/clone-visual-API-not-working/m-p/1647393#M27692</guid>
      <dc:creator>v-lionel-msft</dc:creator>
      <dc:date>2021-02-05T08:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: clone visual API not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/clone-visual-API-not-working/m-p/1648208#M27699</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/184579"&gt;@v-lionel-msft&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am embedding the report with "view" access level and not edit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and regards.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 15:20:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/clone-visual-API-not-working/m-p/1648208#M27699</guid>
      <dc:creator>Marco57</dc:creator>
      <dc:date>2021-02-05T15:20:12Z</dc:date>
    </item>
  </channel>
</rss>

