Sunday 6 February 2022

SharePoint List View Conditional Formatting

How to create choice conditional formatting ?

Conditional formatting makes it easy to highlight rows in Sharepoint list items. 

Create sharepoint list  with desired name - for example I have created List 'Customer' with following fields 

  •    Title - Single line text
  •    Status - Choice














Select your view where you want to apply conditional formatting  - Click on Format current View as shown in below screenshot.

Add below JSON code formatting snippet  and save it. 
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"hideSelection": true,
"hideColumnHeader": true,
"rowFormatter": {
"elmType": "button",
"customRowAction": {
"action": "defaultClick"
},
"attributes": {
"class": "sp-row-card"
},
"children": [
{
"elmType": "div",
"style": {
"text-align": "left"
},
"children": [
{
"elmType": "div",
"attributes": {
"class": "sp-row-title"
},
"txtContent": "[$Title]"
},
{
"elmType": "div",
"attributes": {
"class": "sp-row-listPadding"
},
"txtContent": "[$Status]"
}
]
}
],
"style": {
"background-color": {
"operator": "?",
"operands": [
{
"operator": "==",
"operands": [
"Awaiting Approval",
"[$Status]"
]
},
"red",
{
"operator": "?",
"operands": [
{
"operator": "==",
"operands": [
"Ready to Deploy",
"[$Status]"
]
},
"yellow",
{
"operator": "?",
"operands": [
{
"operator": "==",
"operands": [
"Complete",
"[$Status]"
]
},
"green",
""
]
}
]
}
]
},
"width": "100%"
}
}
}


Result ;- your view will look like this,



What is Microsoft Azure ?

Let's understand the basics of Azure 


Azure is cloud computing platform it helps to build solutions to meet your business goals .

Azure supports -  

○ IaaS ( infrastructure as Service )
○ PaaS (Platform as service)
○ SaaS ( Software as Service ) 


How Azure works?

Microsoft azure is public and private cloud platform that helps developers and IT administrators to build deploy and manage their applications . Azure uses technology known as virtualization. Virtualization separates tight coupling between computer hardware and its OS using an abstraction layer called hypervisor. The Hypervisor emulates all the functions of real computer and it's CPU in a virtual machine optimizing capacity of the abstracted hardware it can run multiple virtual machines at the same time  and each virtual machines can run any compatible operating system such as windows, Linux.

Azure takes this virtualization technology and repeats it on massive scale in Microsoft data centers throughout the world each data center has mini racks filled with Servers and each servers include hypervisor to run multiple virtual machines  a network switch provides connectivity to all those servers one server in each rack run special peach of software called a fabric Controller  each fabric controller is connected to another special peace of software known as Orchestrator.


The Orchestrator is responsible for managing everything that happens in azure including responding to user requests . 

User makes a request using Orchestrator Web API the Web API can be called by many tools including user interface of the azure portal so when user makes a request to create virtual machine the Orchestrator packages everything that needed  picks the best server rack and send package request to fabric Controller once the fabric controller has created virtual machines the user can connect to it.  Azure makes it easy for developers, IT administrators to be agile when they build deploy and manage their applications and services .