Manipulate Show Pages on navigation setting using CSOM

Hi All,
How to update Show Pages property on navigation settings(AreNavigationSettings.aspx page) using Client object model. 
Rajasekar A.C

Finally I was able to achieve using the below code:
web.AllProperties["__CurrentNavigationIncludeTypes"]
= "3";
web.Update();
                clientContext.ExecuteQuery();
Using the above code I am able to update Show Pages and Show Sites property using CSOM.
Rajasekar A.C

Similar Messages

  • How to add a file in Document Set using ECMA script?

    Hi,
    I want to upload a particular file into Document set using ECMA script.
    I can do it easily through C# but unable to achieve the same using ECMA Script.
    Any pointers or piece of code will be helpful.
    Thanx in advance :)
    "The Only Way To Get Smarter Is By Playing A Smarter Opponent"

    The following blog post provides a way to create a document set using ECMA:
    http://blogs.msdn.com/b/mittals/archive/2013/04/03/how-to-create-a-document-set-in-sharepoint-2013-using-javascript-client-side-object-model-jsom.aspx
    The following blog post provides a way to upload files into a document set using CSOM:
    http://www.c-sharpcorner.com/Blogs/12139/how-to-create-document-set-using-csom-in-sharepoint-2013.aspx
    See if you can follow the logic in the CSOM example to apply it to ECMA. Let me know if you have specific problems with it.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • How to set  newer version of stored pages option as never using  httpd.conf

    How to set check for newer version of stored pages option(Tem Internet file-> Setting ) as never using httpd.conf file?

    See:
    *http://kb.mozillazine.org/browser.cache.check_doc_frequency
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold(user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

  • Determine current Page's Context Navigation Term using server object model

    I am trying to find a way to figure out the navigation term in the context of page processing that was requested through a friendly url.  I cannot seem to locate anything on MSDN.  The only similar functionality i see is using CSOM via _spFriendlyUrlPageContextInfo.
     

    Hi,
    Please refer to the following article, it has information how to get the friendly URL
    How to get friendly URL of the current page in Sharepoint programmatically
    Please don't forget to mark it answered, if your problem resolved or helpful.

  • How to Submit a Concurrent Request Set Using a Self-Service Page

    Hi all,
    I would like to know how to Run/Submit a Concurrent Request Set Using a Self-Service Page
    Thanks.
    Bench

    Hi all,
    I would like to know how to Run/Submit a Concurrent Request Set Using a Self-Service Page
    Thanks.
    Bench

  • How to add SharePoint 2013 Promoted link list view web part in page programatically with Tiles view using CSOM.

    How to add SharePoint 2013 Promoted link list view web part in page programatically with Tiles view using CSOM. I found that it can be
    done by using XsltListViewWebPart class but how can I use this one by using shraepoint client api.
    shiv

    Nice, can you point me to the solution please ?
    I'm  trying to do this but I get an error : 
    Web Part Error: Cannot complete this action. Please try again. Correlation ID: blablabla
    StackTrace:    at Microsoft.SharePoint.SPViewCollection.EnsureViewSchema(Boolean fullBlownSchema, Boolean bNeedInitallViews)     at Microsoft.SharePoint.SPList.GetView(Guid viewGuid)   
    All help really appreciated.

  • Setting SharingCapability property for a Site Collection using CSOM in C#

    Hello,
    I am trying to deploy multiple site collections in a SharePoint 2013 Online tenant, using CSOM in C#.
    I am currently using the SiteCreationProperties to do this, but I miss one crucial parameter : SharingCapability.
    Do you guys know a way of activating external sharing for a site collection in CSOM ?

    I believe you can set the SharingCapability of the Site after you create it. You can use the Microsoft.Online.SharePoint.TenantAdministration.Tenant.GetSitePropertiesByUrl(siteUrl, true)
    This returns SiteProperties object with a SharingCapability property you can set with the appropriate enumeration. Then call the Update method.
    http://msdn.microsoft.com/en-us/library/microsoft.online.sharepoint.tenantadministration.tenant.getsitepropertiesbyurl(v=office.15).aspx
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • How to set field type choice using csom (c#)

    I have a field type: Choice (menu to choose from) which is not multichoice. How do I set a value?
    I have found code for multiple choice but it doesn't seem to work for single choice.

    Hi,
    The following code snippet for your reference:
    newListItem["ChoiceFieldName"] = "ChoiceValue";
    newListItem.Update();
    clientContext.Load(newListItem);
    clientContext.ExecuteQuery();
    If you are assigning a Value which is not in the Choice Column, You need to create a choice value then assign it to the item.
    More information is here:
    http://sharepoint.stackexchange.com/questions/124999/how-to-set-field-type-choice-using-csom-c
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Under "View" on the menu bar there used to be the option to "Show Page Source" - that seems to be missing. How do I get it back?

    How do I get the "Show Page Source" feature back?

    View Page Source has been moved to the "Web Developer" sub-menu. You can use any of the following to View Page Source:
    *CTRL+U
    *Right-click a blank area of the page and choose "View Page Source"
    *Firefox button > Web Developer > View Page Source
    *Using the Menu Bar: Tools > Web Developer > Page Source
    *ALT+T+W, release ALT key, letter O key
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Highlighting List which using Template  "Page Tab navigation"

    Hi,
    Im using a List which uses List Template : "Page Tab navigation".
    But irrespective of selection all tabs looks same..How can I highlight the active one ?
    Regards,
    Benz

    Hello Benz,
    I suppose you want the "current" tab to be highlighted.
    Take a look at Shared Components>Lists>List Entries>Create / Edit List Entry in section 'Current List Entry'.
    There you can spezify for each of your entires when it should be current and therefore displaying in different style.
    Regards, Tine.

  • Create custom web-part page with OOTB page layout using CSOM (Javascript)

    Hi,
    I need to create a custom webpart page with a OOTB page layout (eg. Header 3 column footer) using JSOM.
    I found a link to do this using CSOM: http://spdevlab.com/2013/03/28/creating-wiki-web-part-and-publishing-pages-via-csom-in-sharepoint-2010/
    But here i have to copy the page template from 15 hive and store it in a resource file and I am also getting error as "The request message is too big" and to fix this I need to run a powershell script but I need the code to run in SharePoint online
    also.
    Isn't there a simpler piece of code in which I can enter the name of the page layout(OOTB/Custom) while creating a page in JSOM as we have in SSOM?
    Thanks for the help
    sunny

    Hi,
    According to your post, my understanding is that you want to create a custom web part page layout template.
    There are some articles about how to create the custom web part page layout template, you can refer to them.
    http://www.manageprojectsonsharepoint.com/blog/2011/03/14/creating-your-own-web-part-page-layout-template/
    http://sandeeppawar.blogspot.com/2012/06/create-custom-web-part-page-template.html
    http://doitwithsharepoint.blogspot.com/2011/08/create-web-part-pages-with-custom.html
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • HT1339 Hi i have an I pod and i had used it as hard disk also. Now when ever i connect it with my Laptop it shows restore to factory setting....i wanted to knwo is there any way i can save the data which i had already stored in the I pod

    Hi i have an I pod and i had used it as hard disk also. Now when ever i connect it with my Laptop it shows restore to factory setting....i wanted to knwo is there any way i can save the data which i had already stored in the I pod. I dont want to loose that data???

    sure pretty simple.  make a backup of your current settings
    http://support.apple.com/kb/HT1766?viewlocale=en_US
    then restore device from old backup you need pics off of
    then import pics to computer
    http://support.apple.com/kb/HT4083
    you may need to save pics to camera roll first
    then restore the new backup and sync pics back to phone via itunes
    Peace, Clyde

  • Since update to FF 16.0.1 the FF Start Page is blank, my bookmark toolbar doesn't show automatically + the navigation toolbars stays on the first url.

    Since update to FF 16.0.1 the FF Start Page is blank, my bookmark toolbar doesn't show automatically + the navigation toolbars stays on the first url.
    I uninstalled 16.0.1 and reinstalled 15.0.1 and everything worked fine so I reinstalled 16.0.1 and have the issues again.

    hello shanonrs, can you try launching firefox in safe mode once and see if the issue is occurring there too? maybe an extension or theme is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • Adding Custom Webpart (Sandbox) to a page programmatically using CSOM

    I'm trying to add a webpart(sandboxed) to a page programmatically using CSOM.
    I've created a simple windows forms application and tried the below, it gives me error
    Error: "A first chance exception of type 'Microsoft.SharePoint.Client.ServerException'
    occurred in Microsoft.SharePoint.Client.Runtime.dll"- Server Exception occurred.
    Additional Information: Cannot Import this webpart "
    using (ClientContext context = new ClientContext("URL"))
    Web web = context.Web;
    File file = web.GetFileByServerRelativeUrl("/SitePages/Test.aspx");
    LimitedWebPartManager wpMgr = file.GetLimitedWebPartManager(PersonalizationScope.Shared);
    string webpartxml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
    "<webParts>" +
    "<webPart xmlns='http://schemas.microsoft.com/WebPart/v3'>" +
    "<metaData>" +
    "<type name=\"CustomVisualWebPartProject.VisualWebPart1.VisualWebPart1, CustomVisualWebPartProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=28942db35e131a1c\" />" +
    "<importErrorMessage>Cannot Import this webpart</importErrorMessage>" +
    "</metaData>"+
    "<data>"+
    "<properties>"+
    "<property name=\"Title\" type=\"string\">CustomVisualWebPartProject - VisualWebPart1</property> "+
    "<property name=\"Description\" type=\"string\">My Visual Web Part</property>" +
    "<property name=\"ChromeType\" type=\"chrometype\">None</property>" +
    "</properties>" +
    "</data>" +
    "</webPart></webParts>";
    WebPartDefinition webPartDef = wpMgr.ImportWebPart(webpartxml);
    wpMgr.AddWebPart(webPartDef.WebPart, "Left", 1);
    context.ExecuteQuery();
    Kindly let me know how to resolve it.
    Thanks,
    Pandiarajan

    Hi,
    I have the same issue with you, I also cannot add visual Webpart (Sandbox) to a page using CSOM,but I can add farm solution web part using CSOM, so I change it to farm solution web part.

  • HT4059 I'm using ibooks on an ipad mini. I am forever inadvertently advancing to the next  or prior page without meaning to do so. Is there some way to require a double tap to advance the page, or to set the sensitivity lower?

    I'm using ibooks on an ipad mini. I am forever inadvertently advancing to the next  or prior page without meaning to do so. Is there some way to require a double tap to advance the page, or to set the sensitivity lower so that the page doesn't advance every time I move imperceptibly?

    I'm using ibooks on an ipad mini. I am forever inadvertently advancing to the next  or prior page without meaning to do so. Is there some way to require a double tap to advance the page, or to set the sensitivity lower so that the page doesn't advance every time I move imperceptibly?

Maybe you are looking for

  • GR/IR Account is not being credited with po net price

    Hi Experts, While posting Goos Receipt ,GR/IR amount is not equal to PO net price.MRP indicator is on in excise tab, If MRP indicator is on then GR/IR value decreases as comparitively PO net price. But this GR/IR value is so low than PO net price. I

  • Slow performance on activating BW elements

    Hi all. We have very slow performance in our BW system when activating infoObjects, infoCubes, tranformations... Problems are centered in db access to table D010TAB, D010INC... We followed recomendations as in note 1232776      Long runtimes for acce

  • Organizing Videos in folders

    Hi, is there any way to organize videos in folders? So far I have one long list, mixed with movies, videos from various conferences, family videos an so on. Thx Dieter

  • How do I get CC & BCC to appear in incoming mail messages?

    Since upgrading to Lion I can't get the CC & BCC to show in incoming mail messages. Also have we lost the alphabetical index down the side of the address book?

  • CK11N - How to exclude assembly scrap factor from Cost estimate

    Dear Experts, We have assembly scrap maintained in the material master. We also have operation scrap in the routings. During the Cost estimate runs, we just want the system to consider the Routing operation scrap. I know one solution is just to remov