Some thoughts on programming stuff

Category: Customization (Page 1 of 2)

Jump to current date cell on Open in Google Sheets

If you are like me and usually updates manually a spreadsheet to track your progress in a daily basis related to something like diet or spenditures, you will know that your spreadsheet may become very long. That’s why I created an small script to allow me jump to current date cell on Open in Google Sheets automatically.

The script will run like a macro and after a few moments you have opened the spreadsheet, it will focus the correct cell!

Continue reading

Azure DevOps Dark Theme

If you are like me and want to use Azure DevOps Dark Theme, say no more! Basically you can do that in your tenant or deployment (if you go On Premises) in a very easy way. Following this post you will learn how to enable Azure DevOps dark theme.

Hopefully Azure DevOps offers a set of customizable options, so you can adopt easily and use the platform like you want. I’ll cover other options someday.

The Dark theme will have a dedicated post because more and more users use this configuration in any tool they use for many reasons:

  • Less luminosity;
  • Battery consumption reduced;
  • Improved visual ergonomics;
  • Facilitated use in dark environments.

It’s important to say that I’m not an expert on health benefits of dark theme use neither on how it can help your vision against light. There are many studies about it and you can check it over your searches over Internet.

Continue reading

SharePoint breadcrumb for better navigation

This blog post will talk about an idea of customization of the SharePoint breadcrumb for better navigation. The solution uses the out-of-box Delta Breadcrumb Dropdown component to provide the data required to render the breadcrumb using pure JavaScript for that.

Important notes:

  • This solutions works only for Classic Experiences;
  • I would recommend enabling only to internal pages branded using the System Master Page;
  • The JavaScript needs to be installed using a Custom Action or calling the JS file from the Master Page;
  • This solution may not be a good practice for SharePoint Online environments, if you are focused on working only with Modern experiences.
Continue reading

Get web URL from document URL in SharePoint

Maybe you need to get web URL from document URL in SharePoint, or even just grab the Site Collection URL and do some awesome logic and update some data in your site. But you are aware that it can be costy and require some array splits, substrings and those kind of tricks. So here is a code snippet to save your time to enjoy a good cup of coffee with your colleagues!

The document URL usually is composed by a site collection part, the specific web part, the Library name and then the final part containing the folders and the file name. The script basically will perform a request to a SharePoint API. Our parameter is the folder or library URL (cutting the filename) that will be made automatically. Finally, the result will come with the Web and Site Collection urls for that context.

Get web URL from document URL in SharePoint - A bunch of files in folders inside drawers (SharePoint)
A bunch of files in folders inside drawers (SharePoint) (Source: Howtogeek)
Continue reading

Default Page in Publish to web from Power BI

If you have to embed a Power BI report to a SharePoint Online Classic Page, then just go for the iFrame approach. Power BI offers a “Publish to web” feature that helps you on embedding reports easily. Although it’s not so interactive and have some limitations (can’t use Query string filtering), it still works well and offers some parameters like the possibility to set default page in Publish to web from Power BI.

We are going to cover the steps for embedding and setting a default page for our report!

Continue reading

Identify which W3WP belongs to which application

This post will help you when you want to identify which W3WP belongs to which application. It comes in handy when we need to debug Visual Web Parts and Event Receivers deployed as Farm Solutions. The basic approach requires the user to open Visual Studio, attach the W3WP processes and refresh your page to start debugging.

Well, it’s pretty common in our daily life tasks (not so much since we all should move to the Client-side of the force) to have more than one W3WP available to attach. Usually we have one for your site, other for SharePoint Web Services, another for the SharePoint Central Admin and even more for any other Application Pool process being used in your Server.

But if you want to attach to just one process and make Visual Studio more performatic and responsive, how can you do that?

Just follow the steps in this post!

Continue reading

Sync SharePoint files with VS Code

The last three months I’ve been working less with SharePoint and more with Angular 4/Node JS projects. This change forced me to use less Visual Studio and dive deep into Visual Studio Code in almost every task. I must say that I fell in love with the editor and decided to search about how to sync SharePoint files with VS Code.

While working with VSCode, I’ve been testing some Gulp tasks like SPSave and SPSync for automatizing file changes to SharePoint, just for fun. Because I just can’t accept SharePoint Designer anymore, my patience with it ran out.
Also the Windows feature to map a network drive to a SharePoint library isn’t good too, at least for me.
So basically the gulp tasks did the trick, but they aren’t that easy to be understood for some more “traditional” programmers in my company, which would end with few adopters here.

So while searching for SharePoint extensions just for curiosity, I found the SPGO Extension and it really impressed me!

Basically it’s an extension that with some basic setup you can start syncing files from your computer with SharePoint libraries.

SPGo Extension

SPGo Extension

Continue reading

« Older posts

© 2024 wiliammbr's blog

Theme by Anders NorenUp ↑