User Profile
safalkishore
Microsoft Employee
Joined 6 years ago
User Widgets
Contributions
Getting Ctrl+F6 and Ctrl+Right Arrow to work on a Custom Visual
We develoepd a custom visual with the latest library as mentioned on this article. However we have an accessibility bug with respect to the entry point of the visual as described below : Ctrl+F6 highlights the visaul with a blue border As a next step Ctrl+Right arrow does not get into or highlight the <button> that is the entry point of the visual. Things we tried thus far: Settings a higher TABINDEX (say like 5 instead of 0 on other controls) Setting style/class/attributes like - autofocus, focus-nav-mode (Group), keyboard-shortcuts (trl-ArrowRight scoped) Also tried the suggestion on this stackoverflow thread. Setting .focus() on the element once the page/visual loads up. (this will not work when you click outside the visual and try Ctrl+F6 to get back into the visual) Please do let us know in case you have any suggestions ?829Views0likes0CommentsRe: Keyboard & Mouse operations on Custom Visuals
Move the visual around in the Edit mode on a report This is dependant on the 'Visual options' setup either on your Desktop or Web version of the report. To locate this on "Power BI Desktop", goto File > Options and settings > Options > "CURRENT FILE" > Report Settings > "Visual Options" > 'Use the modern visual header with updated styling options'. To locate this on "Power BI Web", goto My Workspace > Report (locate the specific report) > Settings > "Visual Options" > 'Use the modern visual header with updated styling options'. Modern visual header turned "off" Ensure the 'modern visual' setting is unchecked. Fig 1 You can only grab the visual by the header pane/bar to move it around using your mouse as shown above. However you cannot click within the visual and move it around. In addition, you can also use the keyboard arrow keys to move the visual around once the header is selected/highlighted. Modern visual header turned "on" Ensure the 'modern visual' setting is checked Fig 2 The header is no more visible as shown above. Hence click to select on the border in order to move it around using your mouse. Please note that that this very sensitive and the user should ensure the border is selected. In addition, you can also use the keyboard arrow keys to move the visual around once the border is selected/highlighted. Delete the visual in the Edit mode on a report Modern visual header turned "off" Ensure the 'modern visual' setting is unchecked. Click on the header as shown on 'Fig 1' and then hit on the Delete key on your keyboard. This will ensure that the visual is deleted. Alternately you can also click on the 'Remove' menu as shown below: Fig 3 Modern visual header turned "on" Ensure the 'modern visual' setting is checked Click on the border as shown on 'Fig 2' and then hit on the Delete key on your keyboard. This will ensure that the visual is deleted. Alternately you can also click on the 'Remove' menu as shown on 'Fig 3'899Views0likes0CommentsKeyboard & Mouse operations on Custom Visuals
There are 2 issues we have noticed with our custom visual (and we see similar issues on the PowerApps for power bi visual) We cannot move the visual around on Power BI Desktop by grabbing the body of the visual using the mouse. The only way to move this around is to grab it by the header. This becomes even the more difficult when we turn on the setting ‘Use the modern visual header with updated styling options’. 2. We cannot delete the visual on Power BI Desktop using the keyboard delete key unless of course the header is selected. Like the case above this becomes even the more difficult when we turn on the setting ‘Use the modern visual header with updated styling options’. We notice that both the above mentioned operations are possible with all built in visuals but cannot be done via ‘custom visuals’. For more details take a look at the FAQ we created for our visual.973Views0likes1CommentRe: Automate PBIVIZ Cert Create and Install on Azure Devops CI/CD
Thanks very much for this jppp ! Will also check this out and switch as its cleaner. However I recollect that when I simply ran the 'pbiviz package' cmd on the pipelines agent, it did throw back an error that the cmd is missing the cert installed.3KViews0likes0CommentsRe: Application Insights (External NPM Dependency): Error packaging
Application Insights has mutiple NPM package versions for the WEB. The one shown above is primarily meant for a NODE SERVER applciation, as it has built in capability to show LIVE METRICS etc. The 'PBIVIZ' package ingternally uses WEBPACK to bundle, and hence with the original NPM package we ran into mutiple issues as it has a dependency of plenty of packages. What we ended up using is the App Insights for Web - https://github.com/microsoft/ApplicationInsights-JS We simply followed sample on the above GITHUB page above and we were able to set it up.3.6KViews0likes0CommentsRe: Automate PBIVIZ Cert Create and Install on Azure Devops CI/CD
We were able to automate the same on Azure Devops using the usual NPM tasks. However the trick here was 'install the certificate' and using powershell 'to import this on the cert store' before packaging and generating the *.pbiviz file. Sample YAML file for reference - pool: name: Azure Pipelines steps: - task: NodeTool@0 displayName: 'Use Node 10.x' inputs: versionSpec: 10.x checkLatest: true - task: Npm@1 displayName: 'npm install' inputs: workingDir: '$(System.DefaultWorkingDirectory)' verbose: false - task: Npm@1 displayName: 'npm test' inputs: command: custom workingDir: '$(System.DefaultWorkingDirectory)' verbose: false customCommand: 'run test -- --reporter mocha-junit-reporter' enabled: false - task: Npm@1 displayName: 'npm install pbiviz' inputs: command: custom workingDir: '$(System.DefaultWorkingDirectory)' verbose: false customCommand: 'install -g powerbi-visuals-tools' - task: Npm@1 displayName: 'npm install cert' inputs: command: custom workingDir: '$(System.DefaultWorkingDirectory)' verbose: false customCommand: 'run cert' - powershell: | $ExtensionFile = "C:\npm\prefix\node_modules\powerbi-visuals-tools\config.json" $jsondata = Get-Content -Raw -Path $ExtensionFile | ConvertFrom-Json CERTUTIL -f -p $jsondata.server.passphrase -importpfx “C:\npm\prefix\node_modules\powerbi-visuals-tools\certs\PowerBICustomVisualTest_public.pfx” displayName: 'PowerShell Script - Import Pfx to Trusted Root ' - task: Npm@1 displayName: 'npm package' inputs: command: custom workingDir: '$(System.DefaultWorkingDirectory)' verbose: false customCommand: 'run package' - task: PublishBuildArtifacts@1 displayName: 'Publish artifacts: drop' inputs: PathtoPublish: dist - task: PublishCodeCoverageResults@1 displayName: 'Publish code coverage' inputs: codeCoverageTool: Cobertura summaryFileLocation: '$(Build.SourcesDirectory)/coverage/cobertura-coverage.xml' reportDirectory: '$(Build.SourcesDirectory)/coverage/' enabled: false - task: PublishTestResults@2 displayName: 'Publish Test Results **/test-results.xml' inputs: testResultsFiles: '**/test-results.xml' enabled: false a3.1KViews0likes1CommentAutomate PBIVIZ Cert Create and Install on Azure Devops CI/CD
In order to package a custom visual we need to run the below command : pbiviz package However a pre-requisite to this is the --create-cert and --install-cert steps. Is it possible to automate the same on Azure Devops such that the CI can generate the required package. (*..pbiviz)Solved3.2KViews0likes5CommentsApplication Insights (External NPM Dependency): Error packaging
We tried to add the App Insights (https://www.npmjs.com/package/applicationinsights) npm package to our custom visual in order to track all logs/events from the same. However we ran into issues (shown below) when we try to run or package the visual. This seems related to how pbiviz uses webpack internally and bundles files, in addition to including external dependencies. We also did try to add external dependencies on the 'pbiviz.json' file as shown below. Yet we face the same errors. In addition we did add other npm packages on our 'package.json' that the app inisghts npm makes use of, so for example : -applicationinsights-native-metrics -async_hook -async-listener etc.. Is this allowed in the first place ? Is there anyone who has done this before and has a fix or suggestions ? Below are the changes made to the project : package.json (removed other dependicies for now) --------------- "dependencies": { "applicationinsights": "^1.7.3" } visual.ts --------------- import * as appInsights from 'applicationinsights'; constructor(options: VisualConstructorOptions) { // App Insights Set-up appInsights.setup(config.instrumentKey); } pbiviz.json --------------- , "externalJS": [ "node_modules/async-listener/index.js", "node_modules/continuation-local-storage/context.js", "node_modules/applicationinsights/out/AutoCollection/CorrelationContextManager.js", "node_modules/applicationinsights/out/applicationinsights.js" ], Errors: =================== WARNING in ./node_modules/applicationinsights/out/AutoCollection/NativePerformance.js Module not found: Error: Can't resolve 'applicationinsights-native-metrics' in 'C:\Users\safalk\Source\Repos\FUN-ESF-FE-OCVPowerBIVisual\node_modules\applicationinsights\out\AutoCollection' @ ./node_modules/applicationinsights/out/AutoCollection/NativePerformance.js @ ./node_modules/applicationinsights/out/applicationinsights.js @ ./src/visual.ts @ ./.tmp/precompile/visualPlugin.ts @ multi ./.tmp/precompile/visualPlugin.ts ERROR in ./node_modules/cls-hooked/context.js Module not found: Error: Can't resolve 'async_hooks' in 'C:\Users\safalk\Source\Repos\FUN-ESF-FE-OCVPowerBIVisual\node_modules\cls-hooked' @ ./node_modules/cls-hooked/context.js 10:18-40 @ ./node_modules/cls-hooked/index.js @ ./node_modules/applicationinsights/out/AutoCollection/CorrelationContextManager.js @ ./node_modules/applicationinsights/out/applicationinsights.js @ ./src/visual.ts @ ./.tmp/precompile/visualPlugin.ts @ multi ./.tmp/precompile/visualPlugin.ts ERROR in ./node_modules/applicationinsights/out/Library/Sender.js Module not found: Error: Can't resolve 'child_process' in 'C:\Users\safalk\Source\Repos\FUN-ESF-FE-OCVPowerBIVisual\node_modules\applicationinsights\out\Library' @ ./node_modules/applicationinsights/out/Library/Sender.js 11:20-44 @ ./node_modules/applicationinsights/out/Library/TelemetryClient.js @ ./node_modules/applicationinsights/out/Library/NodeClient.js @ ./node_modules/applicationinsights/out/applicationinsights.js @ ./src/visual.ts @ ./.tmp/precompile/visualPlugin.ts @ multi ./.tmp/precompile/visualPlugin.tsSolved3.7KViews0likes1Comment
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.