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

Issue With Sharepoint list view webpart and filters

$
0
0

Hi,

I am facing issue with SharePoint list view web part and wanted to know is there any solution to fix this issue.

I have a custom list, in which i have some items created at root of the list and some items created inside folder.

When i navigate inside folder and apply filter on title column of the list, list view gets filtered for the selected filters.

Now, if i do a refresh on the page by doing a page post back(F5), Filters gets retained as expected, but now if i go to change the filters, list view webpart stops displaying items and if i do "Clear Filter" list view webpart starts showing root items instead of filtered items inside of the folder.

Let me know is there any solution/workaround to tackle this issue.


mallikarjun


Asphostportal IIS6 vs IIS7

$
0
0

I have two shared accounts at asphostportal. One uses IIS 6 and one uses IIS7. On both I have websites in Classic ASP.

On the IIS 6 account, when I make an error in code and upload it then try to access that page, I get an error message that looks like this:

Microsoft VBScript compilation error '800a0400'
Expected statement
/file.asp, line 2

It tells me the error code and gives a line number. I usually look at that line and figure out the problem.

With IIS 7 I upload the file and navigate to the page and I get this:

Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

That's it. No useful information. I have no way of debugging this page without setting up IIS and MS SQL in the exact same configuration as it is on asphostportal on a local computer (this is my work computer so that's not going to happen).

I talked with someone at asphostportal. He says they are still tweaking IIS 7 configurations and can't give me an answer to why it is behaving like this.

Is there anything I can do, some kind of file I can set up (like an ASP.NET web.config file) to get the same kind of error messages on my IIS 7 account as I have on my IIS 6 account?

Define 2-phase approval for my Enterprise wiki library

$
0
0

I am working on an enterprise wiki site collection inside SharePoint 2013. currently i set the following versioning settings:-

So currently I have 1-phase approval where end users can edit wiki pages and their status will be pending ,, then approver users can approve/reject wiki pages.

But now we need to add "Verify" step before approving a wiki page. so that the ideal wiki page life-cycle should be "Pending >> Verified >> Approve/Reject" instead of the current life-cycle which is "Pending >> Approve/Reject".

so can anyone advice how i can achieve this ?


Multi-tenant Office 365 authentication

$
0
0

I have an existing MVC web application that I will be including multi-tenant authentication.  I can't seem to locate a good walk-through sample of the steps necessary to add the multi-tenant authentication.  Please provide a link if you know of a good reference.

THX


David Downing... If this answers your question, please Mark as the Answer. If this post is helpful, please vote as helpful.

owaserver is not found when testing in sharepoint document portal

$
0
0

Hai All, 

Now I still testing for deploy owa in sharepoint 2013, but now I have a problem after configuration and testing in share point document portal when preview a .docx document at browser. 

I testing in browser for owa service : http://owaserver/hosting/discovery

result is

wopi-discovery>
<net-zone name="internal-http">
<app name="Excel" favIconUrl="http://owaserver/x/_layouts/images/FavIcon_Excel.ico" checkLicense="true">
<action name="view" ext="ods" default="true" urlsrc="http://owaserver/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="view" ext="xls" default="true" urlsrc="http://owaserver/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="view" ext="xlsb" default="true" urlsrc="http://owaserver/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="view" ext="xlsm" default="true" urlsrc="http://owaserver/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="view" ext="xlsx" default="true" urlsrc="http://owaserver/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="edit" ext="ods" requires="update" urlsrc="http://owaserver/x/_layouts/xlviewerinternal.aspx?edit=1&<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="edit" ext="xlsb" requires="update" urlsrc="http://owaserver/x/_layouts/xlviewerinternal.aspx?edit=1&<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="edit" ext="xlsm" requires="update" urlsrc="http://owaserver/x/_layouts/xlviewerinternal.aspx?edit=1&<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="edit" ext="xlsx" requires="update" urlsrc="http://owaserver/x/_layouts/xlviewerinternal.aspx?edit=1&<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="editnew" ext="xlsx" requires="update" urlsrc="http://owaserver/x/_layouts/xlviewerinternal.aspx?edit=1&<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="interactivepreview" ext="xlsb" default="true" urlsrc="http://owaserver/x/_layouts/xlpreview.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="interactivepreview" ext="xlsm" default="true" urlsrc="http://owaserver/x/_layouts/xlpreview.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="interactivepreview" ext="xlsx" default="true" urlsrc="http://owaserver/x/_layouts/xlpreview.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="mobileView" ext="xls" urlsrc="http://owaserver/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="mobileView" ext="xlsb" urlsrc="http://owaserver/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/>
<action name="mobileView" ext="xlsm" urlsrc="http://owaserver/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/>

<action name="mobileView" ext="xlsx" urlsrc="http://owaserver/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/> ......

it's normally,

But when I testing in document portal after deploy in sharepoint console powershell

alwasy show error like a bellow

GET http://owaserver/wv/ResReader.ashx?n=p1.img&WOPIsrc=http%3A%2F%2Fsharepoint…0000-000000000602&usid=19b0fc5d-5df6-4dff-aa4a-89dad74e2600&splashscreen=1 404 (Not Found)

and show messages in share portal

Sorry, Word Web App ran into a problem opening this document. To view this document please open it in Microsoft Word.

Please help, if any suggest solution

Thanks,

How to get Combinational Charts i.e, Line and Bar graph in SharePoint 2013 using Dashboard Designer.

$
0
0
Looking for a solution regarding the Combinational chart in SharePoint 2013 using Dashboard Designer. Is it possible to have  Combinational chart in the same, if yes please provide the solution. Moreover, I am also trying to drill down in the bar graph, but not getting how to do this. To be more specific, I am designing a bar graph where in its 1st level i am showing amount(y-axis) vs Monthyear(x-axis), and after drilling down to 2nd level i want to show amount(y-axis) vs Organization(x-axis), furthermore drilling down to 3rd level i want to show amount(y-axis) vs Costing Type(x-axis).

Please provide the solution for both the queries ASAP. Is there any other way to get this things done in Sharepoint 2013 other than dashboard designer. 



SharePoint Designer 2013 workflow - How to copy file to a folder in different document library and preserve version history of target file?

$
0
0

I am using the SharePoint Workflow 2013 and SharePoint Designer 2013, I wonder if there is any way to copy file to  a folder in different document library and preserve the version history of target file?

eg. 

copy     MyDocLib_A\MyFolder\MyFile.docx   to   MyDocLib_B\MyFolder\MyFile.docx


Sharepoint Designer 2013 64bit Crashes

$
0
0

Hi

I'm Vishnu, from TechniaLabs, Dubai. I have been using Sharepoint Designer 2013 (64 bit) on a Windows 8.1 (64 bit)  for the past 4 months and it worked/helped me very well. Unfortunately for the past 3 days, Sharepoint Designer 2013 keeps on crashing every now and then. It will close and reopens automatically with an error message popup "Sharepoint Designer 2013 has encoundered an error and needs to close...". As per the suggestions from some Microsoft TechExperts at dubai, I tried installing ServicePack 1 for Sharepoint and tried re-installing the complete package. Still the problem exists.

Scenario:

Sharepoint Designer 2013 x64 and Servicepack 1 for Sharepoint Designer 2013 x64 installed on Windows 8.1 x64.

Office 2013 installed from a Click to run installer (Office 365 E3 plan)

Sharepoint Designer 2013 keeps on crashing and re-opens while working on a Page Layout.

Please find a solution for me.

Thanks


Provider Hosted App Part - Getting QueryString Value

$
0
0

I have a SharePoint page where we pass the query string value and we need to get that query string value in an app part (iframe). Could you please let me know how to do that?

Regards,

Arul

People Picker - Provider Hosted Apps

$
0
0

Hi ,

I am using the people picker control "https://github.com/OfficeDev/PnP/tree/master/Components/Core.PeoplePicker" for my provider hosted App. Its working fine in my development environment. However when I moved to QA, Its not working. If any additional settings required. Can someone shed some light on this?

Thanks,

Arul

Search Display Templates and User Roles

$
0
0

I have a request to show a custom link on the Search Results page to expand search to include documents (rather than the default expand link). That part was easy and the link to the expanded search results shows fine.

However now I have been asked to only show the link to users with a certain role - and not to the users who have Read only access to the site. I have no idea where to begin since I can't use SPSecurityTrimmedControl on a Web Part. Open to all suggestions and Ideas :)


custom template based site generation issues

$
0
0

Hello there,

I have 2 issues with creating sites based on my custom site template where I have no idea how to find the reason. These are excerpts from ULS log for the two cases (actually 2 different versions of my website template)

First one happens during activation of ListInstances feature:

Message : Feature Activation: Threw an exception, attempting to roll back.  Feature
          'ProjectSiteTemplate_03_003ListInstances' (ID: 'b3a2ba05-b95d-4b4c-82f5-dae67b2daf23').  Exception:
          System.InvalidOperationException: Operation is not valid due to the current state of the object.     at
          Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionListInstances(SPFeaturePropertyCollection
          props, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce)     at
          Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props,
          SPWebApplication webapp, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce)     at
          Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent,...

Message : Leaving Monitored Scope (Feature Activation: Activating Feature 'ProjectSiteTemplate_03_003ListInstances' (ID:
          'b3a2ba05-b95d-4b4c-82f5-dae67b2daf23') at URL http://myserver/myapp/myprojects/newsite.). Execution
          Time=4732.59471525012

Message : Exception in EnsureFeaturesActivatedAtWeb: System.InvalidOperationException: Operation is not valid due to the current
          state of the object.     at
          Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionListInstances(SPFeaturePropertyCollection
          props, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce)     at
          Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props,
          SPWebApplication webapp, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce)     at
          Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props,
          SPFeatureActivateFlags activateFlags, Boolean fForce)     at Microsoft.SharePoint.SPFeatureCollection.Ad...

Message : Failed to activate site-scoped features for template 'STS#0' in site
          'http://myserver/myapp/myprojects/newsite'.

Message : Failed to activate web features when provisioning site at url "http://myserver/myapp/myprojects/newsite"
          with site definition "STS#0".


Second one occurs right after start of assigning the template:

Message : Applying web template '{F2545525-73DC-47F3-B9F0-7F54FF4183F9}#ProjectSiteTemplate_03_100' on web url
          'http://myserver/myapp/myprojects/newsite'

Message : Actual web template to apply to Url 'http://myserver/myapp/myprojects/newsite' is 'STS#0'

Message : SPException thrown: Message: The scope of the referenced feature does not match the scope where it appears in the web
          template definition.. Stack:    at Microsoft.SharePoint.Utilities.SPUtility.ThrowSPExceptionWithTraceTag(UInt32 tagId,
          ULSCat traceCategory, String resourceId, Object[] resourceArgs)     at
          Microsoft.SharePoint.SPWebTemplateElement.VerifyFeatures(XmlNodeList xmlNodeFeatures, SPWeb applyTemplateToThisWeb,
          SPFeatureScope featureScope, SPFeatureDependencyErrorBehavior featureDependencyErrorBehavior, List`1&
          featureDependencyErrors)     at Microsoft.SharePoint.SPWebTemplateElement.VerifyFeaturesInWebTemplate(SPWeb
          applyTemplateToThisWeb, SPFeatureDependencyErrorBehavior featureDependencyErrorBehavior, ICollection`1&
          featureDependencyErrors)     at Microsoft.SharePoint.SPWeb.Loa...

Any ideas? Pls let me know if I should provide furter details! Thanks for reading!

SharePoint 2013 with ASP.NET Chart Control Print Preview(chart image) not loading in Chrome

$
0
0

The chart image loads in chrome browser, but when i invoke the print function with below JavaScript called from ASP.NET chart page

var printWindow = window.open('', 'Chart', 'height=400,width=400');
printWindow.document.write('<html><body>');
printWindow.document.write('HTML TAG OF GENERATED IMAGE');
printWindow.document.write('</body></html>');
printWindow.document.close();
printWindow.print();

The image shows up in IE, but not in chrome(Version 41.0.2272.101). 


Thanks, B.J.Prasanna.

Alignment of text using css on my custom master page

$
0
0

I am having the below image which has some alignment issue , which I want to resolve.Currently the date and time touches the golden bar which is beneath the date&time.

I would like to see the date&time would be little bit above the golden bar. Is there any way I can achieve this.

jQuery help

$
0
0
Hi All,

Please help me on the below tasks using jQuery.

1) How to disable the future dates for the datepicker?
2) How to allow the time for the datepicker?
3) Textbox with slider : By default the value should be zero in the textbox. Textbox should allow only numeric values. On typing the value in the textbox, the slider should be displayed with the respective value & vice versa (on dragging and selecting the value in the slider, the respective value should be shown in the textbox).

Let me know if you have any queries.

Thanks In Advance,
Kumar.

Mysite Instantiation - User cannot be found

$
0
0

Hello,

I'm experiencing an odd error that I can't seem to find much information on when creating mysites.  I have some unique requirements that have led me to implement a custom claims provider.  Due to multiple instances of AD running, concurrency would be an issue if we did an AD Import, so they want to create user profiles directly, from the claims passed from ADFS at the time of login.  All user data is stored in a sql db, and ADFS sends that data as claims via custom claims rules.  All of the components for a claims based authentication provider has been set up and is handling the authentication successfully(SPTrustedRootAuthority, TokenIssuer, STS, RPT, etc.).  In the claim provider, I am checking for the user with the EnsureUser(encodedLoginName) method, and then provisioning the user profile properties from the claims passed in.  This seems to all be working without problem. 

The issue I'm running into is that once the mysite instantiation is kicked off (either through self-service creation or CreatePersonalSite() method), I get the error "User cannot be found".  Does anyone know what could be causing this? What criteria are the mysite instantiation's internal methods using to find the user?  I'm hitting brick walls and could use some insight...

Here's a sample of the code I'm using for user profile/mysite provisioning"

SPSecurity.RunWithElevatedPrivileges(delegate()
            {
                using (SPSite site = new SPSite("https://fqdn.siteurl.com"))
                {
                    using (SPWeb web = site.OpenWeb())
                    {
                        SPServiceContext context = SPServiceContext.GetContext(site);

                        // Actual User Calls
                        string userLoginEncoded = SPUtility.FormatAccountName("i", entity.Value);
                        string userLogin = SPClaimProviderManager.Local.DecodeClaim(userLoginEncoded).Value;

                        // stub data
                        string accountName = "i:05.t|dev-authprovider|userid@site.url";
                        string email = "userid@site.url";
                        string userID = "0000001";

                        SPUser user = web.EnsureUser(accountName);

                        UserProfile userProfile = null;
                        site.AllowUnsafeUpdates = true;
                        site.OpenWeb().AllowUnsafeUpdates = true;

                        if (HttpContext.Current != null)
                        {
                            if (HttpContext.Current.Items["HttpHandlerSPWeb"] == null)
                                HttpContext.Current.Items["HttpHandlerSPWeb"] = site.OpenWeb();
                            if (HttpContext.Current.Items["Microsoft.Office.ServerContext"] == null)
                                HttpContext.Current.Items["Microsoft.Office.ServerContext"] = context;
                        }

                        UserProfileManager profileManager = new UserProfileManager(context);

                        if (profileManager.UserExists(accountName))
                        {
                            userProfile = profileManager.GetUserProfile(accountName);
                            MyIncomingClaims incomingClaims = GetIncomingClaims();
                            try
                            {
                                // Assign User Profile Properties from claims

                                foreach (MyIncomingClaim c in incomingClaims)
                                {
                                    switch (c.claimType)
                                    {
                                        case "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress":
                                            userProfile[PropertyConstants.WorkEmail].Value = c.claimValue;
                                            break;
                                        case "http://schemas.microsoft.com/ws/2008/06/identity/claims/role":
                                            userProfile[PropertyConstants.JobTitle].Value = c.claimValue;
                                            break;
                                        case "http://schemas.siteurl.com/ws/2012/08/identity/claims/user/userid":
                                            userProfile[PropertyConstants.PreferredName].Value = c.claimValue;
                                            break;
                                        case "http://schemas.siteurl.com/ws/2012/08/identity/claims/student/firstname":
                                            userProfile[PropertyConstants.FirstName].Value = c.claimValue;
                                            break;
                                        case "http://schemas.siteurl.com/ws/2012/08/identity/claims/student/lastname":
                                            userProfile[PropertyConstants.LastName].Value = c.claimValue;
                                            break;
                                        case "http://schemas.siteurl.com/ws/2012/08/identity/claims/student/phone":
                                            userProfile[PropertyConstants.WorkPhone].Value = c.claimValue;
                                            break;
                                        case "http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationinstant":
                                            userProfile[PropertyConstants.Department].Value = c.claimValue;
                                            break;

                                        /* Remaining Claims being passed
                                           ...
                                        */
                                    }

                                }

                                // Commit User Profile Updates
                                userProfile.Commit();
                            }
                            catch
                            {
                                throw;
                            }
                            finally
                            {
                                // Check for personal site. If null, create mysite
                                if (userProfile.PersonalSite == null)
                                {
                                    // Create Personal Site
                                    userProfile.CreatePersonalSite();
                                }

                                site.AllowUnsafeUpdates = false;
                                site.OpenWeb().AllowUnsafeUpdates = false;
                                site.Dispose();
                            }
                        }
                    }
                }
            });

Thanks,

Ernie

On click of the 'Click here to add new content' link (Publishing HTML site column), the textboxes are not rendered in the Spartan browser.

$
0
0

On click of the 'Click here to add new content' link (Publishing HTML site column), the textboxes are not rendered in the Spartan browser.

Title attribute changed to add suffix "Required Field" after content database restore.

$
0
0
I restored a site to our staging farm by mounting the content database then deploying all the farm solutions. However, after restore required field title attributes seems to have changed to add suffixed " Required Field". Due to which all the custom jQuery scripts are failing. Content Type of the list is from a sandbox solution. Any ideas what needs to be done to remove this " Required Field" suffix from title attribute?

Workflow 2013 will not move on to the next step

$
0
0

Good morning, afternoon, evening!

I'm trying to do a simple 2013 workflow for a SharePoint list which is split up into three stages: Email/Approve, Wait, and OpenTicket.  After I created the workflow, tested it, it ran though all the steps correctly and ended. Though, each subsequent test will do everything in the first stage, and stop.  It won't proceed on to the second or third steps.

The workflow is supposed to set the status to "Pending" and send a task, via email, to the manager with a link to the item.  This all works as intended.  The problem is it's supposed to immediately go to the second stage, where it waits for the status to change.  Then on to emailing our Internal IT department.

I've searched and tried almost all the suggestions, even creating a new list with the same workflow, and it stops when it finishes the first step, without proceeding to the next.  So, this leads me to believe either I'm doing something wrong or there's something that needs to be enabled.

I have screenshots if needed.

Thank you in advance for any help!
Joe

Web Part Custom Property for array or List

$
0
0

I need to use the array or List<string> for the web part property type. 

[WebBrowsable(true),
WebDisplayName("OtherURLs"),
WebDescription("Other Image URL and description"),
Category("Custom Settings"),
Personalizable(PersonalizationScope.Shared)]
public string[] OtherURLs { get; set; }

According to the article (Link: https://msdn.microsoft.com/en-us/library/dd584174(v=office.11).aspx ), there are only five supported web part property types -- bool, DateTime, enum, int, string.

Is there a workaround to create a custom web part property for array or List<string>?


Viewing all 25064 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>