Quantcast
Channel: SharePoint 2013 - Development and Programming Forum
Viewing all 1404 articles
Browse latest View live

Multiple content queries breaking page dom order

$
0
0

I have been working on a sharepoint intranet that consists of various document libraries for specific departments. Each department has it's own Document page, driven by 5+ content queries (pulling documents based on Department Tag and Taxonomy Tag, eg 'Policies and Procedures' or 'Forms'.

I ran into a very strange issue when several of these content queries returned no results. If the content queries return results, everything is fine. However, when no results are returned, unexplainable things begin to happen.

A couple of sharepoints containers (s4-workspace, s4-bodycontainer, etc..) and several containers from the page layout were duplicated outside of the <body> tags. On top of this, the footer (from the master page layout) is no longer in proper dom order. Rather than being after 's4-container', it is buried deep within a webpart zone in the page layout.

I managed to prevent the duplication of containers by adding a container around the contents of the page layout.

However, the footer still remains buried in the webpart mentioned above. I wrote javascript to check if the footer is in the right place, and append it to the right spot if not.

I cannot piece together what is causing this, besides possibly a bug in Sharepoint 2k13. I've commented out all Javascript/CSS and verified the integrity of my dom structure. All seems to be in order.

A very strange problem... If anyone has had any similar problems, or any insight into the problem, it would be much appreciated!


Getting the following error on provider hosted app: Sorry, only tenant administrators can add or give access to this app

$
0
0

Hi,

I have created a provider hosted app that needs to be able to read and update a Sharepoint MySite. The app works fine in development but when I try and deploy it to my Sharepoint site with the following permissions in my AppManifest.xml :

Web -  Write
User Profiles - Write
Tenant - Write

I receive the following error message "Sorry, only tenant administrators can add or give access to this app.".

I am logged into the site as a Site Collection Administrator.

If I try and login as a service account then I do not get the message but once I click "Get it" then click "Trust it" I receive and error stating "Sorry, something went wrong" and the app does not get updated. Going through the ULS logs I can find an error that starts with the following "Application error when access /_layouts/15/storefront.aspx, Error=The System Account cannot perform this action."

Can anyone help me with this issue? I have tried Google but cannot find anyone with the same issue.

Regards
Tony

Tags and Document Library

$
0
0

Hello

I want to create tags for few documents in my document library. And then I want to show those tags on my Home page. So if someone click on one tag, it should show documents which has that specific tag.

How can I do this in Sharepoint?

Thanks

How to Add a Conditional Action to Copy List Item to another List?

$
0
0

Hi,

We have items that are entered into List A that need to be copied to List B upon approval.  I've setup a standard workflow to copy items from one list to another.  How do I ensure that only the newest (recently approved) items are copied?

SharePoint 2013 Workflow development with VS and App Management Shared Service Proxy

$
0
0

Hi,

I'm trying to develop a SharePoint 2013 workflow in Visual Studio (declarative WF). I've not configured app related settings in the farm as my client doesn't want to explore apps just right now. When I was trying to deploy my Visual Studio solution to SharePoint site, I'm getting the deployment error in VS:

   Error occurred in deployment step 'Activate Features': Microsoft.SharePoint.SPException: App Management Shared Service Proxy is not installed.
   at Microsoft.SharePoint.AppRegistration.AddOrUpdateAppNoPermissionCheck(SPAppPrincipalInfo appInfo)
   at Microsoft.SharePoint.SPAppPrincipalManager.RegisterWithInternalDirectory(SPAppPrincipalIdentityProvider identityProvider, String nameIdentifier, String displayName, List`1 appEndpointAuthorities, List`1 redirectAddresses, Boolean delegateAppPermissions, Boolean isInternalDirectoryApp)
   at Microsoft.SharePoint.SPAppPrincipalManager.CreateAppPrincipal(SPExternalAppPrincipalCreationParameters creationParameters)
   at Microsoft.SharePoint.WorkflowServices.SPWebWorkflowSecurityContext.EnsureAppPrincipal(SPWeb elevatedWeb)
   at Microsoft.SharePoint.WorkflowServices.SPWebWorkflowSecurityContext.<SetupApplicationEcosystem>b__3()
   at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
   at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
   at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
   at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
   at Microsoft.SharePoint.WorkflowServices.SPWebWorkflowSecurityContext.SetupApplicationEcosystem()
   at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishDefinition(WorkflowDefinition workflowDefinition)
   at Microsoft.SharePoint.WorkflowServices.WorkflowDefinitionStorageEventReceiver.PublishDefinition(SPItemEventProperties properties)


Maybe or maybe not, configuring app management service will fix the problem. But my concern, is it required to configure SharePoint app settings in the farm to run SharePoint 2013 workflow?


Thanks,
Sohel Rana
http://ranaictiu-technicalblog.blogspot.com



"Installation Error" while running NAPA SharePoint 2013 online App

$
0
0

Hi,

I am trying to create a new SharePoint App using NAPA. However whenever i am running the project i am getting the "Installation Error" message.

Any help would be appreciated.

Thanks,

Nishant Rana


http://nishantrana.wordpress.com https://twitter.com/#!/nishantranacrm

SharePoint 2013 dynamic Navigation for Site

$
0
0

Hi All,

I am building a site in SP 2013 and have a question on the navigation. Initially we will have 4 items in the global navigation as: 
Page 1 Page 2 Page 3 Page 4 
Now, based on the user selection, I will modify the navigation and show it like this, suppose If a user goes into a section of Page 1: 
Page 1 Section 1 Page 2 Page 3 Page 4 

If a user goes into a section of Page 2: 
Page 1 Page 2 section 2 Page 3 Page 4 
How can I acheive something like this? Should I show them as a term and then show/hide them based on the selected section?

Thanks,

Deepak


Answer to your Question on technet.

Uploading bigger files using CSOM

$
0
0

Hi,

whenever i try to use this code

var myFile = new FileCreationInformation();
myFile.ContentStream = doc.ContentStream;
            using (ClientContext ctx = TokenHelper.GetClientContextWithAccessToken((string)request.Properties[hW], (string)request.Properties[aT]))
            {
                Folder destionationFolder = ctx.Web.GetFolderByServerRelativeUrl(destinationPath);
                ctx.Load(destionationFolder);
                ctx.ExecuteQuery();

                File uploadedFile = destionationFolder.Files.Add(myFile);
                ctx.Load(uploadedFile);
                ctx.ExecuteQuery();
            }

 I get the following error message:

"Specified argument was out of the range of valid values.\r\nParameter name: bytesToCopy"

Maybe there is another way to upload a file which is bigger than 2MB using the CSOM in combination with OAuth (SharePoint 2013/Office365?

best regards

Joerg



denied access client object model sharepoint online anonymous

$
0
0

Hi,

I try to add an item (SPlistItem) in javascript with client object model. The list is in Sharepoint online website office 365 in anonymous access.

Before, nearly 3 months ago it was ok, but now i have a acces denied.

Thanks a lot everybody!

Thierry.

modify sharepoint standard forms in Visual Studio 2012

$
0
0

Hello

When you create an App (sharepoint-hosted) and include in your project some Lists you should create the forms for CRUD operations but,

how can I start from the standard forms that I have to create my own forms, or create a form for edit and leave the standard for the other operations.

When you use the sharepoint designer can create a copy and modify, but I have not idea on how to do it with VS 2012 on a SharePoint App project.

Thanks

How to get the full url of a page where Minimal Download Strategy activated?

$
0
0

In a MDS enabled site, suppose I am accessing "/_layouts/15/ManageFeatures.aspx". So the full url will be like:- "http://siteurl/_layouts/15/start.aspx#/_layouts/15/ManageFeatures.aspx".

If we want to get the current page url, we use "window.location.href" in javascript. 

But in this case if we use "window.location.href", it will return only "http://siteurl/_layouts/15/start.aspx" instead of "http://siteurl/_layouts/15/start.aspx#/_layouts/15/ManageFeatures.aspx".

Can anyone explain how to get the whole url using javascript in this case?

Adding a comment and a like from a Windows 8 App

$
0
0

I am writing a Windows 8 App (Win RT Framework) and I need to do the following from the App through code

  • Add a comment to a blog post
  • Like or unlike a particular blog post

What are the options I have to get this done.  As far as I know REST does not support this.

SharePoint 2010 Survey and there Survey Report.

$
0
0

Hi Friends,

I am working on SharePoint Survey  List and after completion of survey I have to Generate reports

  1.        Same survey going to conduct two times   Current Survey and Future Survey
  2.      Presently we store Current and future survey in Excel Manually
  3.    After we created pivot table in Excel to present report as shown in Below Picture.

Now we are going to implement Reporting thing in SharePoint itself and present all this report in SharePoint Itself.

Can you guys please guide me how to implement it.

;

;

;

;

Thanks 

Digambar.

Sharepoint 2013 Start Date and Due Date switched in Task app

$
0
0

Hi,

I have set sharepoint 2013 and while using the Tasks app, Sharepoint is switching the Start Date and Due Date in the grid. When I go to edit they are switched. I do an update with the correct dates and again in the grid they are switched.

This is not affecting the Time Line though.

I'm wondering if someone else has had this issue, because i could not find anything on the web regarding this.

Darko

SharePoint 2013 app to app communication

$
0
0

Hi,

   I have an autohosted apps which bind the data from mvvm application. In a page, there are 2 apps. For ex, creation of customer in one app and customer details in another app. If i add customer in one app, the other app should refresh automatically and should list the newly created customer details. Can you please guide how to implement this functionality.


Balaji


DataTable to Email.

$
0
0

Hi,

I have a Timer job that will get some items from a SP list and also the timer job will send an email.  I am able to get the items and send email, now I just want to know how to store these SP items in a datatable and later add the data to the emails body.  email body is in HTML.  is ther a better way to do these.  Also, I need to filter the data further and send certian items to certian emails address.  this is how the code looks like:

 SPListItemCollection listItemCollection = list.GetItems(query);
            {
                foreach (SPListItem listItem in listItemCollection)
                {
                    if (list != null && listItem["Title"] != null)
                    {
                        listItem["TJ_Started"] = DateTime.Now.ToString();
                        listItem.Update();
                        list.Update();

                       DataTable dtResults = listItemCollection.GetDataTable();
                       
                    }

                }
      }

In the body of the email I need to filter down the data even more and send email to user with the data associated to them??? Can someone help.


Regards, Vikram

Check office web apps installed or not

$
0
0
How to check programmatically whether office web apps installed/configured on Sharepoint-2013 server or not?

SharePoint Designer 2013 no Design View

$
0
0

Dears friends:

I recently discovered that SharePoint Designer 2013 has not Design view. Only Code view.

From everything I've seen in SharePoint since 2001, honestly this is the most -mmm- how to say not to sound so ugly? ... "irrelevant" as I can remember ...

For starters, if you do not have Design view, then it should be called SharePoint"Designer" ... now be simply "SharePoint Encoder" or"SharePoint Programmer" ...

I checked the arguments responsible for this change in Microsoft, and anything that poses as relevant as it seems to remove this feature Designer ... in fact, I think they're just killing this application, because if I want to edit code, I served up Notepad.

Moreover, the true grace of SharePoint Designer is that-as the name indicated-enabled visually customize pages, without going into the code, which I and perhaps many more who are not programmers, was what we liked the program.

Finally, the manager argued that "now SharePoint sites can be designed in any design program" ... and that hurt me even more, because I spent years arguing with me saying "you can used Dreamweaver" or other editors, and always answered was precisely for that is "SharePoint Designer"...

Anyway, I think that Microsoft's many bright people, and most are very smart, but sometimes I think -excuse the frankness- there are some idiots.

Alexis López Tapia
CEO
Kyberne.com S.A.
www.kyberne.com
gerencia@kyberne.com


How to execute Powershell script in Sp-2013 from C# code?

$
0
0

I'm trying to execute powershell script from C# code. The code is following:-

       string scriptText = "Get-SPWOPIBinding";

        private string RunScript(string scriptText)
        {
           
            Runspace runspace = RunspaceFactory.CreateRunspace();
           
            runspace.Open();
            
            Pipeline pipeline = runspace.CreatePipeline();
            pipeline.Commands.AddScript(scriptText);
            
            pipeline.Commands.Add("Out-String");
            
            Collection<PSObject> results = pipeline.Invoke();
            
            runspace.Close();
            
            StringBuilder stringBuilder = new StringBuilder();
            foreach (PSObject obj in results)
            {
                stringBuilder.AppendLine(obj.ToString());
            }
            return stringBuilder.ToString();
        }

I am getting this error:- The term 'Get-SPWOPIBinding' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Can anyone help me to find a solution for this?

Not able to see Webparts on Team site page

$
0
0

Hello

When I edit team site page and Insert web part, I dont see webparts there. I have worked with sharepoint before and i never experienced this issue. I just installed new Sharepoint in development. And this is the issue. I have no idea what is the reason? I can see webparts in Sharepoint Designer. But not able to add them.

Please help.

Viewing all 1404 articles
Browse latest View live




Latest Images