Search Posts

Category: SharePoint

Solved : central admin new web application button is disabled

When you login to central admin and found out your “new web application” button is disabled. Just run SharePoint configuration Wizard, logout and login admin your windows. Everything will be fine. !!! If still failed, try to login to windows via non-administrator account. Then start central admin by “run as administrator”

Manually create sharepoint configuration database

1. you have to run sharepoint shell using administrator 2. when credential dialog popup, you have to input the user name as machine_name\administrator 3. when hitting error, you must close the shell and restart it, otherwise whatever you do, last error message still happen Tips: 1. if you hit “Requested registry access is not allowed”, […]

發現左一個可以玩殘你嘅咪記大bug

發現左一個可以玩殘你嘅咪記大bug,如果你寫sharepoint兼用typescript但係又想用jquery, 你好可能會用: import * as $ from ‘jquery’; 如果嗰畫面得一個webpart,甘你會無事,如果有多個webpart(見下圖),你reload幾次就會撞到有一次某幾個webpart無哂野,因為jquery撞左,網上有啲友話係config.json個externals加返jquery呢一招我試過唔得。但我撞到有一招係work嘅:

Solved: vscode [tslint] ‘ should be ” (quotemark)

To solve “[tslint] ‘ should be ” (quotemark)” when developing spfx webpart using visual studio code, do these: open config/tslint.json add {     “$schema”: “https://dev.office.com/json-schemas/core-build/tslint.schema.json”,     // Display errors as warnings     “displayAsWarning”: false,     // The TSLint task may have been configured with several custom lint rules     // before this config file is read (for example lint rules […]

SPfx on-premises solution is lagging behind to SPO

極嚴重, sharepoint framework個generator仲停留緊係1.1.0俾on-premises, 而sharepoint online已經去到1.5.0, 兩個世界再次被split開而咪記班友無意慾修正。千其唔可以sell啲客一個solution做哂sharepoint online同埋未來嘅sharepoint 2019, 死硬 !!!   https://github.com/SharePoint/sp-dev-docs/issues/1883

The setting to identify an SPO/Onprem project for spfx

In file .yo-rc.json, the value of “environment” is either “spo” or “onprem”, it identify your project is on-premises or sharepoint online. If you want to create extension, you have to use “spo” { “@microsoft/generator-sharepoint”: { “version”: “1.4.1”, “libraryName”: “quantr-express”, “libraryId”: “1a6a217f-6fb8-44b4-981f-35d0ebe7025b”, “environment”: “onprem” } }

My notes on command set development for SPO

current list id : this.context.pageContext.list.id current list title : this.context.pageContext.list.title for (let row of event.selectedRows) { let itemId: number = row.getValueByName(‘ID’); Dialog.alert(`${itemId}`); } Get current user email : this.context.pageContext.user.email import * as strings from ‘SpfxCloneCommandSetStrings’; this._fieldTypesToIgnore = new Array( strings.typeCounter, strings.typeContentType, strings.typeAttachments, strings.typeModStat, strings.typeComputed ); this._fieldsToIgnore = new Array( strings.fieldModified, strings.fieldCreated, strings.fieldAuthor, strings.fieldEditor, strings.field_HasCopyDestinations, strings.field_CopySource, […]

SharePoint 2016 Central Admin Functionalities summary

Application management Create/edit/delete web application Create/edit/delete site collection Assign site collection primary and secondary administrator Create or extend Web application Remove SharePoint from IIS Web site Delete Web application Define managed paths Web application outgoing e-mail settings Web application general settings Content databases Manage Web application features Web application list SharePoint Site Management Create site […]

Microsoft is fake again, node 8.9.0 is not working for office365 development

In SharePoint with NodeJs development, Microsoft was suggesting us to use Node 6.9.x, now microsoft website is updated and telling us to use Node8.9.x, I tried which failed. Lots of people on technet are saying they can’t compile their SharePoint project too. Microsoft need a better open source QC team.

SharePoint – Patterns and Practices

These web are good for you to learn latest SharePoint dev patterns and practices – [PnP at dev.office.com](http://aka.ms/OfficeDevPnP) – Welcome page with sample and guidance search – [SharePoint Dev Group](http://aka.ms/sppnp-community) – Questions and feedback – [PnP at MSDN](http://aka.ms/OfficeDevPnPMSDN) – [PnP videos](http://aka.ms/sppnp-videos) at YouTube – [PnP at Docs.com](https://docs.com/OfficeDevPnP) – Docs.com – [PnP Sites Core Component](http://aka.ms/officedevpnpsitescore) – […]

Added test case for api /doesuserhavepermissions

Added test case for api : _api/web/doesuserhavepermissions, you can use this example to test for a specific permission of a specific user. You must add the user to the SharePoint owner group, otherwise it will return false. If the user don’t event have right to enter the subsite, the api will return 403. https://gitlab.com/quantr/sharepoint/Sharepoint-Java-API/blob/83750c61ec040a699ca02525bc4402ad7ae69227/src/test/java/hk/quantr/sharepoint/TestHavePermissions.java The […]

SharePoint Online get all items with fields specified by view

I am not sure i am correct or not. There is no /_api/web/lists/GetByTitle(‘your list’)/View/getbytitle(‘your view’)/items restful api for SharePoint online. So to get the items with fields that specificed by a view, you need these steps: Call “/_api/web/lists/GetByTitle(‘your list’)/fields” to read all fields and save all “InternalName” and “FieldTypeKind” Call “/_api/web/lists/GetByTitle(‘your list’)/View/getbytitle(‘your view’)/ViewFields” to read […]

WordPress SharePoint tag to read document library

I want to display files in SharePoint’s document library in my wordpress. There is one big technical problem, javascript still can’t do external authentication to SharePoint, by default your browser blocked corss site script. Even you enabled it in command line, your javascript still can’t set the custom “Cookie” in the header that need to […]

Next Page » « Previous Page