Hi All,
We have a multi-tenant OLAP database and we have a structure of companies and unit office assigned to company. Each company has separate users with access to various units and we have users with access to multiple companies.
I am using msmdpump.dll to expose OLAP to web endpoint.
As suggested in this thread, this can be done using setting up role in connection string. But we have a large no combination for company and unit office, so it is next to impossible create this large no of roles in the SSAS.
https://www.syncfusion.com/forums/132514/filtering-dimesnsions-and-authentication
What we need to achieve is to restrict the user from viewing companies and units in the filter other than specified in the filter. I don't want user to see list of all the companies/units in the control.
Also not necessary, but is it possible to have some filters to be changeable and some to be fixed by configuration.
Also can we have a look at source code for https://bi.syncfusion.com/olap/msmdpump.dll
Thanks
Hi Rohit,
We have some clarifications about your queries. And we listed it below.
EJ1: https://help.syncfusion.com/aspnet-core/pivotgrid/getting-started#olap
EJ2: https://ej2.syncfusion.com/aspnetcore/documentation/pivot-table/olap
Regards,
Angelin Faith Sheeba
Hi Angelin Faith, thanks for the reply.
<e-filters>
<e-field name="[Customer Geography].[Country]" caption="Country"></e-field>
</e-filters>
<e-filtersettings>
<e-field name=" [Customer Geography].[Country] " items="Australia,Canada" levelCount=3></e-field>
</e-filtersettings>
These settings are for ejs-pivotview control. I will set countries that I want to allow to a user in the filtersettings.
Hi Rohit,
Using MemberEditorOpen event, you can show desired members in the filtering dialog UI based on your need. Please refer the below code example.
Code Example:
function memberEditorOpen(args) { if (args.fieldName == '[Customer].[Customer Geography]') { args.fieldMembers = args.fieldMembers.filter((key) => { return (key.name == 'France' || key.name == 'Germany') }); } } |
Screenshot:
Meanwhile, we have prepared a sample for your reference.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PivotTable1044403207
Also, please refer the following documentation for more details about “MemberEditorOpen” event.
Document: https://ej2.syncfusion.com/aspnetcore/documentation/pivot-table/filtering#membereditoropen
Please let us know if you have any concerns.
Regards,
Angelin Faith Sheeba