Posts

SharePoint Framework client-side web part sample with Angular Elements

Image
Greeting Web Part This web part is created with Angular Element. It has one element “ issharepoint ” which takes true if user is running this web part in SharePoint environment. Basically it shows current User Name, Title, Picture Url from “sp.profiles.myProperties” & Web Title from web object. Here is the custom element created : <app-greeting-wp-web-part issharepoint= ${ true } ></app-greeting-wp-web-part> Just download code from GitHub and install dependencies. I am using PnP JS to get data from SharePoint. I don’t want to run npm install every time when I am making any changes. So I made a small change in the project by adding a new file called “copyfile.js”. This file copies the “bundle.js” file to SPFx @node_modules folder. So you have to make changes in the destination path in the file. Thanks to Stefan Bauer for @pnp/spfx  and  Andrew Connell for blog

Administrator is not able to change user’s picture in User Profile in SharePoint Admin Center

For some users Admin is able to change picture by going to User Profile -> Manage user profile option. But for some users , Admin is not able to change pictures & SharePoint is showing the message “ Only user can change this photo ”. Admin can delete the photo but can’t upload. Here is the way to change user’s picture. Just go to Manage User Profile option form SharePoint Admin Center -> User Profile and search for the user. Now modify the user & search for the property “Picture Exchange Sync State”. You will see that it’s value is non zero. Just change it to Zero (0) & save it. Now reopen this profile again. You will see the option to update the image.

JavaScript Related Questions & Answers

1.What is JavaScript? JavaScript is a client-side as well as server side scripting language that can be inserted into HTML pages and is understood by web browsers. JavaScript is also an Object based Programming language 2.Enumerate the differences between Java and JavaScript? Java is a complete programming language. In contrast, JavaScript is a coded program that can be introduced to HTML pages. These two languages are not at all inter-dependent and are designed for the different intent.  Java is an object – oriented programming (OOPS) or structured programming language like C++ or C whereas JavaScript is a client-side scripting language. 3.What are JavaScript Data Types? Following are the JavaScript Data types: ·          Number ·          String ·          Boolean ·          Null ·          Object ·          Undefined ·          Array 4.What is the use of isNaN function? isNaN function returns true if the argument is not a number otherwise it