What is the API endpoint in apache superset to update the filter values in an embedded chart? - apache-superset

I want to use custom react filter components on my embedded Apache superset dashboard. I was able to embed a dashboard using the superset-ui/embedded-sdk but I'm unable to pass filter values through the sdk that dynamically update the dashboard. So I want to send a POST request with my filter values to the API endpoint that updates the filter values of the queries in my dashboard. I also didn't want to use URL parameters as updating a single parameter meant for one chart updates the entire dashboard.
I've tried looking at the URL's POST requests made when I used a filter box in an embedded dashboard, and tried sending filter values to the same URL's but the charts in my dashboard don't reload. I am able to get the data for the chart but the chart inside the dashboard doesn't reload. I also made sure that the request bodies that I have sent are the same as the ones that were made when I used the filter box. I'm not sure if the endpoint is supposed to only fetch the data in which case I'm looking at how to update the chart with the data that I have fetched.
Superset version - 2.0.1
This was the endpoint that I tried;
http://localhost:8088/api/v1/chart/data

Related

Tiles, copy visual as image in powerbi using rest api

I am new in Powerbi. I have requirement to download tiles using powerbi api. tiles reside at below url.
https://app.powerbi.com/groups/me/apps/{appid}/reports/{reportid}/{ReportSection}
I have access to app, i can see the reports in Powerbi.
I have seen powerbi api documentation. when i try with powerbi api UI i get error as Response Code: 404
{"error":{"code":"PowerBIEntityNotFound","pbi.error":{"code":"PowerBIEntityNotFound","parameters":{},"details":[],"exceptionCulprit":1}}}
It looks like you are using incorrect URL, Tiles are part of Dashboards but the URL that you mentioned is for Report.
Your URL for the tile component will be something like:
https://api.powerbi.com/v1.0/myorg/apps/{appId}/dashboards/{dashboardId}/tiles/{tileId}
Reference:
https://learn.microsoft.com/rest/api/power-bi/apps/get-tile

How to get the widget data using rest api or some other ways in ESB6.5?

I want use another dashboard project based on Javascript to show data ,but I don`t know how to get the Statistical data. Is there any api or some way to get the data?
It would be better if you can share what kind of data do you want to portrait in your dashboard. Anyhow you can use the admin services available in ESB 6.5 to get the available data.
https://docs.wso2.com/display/EI650/Working+with+Admin+Services

Power BI Embedded Report Picker

I have an embedded site for my users to view a report. I have one master login for Power BI that all customers are routed through.
Authentication and the request are done through a .NET backend using PowerBI.Api.V2. Everything works well when I hardcode a single reportId and embed the fullscreen iframe.
My question is for customers that have multiple reports; Is there a built in report-picker-report that I can embed where the report selection is already handled for me? Or should I work on building an interface after retrieving the list of reports my users can pick from?
No, there are no built-in pickers. Power BI provides an API interface and you must implement these for yourself. Of course, you can build these pickers and make them available for us :)
To get list of workspaces you need to call Get Groups. This will give you a list of user's workspaces. You can show their name property values to the user, but you will need their id (the guid). When you know the id of a workspace, you can list the reports in it by calling Get Reports In Group. The same way you can call Get Dashboards In Group and Get Tiles In Group.

Will this cookie track what visitors do after they have clicked on a rep url? The pages they go to, until they leave the site?

As I have no idea of code, html or the programs I am using, I would like to know if this cookie will work the way I want it to.
I would like to know what pages the user visits in the session after he/she has arrived to the website via the url containing: repid.
I have a custom html tag that I have set up in Google tag Manager and the code is:
<script>
var cookieName = "RepUrl";
var cookieValue = "true";
setPersistentCookie(cookieName, cookieValue, 365); // set for 1 year
</script>
The Trigger Type is Page View, Some Page Views, Page Url, Contains, repid
I then went to google analytics and created a Custom Dimension called Rep Url the scope was Session.
After this I go back to google tag manager and create a variable called: Cookie-Page..., Variable type: 1st party cookie and linked to the cookieName: RepUrl (as in the above code).
Then I make another tag, this time it is a google analytics tag type, track type: page view. I then enable overriding settings in this tag and enter my google analytics id UA-xxxxxxxxx-x . I go to more settings, custom dimensions and enter the index number of the custom dimension I created in google analytics and in the dimension value, I enter the variable I created in tag manager called: Cookie-Page...
After all this I then went to customization, custom reports in analytics created one for the custom dimension (Rep Url) with added filters: Sessions, Avg. Session duration, Entrances/Pageviews, Pages/Session, Users.
I would like to know from start to end if this cookie will work the way I would like it to. All help would be greatly appreciated!
The GTM/GA setup will work, but you might not get the results that you were hoping for in the custom reports.
One reason is that you're setting the cookie once the user, enters the site and arrives at the page with RepUrl, but by that time, the hit for the page view would already be sent to GA thus not capturing into the custom dimension until subsequent hits. This would throw off the sessions, entrances metric in the custom reports.
You could consider looking into creating a custom segment that isolates sessions with the parameter "repurl". This would work if repurl would always be how the user enters the site/starts the session.
Another solution would be to abandon the javascript for setting the cookie, but instead, user the URL variable in GTM and capture the RepUrl parameter that way and set it on pageview.

Dynamic view on SharePoint List

I want to create a dynamic view on my list. The list is filtered based on the current users' information coming from an external database i.e. based on which user is logged in, a value is fetched from external database and based on that value i want my SharePoint list to be filtered.
How can i do this. I am newbie in SharePoint. Any help would be really great.
Thanks
One way to do this is to implement your own custom Filter Provider web part.
The Filter Provider gets the current user ID, finds whatever info you need from your DB and then passes the filter onto the List View that displays the data.
Writing a Filter Provider Web Part for Windows SharePoint Services 3.0