MVA Certifcate of Learining

Monday, May 27, 2013


Autohosted app Uploading a large file to an SharePoint 2013

Sunday, May 26, 2013


if you trying to upload Large file to you AutoHosted App some thing like 1.5 Gb which more time to execute then you will receive and error especially if you're using MVC.

Add in app web.config :)
 


       
         
           
         
       
   

SharePoint 2013 WebPart vs AppPart and Cloud App Module Advantages

Tuesday, May 21, 2013


WebPart Vs App Part

Web Part
App Part
Run on SharePoint Server
Run on external servers or Browser
Run  with User Permissions or will full Permissions (elevated Privilege)
Run with App Identity that is granted specific Permission.  
Runs in the Same Domain and environment of the page and its content.
Runs on Different domain providing complete client -side isolation
Could take up a significant amount of CPU cycles for complex operations
Executed outside SharePoint hence SharePoint performance is  not impacted
Not easy to publish globally / locally. It requires installations and activations.
Can be published internally and or to the Microsoft public SharePoint Store



Migrate WebPart to App Part
Migrating Web part to App Part are not 1 : 1 Mapping for code because might be Web Part is Server Side API which not available in App Part. 
To migrate your web part to App Part you have determined hosting Option. Is App Part run in client or its external server? If your web Part contains any kind of intellectual property that you need to secure you should have to use external server. Because client side code is not very secure and easy to reverse engineered. 
Choosing right API which is very important if you're creating SharePoint Hosted App than you have three Option for CSOM flavours : 
JavaScript
Silverlight
Rest.
And if you're doing SharePoint Cloud Hosted App Part you have two flavours.
. Net 
Rest
Which you pick it depends on allot of App Requirement and developer skill that you feel more comfortable with it. .net by using .Net you have a much better developer environment and Rapid Application development and with Rest you can take leverage of the new modern style of development.

Evolution of customizations in SharePoint
    Microsoft office SharePoint 2007
Required IT to Deploying Custom Solution by Console and GAC manually. 
    Microsoft SharePoint 2010
SharePoint 2010 Sandbox Solution AKA partially trusted and user code solution. 
Sandbox deployed by Site Collection Administrators.
Only subsets of Server site API available and external database and web service call is not allowed.    
Can deploy on SharePoint online. 
        Microsoft SharePoint 2013
  •         Cloud App Module which runs Outside the SharePoint server 
  •         Better life cycle installs > update > install. 
  •          App Store to Manage Apps.


Advantages Cloud App Module.
If your organization is really looking for a Cloud Scalable Solution. This is the Right Architecture for you. The Cloud App Module is running totally outSide the SharePoint. Which allow developers to manage their app isolated with effecting other Solutions or farm itself  You can update your Apps without re installing and activating them. In case of error or bug your app will not effect on whole farm which helps SharePoint Administrators allot.  By using Cloud hosted App Module you take lavage of new web standards like MVC, MVVM, Html 5, Jquery. At the same time you take all advantages of SharePoint with chrome control cross domain library. SharePoint list is not recommended for highly transactional or Relationship data Module. In App Module You can access Data outside the SharePoint and external resources. Like Web services and SQL and take lavage with your app module. 

 SharePoint 2013 app module much better development life cycle than SharePoint 2010. Which meet the fashion of modern App development and publishing life cycles.


SP App Design - A Choice of Three Approaches









Dubai Sharepointer meetup

Friday, May 17, 2013

 
 
 
It was Great Fun to meet Sharepointers in UAE. Salman Ahmed and All Other Community members done great effort and hope so in  near feature we will do some more SharePoint Community events very soon. 

X-Frame-Options’ to ‘SAMEORIGIN’ SharePoint2013 X-Frame without x-frame-options error

Monday, May 6, 2013

I was try to Add Item in  Custom list which in hosted Site from SharePoint hosted App.  then try to open same Add Form in Dialogbox and Get this Error. then I Find one very helpful Post  By .



xxxxxxxx-------------a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.


This is because SharePoint 2013 adds the x-frame-options header set to same origin.

to Solve this Problem.

Add this Control on Top of the App Page.


The following tells SharePoint to allow this page to be hosted in an IFrame -

<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>



Hope So it will help others 



Open Module Popup Dialog SharePoint 2010

Fastest Way :)


function OpenPopUpPage(url, callback, width, height)

function OpenPopUpPageWithTitle(url, callback, width, height, title)

function OpenPopUpPageWithDialogOptions(dialogOptions)




Or  you can use this Custom Function

//Add Dialog for Update,New Forms


function dialogfunction(pageUrl) {
    var options = { url: pageUrl, width: 400, height: 300 };
    SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options);
}






To Use above Function need Following SharePoint
 JavaScript libraries


SP.UI.Dialog.js
SP.Core.js
SP.js,




Create an external content type from an OData source in SharePoint 2013

Sunday, May 5, 2013

External content type are is core part of Business Connectivity Services. which allow you create content type for external data to collaborate  with SharePoint. its more meaningful way to  interact  external data. you use your LOB Application with SharePoint 2013 and Performed CURD Operations. 

More About BCS 



 Prerequisites

 Microsoft SharePoint 2013
VS2012 with SharePoint 2013 Tools Developer 
Published OData Service . Sample free OData Sources List


1 Open VS2012  and Create New Project. Visual Studio >New Project >Office/SharePoint>App>Apps for SharePoint 2013.

2 Enter Your Project and Click Ok.

3 Enter your App Name and insert SharePoint Site URL where you want to debug or use it.
4 Select "SharePoint-Hosted" in type of host you want to select for you app.
5 Right Click on Solution Explorer in Visual Studio> Add > Content Type for an External Data Source.
6 It will Open SharePoint Customization Wizard Add external  Data Source Name and URL for Odata Service. 

7. Select Entities that you want to Create ECT then Click on Finish 

8. Once you create ETC It will Create one Sub folder in Solution under ETC which have by default List for that ETC. 

9.  Right Click On AppManifest.xml from Solution in Visual Studio select View Code then change the Value of attribute called " " with this ~appWebUrl/Lists/Employee.
10. Click  F5 to test and Deploy. go to you site > Site Content and you will your new app is there click on it.



Click on any of these item then you can see all information is here you can edit these recorded it depend on you service as well. 
for that you have create you own WCF Data Service then you can modified Records 



.List will not Appear in Site this Site Content for that you have Understand SharePoint  App Security and Storage Module. here MVP CHRIS O'BRIEN explained it very beautifully.


If have any other Questions Regarding that kindly Email me @ usamawahabkhan@gmail.com.


By Usama Wahab Khan 

Microsoft Gulf Community Day X Factor

Saturday, May 4, 2013





Microsoft held a Community Day X Factor on May 4th 2013 at Microsoft Gulf, Dubai. In the first session
Eduardo Ortega, Technical Evangelist for Windows 8 and Windows Phone 8 from Microsoft Gulf talked about the MVP Program and shared his own experiences as an MVP for 4 years before joining Microsoft. In second session Natasha from Microsoft talked about the local developer communities that Microsoft is supporting.


Bing Maps and Leap Motion by Zubair Ahmed

 BITS-Pilani Dubai show their Musical Stairs project


I talk about SharePoint 2013 and App Development Module and how to Get started  



Robotics Demo and Winner 





It was great fun to meet all other Techies from different Technical Communities. Session By Eduardo Ortega, Technical Evangelist on MVP Program was really helpful and Motivating . 


Microsoft certified Trainer 2013 SharePoint

Thanks to ALMIGHTY ALLAH I ACHIEVED MCT 2013 FOR SHAREPOINT.