Tuesday, December 17, 2013

User Profile Creation

User Profile Creation
Step 1 :

Browse the url http://abc.com
Give your user name and password of domain

Step 2: 
 click on about me

Your Profile page will be open now you can perform following operation
  •   Edit your profile
  •    Add news feeds
  •   Add Blog
  •     Add Task 
  •      Edit your profile
  •      Add news feeds
  •      Your followers
  •        Add Blog
  •         Add Task 



Wednesday, December 11, 2013

Share point 2013 curent navigation is not changing properly.

last day we have face the issue that the current navigation is not saving and quick navigation order is change when we save navigation.

we have search a lot but their is no solution fine. Finlay i jumped in the content DB and open the navigation table update it and after that click ok in navigation it was saved and give us desired navigation so if you are not founding the solution from front end change in database content table


Steps are

1. open the content Database
2. open the table [NavNodes]
3. change the navigation link

if you want to add new navigation add the navigation and add the [Url] of that and then update the document ID ( you can get the document id of that new page from [allDocs] table


Tuesday, October 22, 2013

SQL Server Reporting Services 2012 anonymous access



SQL Server Reporting Services 2012 anonymous access


Disclaimer:
ANONYMOUS AUTHENTICATION or ACCESS for SQL Server Reporting Services 2012 IS NOT OFFICIAL SUPPORTED SO DON’T USE IT IN PRODUCTION ENVIRONMENT!
But in case you still want to try it here are the steps:
Step 1: Change authentication types in “C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\rsreportserver.config” to :
From:


   
    
      
    
    Off
    Proxy
    true
  
To:


  
    
      
    
    Off
    Proxy
    true
  
Step 2: Set authentication mode to “None” and identity impersonate to “false” in “C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\web.config”
From:


    
    
To:


    
    
Step 3:  Set authentication mode to “None” and identity impersonate to “false” in “C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportManager\web.config”
From:


    
    
To:


    
    
Step 4: Download Microsoft.Samples.ReportingServices.AnonymousSecurity.dll and drop the file into “C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin” directory:
Note: I used the code provided on this Microsoft blog
Or you can download complete C# project (you can find the dll file in: Microsoft.Samples.ReportingServices.AnonymousSecurity\bin\release)
Step 5: Change Extension Name in “C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\rsreportserver.config”:
From:


    
      
    
    
      
    
To:


    
      
    
    
                        
    
Step 6: Add the following CodeGroup between
  into “C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\rssrvpolicy.config”

   
                                 
 
                            


From:


                            
                                                                            To:

                            
                                                                                                                                                               Last Step: Restart the Reporting Services 2012 server and your server is anonymous
Reporting Services Configuration Manager
The following are the steps to compile the .dll in case you want to do that but you don’t know how:
Get the code from the following class
Microsoft.Samples.ReportingServices.AnonymousSecurity\Class1.cs in C# project or from the original source: Microsoft blog
1) Download and instal Visual C# 2010 Express :
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express
2) Create a class library project named Microsoft.Samples.ReportingServices.AnonymousSecurity
Visual C# Express
3) From Solution Explorer, right click References directory to add Microsoft.ReportingServices.Interfaces reference from “C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin”
4) Change the framework from .Net 4 to .Net 2.0
From Solution Explorer, right click on Microsoft.Samples.ReportingServices.AnonymousSecurity and choose properties.
.Net 2.0
This entry was posted in SSRS and tagged , , , by Constantin Rotariu. Bookmark the permalink.

Thursday, September 12, 2013

Master pages, page layouts, and pages in sharepoint


SharePoint uses templates to define and render the pages that a site displays. The structure of a SharePoint page includes three main elements:
  • Master pages define the shared framing elements—the chrome—for all pages in your site.
  • Page layouts define the layout for a specific class of pages.
  • Pages are created from a page layout by authors who add content to page fields.
Figure 1. Master page, page layout, and page

Master page, page layout, and page

Master pages

A master page defines the chrome (the shared framing elements) of your site. These elements may include the header and footer, top navigation, breadcrumbs, search box, site logo, and other branding elements. The master page remains consistent as visitors navigate through your site.
Figure 2. Master page

Master page A master page also defines regions called content placeholders that are filled in by content from matching regions on page layouts. Most commonly, the body of a master page contains just a single content placeholder (named PlaceHolderMain, which is created automatically), and all of the content from a page layout appears inside this one content placeholder (the PlaceHolderMain content placeholder is outlined in red in Figure 3).
Figure 3. Master page with page layout outlined

Master page with page layout outlined When you preview a master page in Design Manager, you see the following message. This
resides inside the main content placeholder. Put simply, the master page defines the chrome of a page, and the page layout defines the body contained in the main content placeholder.
Figure 4. Master page preview message

Master page preview message

Page layouts

A page layout is a template for a specific type of page in your site, such as an article page or a product details page. Just like its name implies, you can think of a page layout as defining the layout or structure for the body of a page.
Figure 5. Page layout

Page layout Page layouts define regions or content areas that map to content placeholders on the master page (outlined in red in Figure 6). Again, the most common scenario is that a page layout defines a single content region that maps to the single content placeholder that is created automatically on a master page.
Figure 6. Content region and content placeholder

Content region and content placeholder

Page field controls

The primary purpose of a page layout is to arrange page fields. When you design a page layout, you insert, position, and style elements called page field controls. These controls will eventually contain content when an author creates a page based on that page layout. In addition to page fields, page layouts can also contain Web Part zones, to which content authors can add Web Parts. (Master pages can't contain Web Part zones.)
With a page field control, you can define the styles used by the content. Authors can add content to a page, but the designer has ultimate control over how that content is rendered through CSS applied to those controls.
Figure 7. Page layout with page field controls

Page layout with page field controls Every page layout is associated with a content type in the Pages library of a site. A content type is a schema of columns and data types. For any page layout, the page fields that are available for that layout correspond directly to the columns defined for that page layout's content type.

Relationship of master pages and page layouts

Together, a master page and a page layout create a content page.
Figure 8. Master page with page layout

Master page with page layout The master page defines the chrome for all pages in the site so, often many page layouts (and therefore many pages created from those page layouts) are associated with one master page.
Figure 9. One master page tied to three page layouts

One master page tied to three page layouts But, your site will likely use multiple master pages. For example, in addition to the default master page, you may have one or more master pages that target specific devices such as smart phones or tablets. In this case, one page layout is used by many master pages (see the section about device channels).
You can use one master page per channel per SharePoint site.

Pages

Authors can create pages and add content to the page fields, and they can add Web Parts to any Web Part zones or Rich Text Editors. Pages are structured so that content authors cannot make changes outside of page fields.
Figure 10. Page with authored content

Page with authored content The rendered page is what site visitors see. When a page is requested by the browser, the master page is merged with a page layout to create a content page, and the content for that page is merged into the page fields from that page in the Pages library.
Figure 11. Rendered page in browser

Rendered page in browser
Figure 12. Master page, page layout, and page

Master page, page layout, and page

Monday, September 2, 2013

Changing the port for webapplication/site collection in sharepoint 2013


Go --> Internet Information Services (IIS) Manager
Locate the website (whose port number you want to change)
To change a port right clicks on the Default Web Site and click properties
On the "Web Site" tab you can modify the port.

Step2
And done mapping in central admin?
SharePoint Central Administration ---> Operations ---> Alternate Access Mappings
Change the necessary settings here for your portal to reflect the port change
 Error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.
 Also, you may check the security settings of your bin/ directory of your web application. In my case the local server group "SERVER\Users" (which usually contains DOMAIN\Users) had no access to the bin/directory. Granting read rights to the bin/ dir to "SERVER\Users" might solve this issue

Thursday, August 29, 2013

How To Stop to show the site content in share point 2013?

How To Stop to show the site content page in share point 2013?




How To getting back up of Sharepoint site in 2013



Open the Central administration > click on backup and restore > Click on Create site collection backup


Write the Destination folder and click on start



Thursday, July 18, 2013

Calling a web service in jquery (sharepoint 2013)

function InfoByDate(){
    var divToBeWorkedOn = "#AjaxPlaceHolder";
    var webMethod = "http://abc:8888/Service.asmx/xyz";
    var txt_CNIC =  replaceAll("-","",$("[title='abc']").val());
    var parameters = "{'abc':'"+ txt_abc + "', 'status':'2'}";
   

    $.ajax({
        type: "POST",
        url: webMethod,
        data: parameters,
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function(msg) { 
        if(typeof msg.d[0] !== "undefined") {
        $("[title='Name']").val(msg.d[0]['az']);
        $("[title='xyz']").val(msg.d[0]['ax']); 
        }
        else
        {
         $("[title='Name']").val("");   
          $("[title='xyz']").val(""); 
        }          
        },
        error: function(e){
           $("[title='Name']").val("");              
        }
    });
}

Monday, July 1, 2013

Removing/ Changing Title of Work follow popup form (sharepoint 2013)


 By default work follow form title is the task list title if you want to Change it
replace the following  code with existing "PlaceHolderPageTitle" asp:conetent  in wrktaskIP.aspx
(this file is located in your server)
and if you want to add your custom title add the your tile in text property.

like 

          asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server"
         SharePoint:EncodedLiteral runat="server" text="" EncodeMethod='HtmlEncode'
asp:Content


now your form header look like this  with out Title.


Thursday, June 27, 2013

Adding/ Starting search service in your share point site (sharepoint 2013)

Easy step of staring search on share point 2013


Step 1
Go to central admin
Step 2
Click on application mangement
Step 3
Click on mange services on server
Step 4
 Start SharePoint Server Search
Step 5
Click on SharePoint Server Search
Step 6
Make search service application
Step 7
Click on search service application
Step 8
Add crawling job
Step 9
Schedule and start crawling job
Step 10
Check the search service health in Search Application Topology
Step 11 
When all are runing fine
test teh search in ur side

Sunday, June 23, 2013

Adding accordion in left navigation in sharepoint 2013


 Add this script in your master page

$(function()
{ if($('#sideNavBox .menu-item.selected').length)
{ $('li.static').removeClass('selected');
 $('#sideNavBox .menu-item.selected').parents('li.static').addClass('selected');
 $('#sideNavBox .menu-item.selected').parents('li.static').last().siblings() .find('> ul').hide(); } 
else $('#sideNavBox .root.static > li.static > ul').hide(); 
$('#sideNavBox .root.static > li.static').each(function()
{ if($(this).find('ul').length){ $(this).addClass('father').click(function()
{ if($(this).children('ul').css('display') != 'none')
{ $(this).removeClass('selected').children('ul').slideUp(); } 
 else { 
$(this).siblings().removeClass('selected').children('ul').slideUp(); 
 $(this).addClass('selected').children('ul').slideDown(); 
 } 
 }); 
}
 });
 });

Thursday, June 20, 2013

How to add Dynmaic image in RDL Report in sharepoint 2013

Step 1..

Create the Virtual Directory for images

Step2..

Add the Image path in DataBase

Step 3..

Add the image path  in Report

Step 4..

Set the Source type of image to Data base.

Step 5..

 Add the Data base Filed to Image

Step 6..

Select the MIME Type

That should by according to you image format like image/jpeg, image/gif


Thursday, June 6, 2013

Adding Work follow Start button in your page (sharepoint 2013)

var itemId=-1; var itemids=-1; var listTitle = ''; $(document).ready(function() { var thisListGuid = '{F01484D1-FC55-4F81-94DE-CF503FEAF322}'; ExecuteOrDelayUntilScriptLoaded( function() { itemId = window.location.search.substring(4); // itemId = $().SPServices.SPGetLastItemId({listTitle : "Material Reuisition Form" listTitle = "Material Form"; var ctx = SP.ClientContext.get_current(); var list = ctx.get_web().get_lists().getByTitle(listTitle); var item = list.getItemById(itemId); ctx.load(item); ctx.executeQueryAsync( function () { itemids = item.get_item('UniqueId'); }, function(sender, args) { alert('Request failed. \nError: ' + args.get_message() + '\nStackTrace: ' + args.get_stackTrace()); }); }, "sp.js"); $("#inputwfllow").click(function () { var lnk= 'http://abc/afd/_layouts/15/IniWrkflIP.aspx?List=' + thisListGuid + '&ID='+ itemId + '&ItemGuid=' + itemids + '&TemplateID={35214bc5-00f3-4aeb-add0-6f648c7c765e}&Source=http%3A%2F%2F10%2E100%2E21%2E32%2FInventoryTracking%2FSitePages%2FMR%5FRequest%2Easpx'; var title = "Ascertain Jurisdiction Report"; window.open(lnk); }); });

Monday, May 27, 2013

How to create Reports in Sharepoint 2013



Step 1:

Create Report library

Step 2:

Add new document of Report Builder Report.








Step 3:

After Creating the report open in Report builder




Step 4:

Make the report and save it in particular library.


Thursday, May 23, 2013

The server was unable to save the form at this time. Please try again.” Error



When working on a SharePoint 2013, after several hours of uptime, the user interface showed an error message when our user wanted to save an item in a list : “The server was unable to save the form at this time. Please try again.”






Looking at different possible causes, We found that the available memory was drastically low. Indeed, on this 8GB RAM, only few megs were still available.





Then, in the “Processes” tab, We saw that the noderunner.exe process was eating a lot of memory. So we restarted the “SharePoint Search Host Controller” service. The service took a long time to restart and a huge part of the memory was released. The good thing is that at the same time it solved the item-saving issue. The error disappeared.

To be sure this service restart was “solving” the issue, We worked again several hours, playing also with the search and when the VM got short in memory, the same error message was shown again.
Another side effect of this low-memory case occurs when browsing the Managed Metadata tree. We suddenly received constantly an “Unexpected response from server. The status code of response is ‘500’. The status text of response is ‘System.ServiceModel.ServiceActivationException’. Unfortunately, it was impossible to get out of this message loop, and the only way to get rid of it was to kill the Internet Explorer application.

To prevent this low-memory case, we upgrade our server RAM into 16GB. So we can keep the available memory high. And we always monitoring our server, so we will release the memory before our clients get the “The server was unable to save the form at this time. Please try again.” error.

How to Build interactive Design in Power Pages

 Need to Create a design in figma/or any UX tool Create a Power pages site. Create new Page Open page in VS Code in every page there are the...