Upload “Power BI Files” only to “Power BI Library” in SharePoint site
If you want to restrict to only upload Powe BI file (.pbix file) to “Power BI Library” as below screenshot, you can use following JQuery code in HTML masterpage.
If you want to know more my experiences from the guide of above project, please sign up in here.
Recommend books:
//Check upload file extension is PowerBI files - only for Power BI Library
CheckAssetLibMediaExtension = function(){
if (window.parent.location.pathname.toLowerCase().indexOf('powerbifiles')>0)
{
var allowedExtensions = /pbix/;
var inputFile = $("input[name$='InputFile']").val();
var ext = inputFile.substr(inputFile.lastIndexOf('.') + 1);
console.log(ext);
//var
$currentIFrame = $('.ms-dlgFrame');
if (!allowedExtensions.test(ext)) {
$("input[name$='btnOK']").attr('disabled','disabled');
alert('Only Power BI file with file extension name is .pbix can be uploaded to this library.');
$currentIFrame.contents().find("body .ms-error").css('display','block !important');
//$currentIFrame.contents().find("body .ms-error>span").text("Only Power BI file (file extension is '.pbix') can be uploaded to this library.");
} else
{
$("input[name$='btnOK']").removeAttr('disabled');
}
}
}This post is part of my project "Implement the Business Intelligence On Premises SharePoint 2013 Portal".
If you want to know more my experiences from the guide of above project, please sign up in here.
Recommend books:
Great Site, The Course were so simple and easy to understand.
ReplyDeleteMS Power BI Online Training
Power BI Online Training
Power BI Training
Power BI Training in Hyderabad
MS Power BI Training in Hyderabad
This idea is mind blowing. I think everyone should know such information like you have described on this post. Thank you for sharing this explanation. Thank you for sharing wonderful information with us to get some idea about it. Igained more knowledge from your blog. Keep Doing..
ReplyDeleteoracle training in chennai
oracle training institute in chennai
oracle training in bangalore
oracle training in hyderabad
oracle training
oracle online training
hadoop training in chennai
hadoop training in bangalore
Really Nice Information It's Very Helpful All courses Checkout Here.
ReplyDeleteSharepoint Developer training in bangalore
P0wer bi training
ReplyDeleteP0wer bi online course