Prepare SharePoint 2010 page for using JSOM

Hello,
Could please somebody provide aspx page with all necessary scripts and other stuffs to work with JSOM in SharePoint 2010.
For working through SP Designer.
Thanks.

Hi,
Create a simple web part page in your SharePoint site. Open this page in the SharePoint Designer.  Look for this code in the page: 
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">Now copy following code after it:<script type="text/ecmascript" language="ecmascript">
var targetWeb;
function runCode() {
// Specify a client context using the server-relative URL of the sub web, load the sub web, and call the ExecuteQueryAsync method.
var clientContext = new SP.ClientContext('/MySubWeb');
targetWeb = clientContext.get_web();
clientContext.load(targetWeb);
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
function onQuerySucceeded() {
// On success, use get_ property assessor methods to return the value of the Title, ID, Language, uiVersion, Description, and Created properties of the SP.Web object.
var message = "Web retrieved:";
message += "\n Title: " + targetWeb.get_title();
message += "\n ID: " + targetWeb.get_id();
message += "\n Language: " + targetWeb.get_language();
message += "\n UI Version: " + targetWeb.get_uiVersion();
message += "\n Description: " + targetWeb.get_description();
message += "\n Created: " + targetWeb.get_created();
alert(message);
function onQueryFailed(sender, args) {
alert('Request failed. \nError: ' + args.get_message() + '\nStackTrace: ' + args.get_stackTrace());
</script>
<input id="Button1" type="button" value="Run Code" onclick="runCode()" />See this for more information:https://msdn.microsoft.com/en-us/library/office/ff410960(v=office.14).aspx
Please remember to up-vote or mark the reply as answer if you find it helpful.

Similar Messages

  • How check page level permission on SharePoint pages library using JSOM

    Hi,
    Can anyone tell me how check page level permission on SharePoint pages library using JSOM.
    Tanks in advance .
    Regards,
    Hari
    Regards, Hari

    Hi,
    According to your post, my understanding is that you want to check the page level permission on SharePoint Pages library via JSOM.
    I have made a simple code demo to check whether current user has edit permission for the pages in Pages library, it works like a charm.
    You can re-write it to fit your environment.
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    var web;
    var list;
    $(function(){
    $("#Button1").click(function()
    console.log(1);
    getListItems('Pages',success_Items,error_Items);
    console.log(2);
    function getListItems(listTitle,success,error)
    var context = SP.ClientContext.get_current();
    this.web = context.get_web();
    this.list = context.get_web().get_lists().getByTitle(listTitle);
    this.items = list.getItems(SP.CamlQuery.createAllItemsQuery());
    this._currentUser = web.get_currentUser();
    context.load(this._currentUser);
    context.load(web,'EffectiveBasePermissions');
    context.load(items);
    context.executeQueryAsync(
    function() {
    success(items);
    error
    function success_Items(items){
    var e = items.getEnumerator();
    while (e.moveNext()) {
    this.item = e.get_current();
    console.log(this.item.get_item('FileLeafRef')); //print File or Folder Name
    console.log(this.item.get_item('FileRef')); //print File or Folder Url
    if (this.web.get_effectiveBasePermissions().has(SP.PermissionKind.editListItems)) {
    console.log('Nice, edit list item permissions!');
    else {
    console.log('Boo, no edit list item permissions!');
    function error_Items(sender,args){
    console.log(args.get_message());
    </script>
    <input id="Button1" type="button" value="Check Permissions"/>
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Prepare sharepoint 2010 with sp2 environment on windows server 2012 R2

    HOw  prepare sharepoint 2010 with sp2 environment how i  install sharepoint 2010 with sp2 in a windows server 2012 
    i mean
    from scratch  i just prepared a windows server 2012 R2 vm
    and i set all required  roels (Appserver,webserver etc) according to this link
    http://social.technet.microsoft.com/wiki/contents/articles/12502.how-to-install-and-configure-windows-server-2012-for-sharepoint-2010.aspx
    and i have sharepoint 2010 set up, and i downloaded sharepoint 2010 sp2
    from this link
    http://www.microsoft.com/en-us/download/details.aspx?id=39672
    now should i install sp2 and install sharepoint 2010 binaries?
    adil

    SharePoint 2010 has no supportability statement for Server 2012 R2.  I would not use it until Microsoft releases a supportability statement.
    Even it  has no supportability for server 2012, but sharepoint 2010 running fine in my server 2012 test environment
    adil
    You indicated you were using 2012 R2.  SharePoint 2010 supports Server 2012 (non-R2) with SP2 media, but has no supportability statement for Server 2012 R2.
    Trevor Seward, MCC
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Dynamically Link OneNote Page to SharePoint 2010 Page Viewer Web Part

    I'm trying to display a OneNote page within a SharePoint 2010 Page Viewer web part whereby the OneNote page can be edited by users with read/write permission, but not having any success. 
    I was able to save the OneNote page as a web page (.mht) file and display it as a static page within the SharePoint Page Viewer web part.
    Any suggestions on how it can be done would be greatly appreciated.
    Thanks!

    I'm afraid there might be no way to integrate OneNote with SharePoint as your requirment. Sorry.
    Tony Chen

  • Unsure about preparing a Dreamweaver Site for use with Contribute

    Recently I designed a small Dreamweaver Website (DW CS2) for
    a friend and it is already successfully online. So that my friend
    can manage her own website, I`ve decided to prepare this DW site
    for use with Contribute, but I'm unsure about the steps involved
    and what files I will need to store on the server. Is the following
    roughly correct?
    Step 1: Define editable regions in these html files and save
    these as html files.
    Step 2: Enable Contribute Compatibility in DW before I upload
    to the server.
    Step 3: Is setting up a Connection Key necessary for my
    friend`s access?
    Step 4: Upload these. Do these completely overwrite the
    existing Dreamweaver html files on the server? Or should I be
    saving in another file format?
    Many thanks to anyone who can advise me!

    I sugggest these steps:
    A: Dreamweaver:
    1. build you site based on (a) template(s) with editable
    regions
    2. upload the website to the server
    B: Contribute
    1. create a connection
    2. administer the website ( and create an admin password )
    3. set the proper settings for your users (administrators,
    publishers, writers), enable rollbacks
    4. create a connection key fot you user with the proper role
    and save that to disk
    C: Dreamweaver
    1. manage the site in dreamweaver
    2. enable contribute compatibility (this way files get
    checked in and out, so you know who is editing what)
    D:
    1. Sent the connection key to your user

  • Sharepoint 2010 Remote Development using Visual Studio 2013 Connection Errors

    I have a customer who is using a custom skinned site developed in Sharepoint 2010.
    I am trying to debug a webpart that is not loading on a page.
    My Environment:
    Local Laptop running Win 7 64 Enterprise, Visual Studio 2013, and Sharepoint Designer 2010.
    I connect to the customers network via VPN and use RDP to access the server. I have Admin rights to the server.
    Everything that I have read indicates that Web Part dev has to be done in VS. When I try to connect using server explorer, VS kicks back a 'Server Can not be found' error.
    I have tried using the computer name, the app url listed in SP Central Admin, the IP address of the box, and the actual URL of the site. However, VS can not connect to the server.
    I have done some homework on connecting VS to a remote machine:
    Adding New Servers in Server Explorer
    http://msdn.microsoft.com/en-us/library/edfcxas2%28v=vs.71%29.ASPX
    Add Server Dialog Box
    http://msdn.microsoft.com/en-us/library/107b72aa%28v=vs.71%29.ASPX
    SharePoint -how to connect remotely to production server
    http://stackoverflow.com/questions/3188364/sharepoint-how-to-connect-remotely-to-production-server
    SharePoint 2010 Development with Visual Studio
    http://stackoverflow.com/questions/10529917/sharepoint-2010-development-with-visual-studio
    Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008
    http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx
    Using SharePoint Designer 2010 to Work with Web Parts
    http://msdn.microsoft.com/en-us/library/ff630941%28v=office.14%29.aspx#odc_sp14_qn_UsingSharePointDesigner2010WorkwithWebParts_CreateXSLTListView
    The last connection article is confusing because one of the SO answers indicates that you do not need to have SP2010 installed.
    I have been doing lots of reading on SP structure, and it seems to jump all over the place. (Or at least my research does). I have been reading this Ebook:
    SharePoint 2010 Development with Visual Studio 2010
    http://books.google.com/books/about/SharePoint_2010_Development_with_Visual.html?id=TVKICs4vHTcC
    My questions are:
    Why cant I connect to the Server if I connected through VPN which would inherently make the server a local network computer?
    Do I need to have VS installed on the actual server? I read that I can install Sharepoint Foundation locally and this will give me access to the server in VS.
    Do I need to have the full version of VS installed in order to use Remote Tools?
    For the Web Parts:
    Why cant I see the web parts in Sharepoint Designer? I take it they are exclusively designed in VS, which brings me back to the questions above.
    In Sharepoint Designer, I can see a custom view that was created from a custom list. I want to add that list to the page where the web part isnt working. When I open up the Edit Interface, and try to find that list, it does not display in the 'Lists and Libraries'
    menu

    Hello,
    As per your description, remote deployment is not possible for server side code in sharepoint so if you are using server object model then you won't be able to debug or deploy your solution from visual studio.
    VS is not required to installed on UAT/prod server but you need sharepoint along with visual studio in same development machine to develop any custom webpart.
    Once you deploy your custom webpart on site then you will be able to see that webpart in webpart gallery and that gallery is also available in designer so it means you can also add your custom webpart from designer to any page.
    Correct me if i misunderstood you
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Citrix Netscaler AppXpert with Sharepoint 2010 Page Edit Issue

    Posting this as a questions and discussion point.
    The issue is in using Citrix Netscaler with AppXpert with SharePoint 2010. I've seen this issue for two customers.
    Configurations:
    - Citrix Netscaler as the load Balancer
    - Netscaler AppXpert for SharePoint deployed on Netscaler (using either AppXpert version 1.1 or 2.0)
    - SharePoint 2010 Standard or Enterprise editions
    Issue:
    A SharePoint user with appropriate rights go to a SharePoint page. They choose Edit page, make changes and want to save changes. At this point all SharePoint ribbon options on the top are greyed out. End result, users are not able to make changes to their
    site pages. Issue happens for everyone including Farm Admins.
    Cases:
    a. The users are able to edit and save SharePoint wiki pages if I point user's PC to the SharePoint web server WFE by changing their local host file.
    b. On Citrix Netscaler, if I use the traditional load balancing i.e. without Citrix AppXpert, then the users are able to edit and save the pages. That is an option if the customer is using SharePoint 2010 Standard. That is not an option if a customer is
    using InfoPath forms. InfoPath is a feature of SharePoint 2010 Enterprise edition. Citrix AppXpert for SharePoint is needed to make the InfoPath work. Else the users get session errors when they use InfoPath Web forms.
    c. The issue happens on almost all combination of OS and browser. XP, vista, Win 7, Win8, Win8.1, IE8, 9, 10, 11 and other browsers like chrome etc as well.
    Please share your ideas and suggestions.

    Hi Faisal,
    As I understand, the issue will be solved when end users directly connect to SharePoint WFE servers. Since the issue is related to third party products, I'd recommend you contact their support engineer for sufficient resource and assistance. For your convenience:
    http://discussions.citrix.com/forum/150-support-forums/
    Should you need more assistance, let me know. Thanks for the understanding.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Display CRM 2013 Dashboard in SharePoint 2010 Page Viewer web part

    Hello,
    I am trying to add a simple CRM 2013 dashboard to a SharePoint 2010 web page (Page Viewer web part).  The page shows the banner only - the dark blue banner from CRM, but that is it.  No data, no headers, etc.
    Is this a permissions issue?  The SP and CRM servers and user are all on the domain.
    Thanks,

    Hello,
    I believe I found the answer to this issue.  The GUID for the dashboard needs to be copied from customizations/Dashboards in Settings.  Then the URL ends up looking [something] like this (note: this is just a sample) -
    http://SERVERNAME/ORGNAME/Dashboards/Dashboard.aspx?dashboardid=NNNNNNNNNNNNNNNNNNNNNNNNN
    Server name and org name and GUID (sample below shown as "NNNNNNNNNNNNNNNNNNNNNNNNN") needs to be replaced with the correct GUID of your entity to make the URL valid.  This is just a sample, not meant to be used in a production
    environment. 

  • Setting SharePoint 2010 Form Fields Using Query String Variables

    Hi All,
    I have a requirement to populate sharepoint form field value with query string while uploading document to document library.
    While uploading the document to document library, I want to populate claim number available from query string in a pop up page i.e in my case EditForm.aspx, Located at
    http://servername:port/sitename/documentlibraryname/forms/EditForm.aspx.
    Additional Information:
    Created document library and added custom columns like claim number etc..
    Created a view to filter uploaded documents as per claim number.
    Server Details:
    Windows Server 2008 R2
    SharePoint 2010
    SQL Server 2008 R2
    I have written javascript for the same, but not sure where exactly to add the code in EditForm.aspx page.
    Any help on this would be greatly appreciated.
    Thanking you in advacne.
    Regards
    Seva

    if the NewForm.aspx contain a "New Item Form" or "Edit Item Form" you can populate the form field by doing the following:
    First for the data view create a parameter from query string and give it the claim_number query string name.
    now for the field Claim Number Convert it to normal ASP.NET TextBox example below for this
    Normal Field will be like this
    <SharePoint:formfield runat="server" id="ff5{$Pos}" ControlMode="Edit" FieldName="ClaimNumber" ItemId="{@ID}" __designer:bind="{ddwrt:DataBind('u',concat('ff5',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@ClaimNumber')}" />
    you will change it to
    <asp:TextBox runat="server" id="ff5{$Pos}" __designer:bind="{ddwrt:DataBind('i',concat('ff5',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@ClaimNumber')}" />
    Now in the asp:TextBox you can add the "Text" Attribute and assign the created data view parameter to it example below
    <asp:TextBox runat="server" id="ff5{$Pos}" Text="{$Claim_Number}" __designer:bind="{ddwrt:DataBind('i',concat('ff5',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@ClaimNumber')}" />
    Where {$Claim_Number} is your Query String Parameter.
    Now if you send the query string NewForm.aspx?Claim_Number=1232
    you should see the field populated
    This what I do usually to populate the fields
    How I Bought a Brand New $1.2 Million Home Using ONLY Affiliate Commissions
    I'm having the same problem.... allmost
    I have a querystring I wan't to parse into a form. But on editform, not newform. then the field gets populated, but on save, nothing happens.... It's just blank.... any ideas.?
    /Ulrich

  • Creating publishing page in specific folder and with custom page layout using JSOM

    Hi!
    I have a site collection under my root, in which I have a page library with a folder inside. I want to create a publishing page inside the folder using JSOM. The API provides the following information on the three possible ways of how you can create a publishing
    page.
    PublishingPageInformation with all defaults.
    PublishingPageInformation.Name and PublishingPageInformation.PageLayoutListItem.
    PublishingPageInformation.Name, PublishingPageInformation.PageLayoutListItem and PublishingPageInformation.Folder.
    Source - SP.Publishing.PublishingPageInformation Properties (sp.publishing)
    Since I want to create the page in a specific folder in the page library, I have to go for the last option.
    I have a function call chain that look as follows:
    getLanguageID(webUrl, languageID)
    .then(function(resolveVal) {
    language = resolveVal;
    return checkPageExist();
    .then(getEditorialNewsFolderJSOM)
    .then(getAssociatedPageLayoutListItem)
    .then(addPublishingPage)
    The first two methods, 
    getEditorialNewsFolderJSOM
    getAssociatedPageLayoutListItem
    fetches the required data as SP.Folder- and SP.ListItem-objects.
    The problem occurs when
    addPublishingPage
    is called. This method, in turns calls this function. 
    var pageInfo = new SP.Publishing.PublishingPageInformation();
    pageInfo.set_name(publishPage.title);
    pageInfo.set_pageLayoutListItem(pageLayoutListItem);
    pageInfo.set_folder(editorialNewsFolder);
    pageCreationContext.newPage = pubWeb.addPublishingPage(pageInfo);
    clientContext.load(pageCreationContext.newPage);
    clientContext.executeQueryAsync(function() {
    publishPage.isPageCheckOut = true;
    resolve();
    }, function(error) {
    reject(precio.intranet.resource.errCreateContent_addPublishPage);
    The error happens when this function is called with the page information object.
    SP.Publishing.PublishingWeb.addPublishingPage(pageInformation)
    Error:
    Cannot read property '$2t_0' of undefined
    and it happens in SP.Runtime.js.
    I've tried this
    sample code from the MSDN-team, and added the pagelayout and folder properties, but it renders the same error.
    Creating a page directly in the page library with a blank SP.PublishingPageInformation object works perfectly fine!
    What could possibly be wrong? The error isn't something that I can debug myself since it happens in SP.Runtime.js, and the documentation for this is very sparse!
    Any help on how to resolve this issue would be helpful!

    Hi Vinay,
    This may be useful:
    https://blogs.oracle.com/jdevotnharvest/entry/remote_task_flow_vs_wsrp

  • Getting HTTP 403/500 errors when accessing SharePoint 2010 pages

    Hi,
    I'm getting intermittent HTTP 403/500 errors when accessing SharePoint Foundation 2010 pages.
    When it happens, any SharePoint pages I access I get a HTTP 403 error (example: /sites/test/default.aspx) . If I don't specify a page, I get a HTTP 500 error (example: /sites/test/). What's odd is that I have non-SharePoint .NET applications running on the
    same server under the "_layouts" directory and those still work just fine.
    After recycling the IIS application pool, it starts to work again, but sometime won't stay up very long.
    Does anyone encounter this problem before?
    TIA
    Also, I'm hoping to understand what the "Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo" method does to help me track down this issue. If you have any info on what the above method is doing, I really appreciated.
    EVENT LOG
    Nothing
    ULS LOG
    System.Runtime.InteropServices.COMException: Cannot complete this action.  Please try again.   
     at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts,
    Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent,
    Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags,
    Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder)  
     at Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts,
    Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent,
    Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags,
    Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder)

    These are the associated lines in the ULS.
    01/07/2014 02:59:24.33    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    Logging Correlation Data    xmnv    Medium    Name=Request (GET:https://XXXXXXXXXXXXXXXXXXXXX)  
     e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.48    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.48    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    Monitoring    b4ly    High    Leaving Monitored Scope (PostResolveRequestCacheHandler).
    Execution Time=6.79828022835305    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.48    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    Runtime    tkau    Unexpected    System.Runtime.InteropServices.COMException:
    Cannot complete this action.  Please try again.    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32
    iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid&
    pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl,
    Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies,
    Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder)     at Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet,
    String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage,
    String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders,
    String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32&
    pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder)    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.48    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.48    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.50    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.50    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.50    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.50    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.50    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.50    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.51    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.51    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    General    8kh7    High    Cannot complete this action.  Please try
    again.    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    01/07/2014 02:59:24.51    w3wp.exe (0x1988)    0x10A4    SharePoint Foundation    Monitoring    b4ly    Medium    Leaving Monitored Scope (Request (GET:https://XXXXXXXXXXXXXXXXXXXXX)).
    Execution Time=187.132582493026    e8e08e76-1b88-4913-bce6-b9300e7b63f6
    Thanks,

  • Is it possible to render pages for use within a Graphoc (OpenGL) environment to create 'textures' of any web page? Thanks.

    In my app - on Android (Java) and iPhone (Objective-C) - I have an OpenGL Graphics context where I'd like to display any web page on a 'sign' or 'virtual screen'.
    Are there libraries which I could plug in to to render pages as a texture for use with OpenGL 'objects'?
    Many Thanks

    WebGL should meet your needs https://developer.mozilla.org/en-US/docs/Web/WebGL

  • Query a Sharepoint 2010 List for an Item

    I realize that this seems like a simple request however, please allow me to explain further. I have our server that hosts sharepoint able to server up php pages(as I am uncomfortable with .NET). I figured this would open up a whole new world in the way of
    being able to program up simple apps that I could then interact with data stored in Sharepoint. What I am trying to do right now is just my own form of autocomplete.
    On my PHP form I have a place for a number. I would like to be able to query a list in Sharepoint for that number and loads its corresponding description into a field near where the user enters the number. I have some novice-intermediate experience at this
    point successfully manipulating forms in sharepoint and using jQuery that I am now trying to break out to my own PHP applications/forms. However it seems no matter how I try to query Sharepoint I get an error or my java script fails.
    I believe what I am looking for is a way to query a sharepoint list on sp.domain1.com from a php page hosted on myPC.domain1.com. Both the SP server and my pc are on same domain same subnet.
    Thank you in advance for all the help!
    <html>
    <script src="http://sharepoint.domain1.com/jQuery/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="http://sharepoint.domain1.com/jQuery/jquery.SPServices-2014.02.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    //**********This code returned an error in Status*********
    $(document).ready(function() {
    alert("Form Loaded");
    var mySPurl = "http://sharepoint.domain1.com:80/";
    var tmp = "100000218";
    $.support.cors = true;
    $().SPServices({
    operation: "GetListItems",
    crossDomain: true,
    async: false,
    listName: "Materials",
    webURL: mySPurl,
    CAMLViewFields:"<ViewFields><FieldRef Name='Title' /></ViewFields>",
    completefunc: function(xData, Status){
    alert(Status);
    </script>
    <body>
    <ul id="tasksUL"/>
    <?php
    echo 'Hello World!'
    ?>
    </body>
    </html>
    //************This code wont make it past <SP.ClientContext.get_current();>
    function getSAPInfo(MatNumField) {
    alert('Getting SAP Info...');
    var clientContext = new SP.ClientContext.get_current();
    alert("Context Retrieved.");
    var oList = clientContext.get_web().get_lists().getByTitle('Materials');
    var tmp = getField('input', Num).value;
    //var camlQuery = new SP.CamlQuery.createAllItemsQuery();
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Title" /><Value Type="Text">'+tmp+'</Value></Eq></Where></Query></View>');
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(collListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded(sender, args) {
    var index = 0;
    var listItemEnumerator = collListItem.getEnumerator();
    var MatDescr;
    alert("Query Succeeded!");
    listItemEnumerator.moveNext();
    oListItem = listItemEnumerator.get_current();
    MatDescr = oListItem.get_item('Description');
    getField('input', 'Descr').value = MatDescr;
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    Again any assistance is most appreciated I have been trying to get this seemingly "simple" functinality working for 4 days straight now. {frustrated}
    Thanks Guru's!
     

    Hey Guys. Thanks for the timely responses. Unfortunately I had already visited most of the links provided, and was not able to get something working from the information provided at those links. However in the end I was able to get thybag's SharePoint API
    php library to work for my needs. Please see the attached code which is working for me.
    3rd party credit I must give to thybag@GitHub
    https://github.com/thybag/PHP-SharePoint-Lists-API
    Thank you everyone for your help. Your responses forced me to continue working on this today, and allowed me to continue to believe that there was a solution.
    <?php
    //These refer to the library files I downloaded from GitHub provided by thybag
    use Thybag\SharePointAPI;
    require_once('SharePointAPI.php');
    $sp = new SharePointAPI('username','password','http://sharepoint.domain1.com/_vti_bin/Lists.asmx?WSDL','NTLM');
    $listContent = $sp->read('Materials',NULL,array('Title'=>'317666879'));
    $tmp = $listContent[0]["description"];
    echo $tmp;
    echo "<br/><br/>Finished SharePoint List Retrieval!";
    ?>

  • "This document could not be checked out." SharePoint 2010 checkout action using IE8

    I am setting up a two-server farm, and most everything works, except the checkout action for a document.  This problem occurs in both site collections, one of which requires checkout, and the other does not.
    Here are the options I've tried:
    Snow Leopard, Firefox 3.0.1 - works
    Snow Leopard, Safari - works
    Win 2003, IE 7 - works
    XP, Firefox - works
    XP, IE 8 - "This document could not be checked out.  You may not have permission to check out the document or it is already checked out or locked for editing by another user."
    In IE8, I am able to open a document as read only then use the button presented by Word to check out the document.  I cannot use that as a workaround, as not all users have a version of Office that will allow checkout in that way.
    Checkin works fine.  I need to resolve the checkout error.

    I was having the same problem mentioned here. I noted that this problem only appears when I use the FQDN in the URL ex 'http://hostname.domain.com/default.aspx'. If I access the Sharepoint site using the URL 'http://hostname/default.aspx', then
    I do not have any problems checking files in or out.
    I ran into this same error pattern when trying to do a document edit (library is set to force a check out), or do a direct check out via the ribbon menu or item context menu.  Oddly enough when we would use the 'Edit Properties' ribbon button (which forces
    a check out) we did not get an error and the document's status would change to 'checked out'.  Below are the two messages we would receive when trying to do a check out:
     IE error message - "This document could not be checked out. You may not have permission to check out this document or it is already checked out or locked by another user." - Click OK
     IE Error message - "The document could not be opened for editing. A Microsoft SharePoint Foundation compatible application could not be found to edit the document." - Click OK
    After trying several different suggestions I realized that I wasn't having the problem when I was accessing the site locally via FQDN but only when I was using the Public Site URL (via https).  Turns out we were getting the error because we did not have
    an AAM currectly setup.  Once I changed our AAM for the Internet zone with the Public URL value instead of the FQDN the error went away.
    Hope this helps anyone else trying to track this down.  Oh and this was SP2010 w/SP1 (Patch version 14.0.6106.5001) on Win2008 R2 with clients running both Win7 and WinXP using IE8.

  • Sharepoint 2010 page viewer webpart

    
    I am using Page viewer webpart to link asp.net site.
    If I enable or disable IE protected mode for Intranet and trusted sites then it is working fine.
    but if we disable one of the protected mode then javascript  doesn't work properly
    Is there any solution ?

    Protected Mode Windows Internet Explorer restricts websites from writing to the registry and file systems on the local
    computer
    what kind of Javascript you are running on your page, check error logged by IE protected mode "Explorer
    logs events when write access has been denied"
    See this URL for detail
    http://msdn.microsoft.com/en-us/library/dd565659(v=vs.85).aspx
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

Maybe you are looking for

  • Issue in adobe forms scripting.

    Hi Guys, I'm trying to create here an Interactive form embedded into a Wed Dynpro Java application. On the Interactive form i simply have a Text Field and two buttons. On the click of one button, the Text Field should get Invisible, and on the click

  • Why Doesn't Acrobat X Installer Uninstall Reader X?

    Good morning, We have a site license for Acrobat X.  We want to deploy to our end users but many of them are already running Reader X.  I have used Adobe Customization Wizard X to create a mst file that says uninstall older versions of Adobe Reader. 

  • My ipod camera screen wont open

    when i click on camera it opens but stays on that page with the camera closed. what should i do???????

  • InDesign CS4 crashing when applying object styles

    When i try to use IObjectStyleSuite->ApplyObjectStyle with the name of an object style that is inside a group, indesign Crashed. I've tried using the full name of the style path -> group:stylename but it doesn't work. Anyone faced this problem? Thank

  • Adobe 5 overiding  adobe x can't print shipping ** windows 7

    how to I get adobe 5 deleted or disabled