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

Sharepoint 2013 Designer: Unable to publish workflow SecurityAccessDeniedException raised

$
0
0

I have setup and configured the workflow manager and registered the workflow service with power shell. I can create and start a workflow by using the SharePoint UI. This workflow completes successfully and updates the workflow status.

However,  if I attempt to publish a similar SP2013 workflow (list, reusable, or site workflow all generate the following error) to our SP2013 site, it generates the following error. I am a site collection administrator, and a farm administrator. I have confirmed that my user account has full control over the list I am attempting to publish the workflow to, in addition to the workflow tasks and workflow status lists. I have also generated the same error message from a different user account that has site collection admin and farm admin access. This appears to be a server configuration issue.  We have a looming deadline, and I have other objectives, so I am posting the message here.

If I am not mistaken, the AccessIsDenied error thrown is a WCF error. I assume that this issue is either the user account does not have access to invoke the Workflow Manager WCF service, or the user does not have permissions to access the Workflow Manager DB.

Any help that can be provided in narrowing down the cause and resolving this issue is appreciated.


Greg Pierson


stsadm -o deleteweb access denied

$
0
0

I am trying to remove a subsite with Sharepoint Management shell 2013

stsadm -o deleteweb -url http://mysharepoint/testsubsite

and I get Access denied.

Note: if I point  to http://mysharepoint/testsubsite with the browser I get "page not found".

Have you got any suggestions?

Oracle DB as external content type in SharePoint 2013

$
0
0

Hi all,

I'm trying to create and ECT from an Oracle Database in SP 2013. Is it possible to create it with Sharepoint Designer 2013? I had a look at this article but it creates a DataSource. I am no expert in Sharepoint, but I think that I cannot create a list dynamically updated with Datasources, right? Is it possible through Designer or should I use Visual Studio?

Thanks in advance for your time


Event Receiver won't update

$
0
0

Hello,

I currently have a custom list with an ItemAdded event receiver.
I have updated the event receiver a few times and redeployed it to the list. (using update-spsolution, and even remove and add solution)

The problem that i currently have is when i manually add an item to the list the lastest version of the event receiver is run.
Yet when an item is created with a workflow (on a different list) an older version (which contains errors) is run.

recreating the workflow did not work for me.

Does anyone ever encountered this error, or has any idea where the old code might be stuck at?

Kind regards,

Dominique

CSOM (Javascript) Inner join CAML query on 'User Information List'

$
0
0

I need to pull site user details like (email, display name, phone) from 'User information list' using a 'inner join' on a different list 'SiteOwners' where 'Contact' is a person or group field.

The result object is not returning the details from 'User Information List' though it returns details from 'SiteOwners' list

<script src="/_layouts/15/SP.runtime.js" type="text/javascript"></script><script src="/_layouts/15/SP.js" type="text/javascript"></script><script type='text/javascript'>
  'use strict';
  //$(document).ready(function() {

  function abc() {
  var context = SP.ClientContext.get_current();
  var web =context.get_web();
  var stownrlist = web.get_lists().getByTitle('SiteOwners');
  var camlqry = new SP.CamlQuery();

  camlqry.set_viewXml = "<View>" +"<Query></Query>" +"<ViewFields>" +"<FieldRef Name='Title'/>" +"<FieldRef Name='Contact'/>" +"<FieldRef Name='UserName'/>" +"<FieldRef Name='UserEMail'/>" +"<FieldRef Name='UserMobilePhone'/>" +"</ViewFields>" +"<ProjectedFields>" +"<Field Name='UserName' Type='Lookup' List='User Information List' ShowField='Name' />" +"<Field Name='UserEMail' Type='Lookup' List='User Information List' ShowField='EMail' />" +"<Field Name='UserMobilePhone' Type='Lookup' List='User Information List' ShowField='MobilePhone' />" +"</ProjectedFields>" +"<Joins>" +"<Join Type='INNER' ListAlias='User Information List'>" +"<Eq>" +"<FieldRef Name='Contact' RefType='Id'/>" +"<FieldRef List='User Information List' Name='ID'/>" +"</Eq>" +"</Join>" +"</Joins>" +"</View>";
  debugger;

  var stownritems = stownrlist.getItems(camlqry);
  context.load(stownritems);//, 'Include(Title,Contact,UserName,UserEMail,UserMobilePhone)'); 

  context.executeQueryAsync(
  Function.createDelegate(this, function () {
  debugger;
  var stownenm = stownritems.getEnumerator();
  while (stownenm.moveNext()) {
  var userid, loginname,email,name,mobilephone;
  if (stownenm.get_current().get_item('Contact') != null) {
  userid = stownenm.get_current().get_item('Contact').get_lookupId();
  loginname = stownenm.get_current().get_item('Contact').get_lookupValue();
  email = stownenm.get_current().get_item('ows_UserEMail');
  name = stownenm.get_current().get_item('UserName');
  mobilephone = stownenm.get_current().get_item('UserMobilePhone');
  }
  }

  }), function() {alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());});

  }

  //);


</script>
Any suggestions / help please.


Sai

How exclude subsites in global navigation from c# code

$
0
0

 Hi,

I need show Global navigation items in custom web part, below code is returning global navigations with sub sites. 

how to exclude sub sites and return only global navigation items links?

using (SPSite spsite = new SPSite(SPContext.Current.Web.Url))
                {
                    using (SPWeb web = spsite.OpenWeb())
                    {                                           
                        PublishingWeb pubWeb = PublishingWeb.GetPublishingWeb(web);                                       
                        SPNavigationNodeCollection colletion = pubWeb .Navigation.TopNavigationBar;
                        foreach (SPNavigationNode navigationNode in colletion)
                        {

//Getting all global navigation nodes including sub sites

}

}

}

Thanks.



Configure People picker - peoplepicker-serviceaccountdirectorypaths

$
0
0

Hello,

  •  I have used "setsiteuseraccountdirectorypath" by stsadm  to configure people picker .
  • There is another command "peoplepicker-serviceaccountdirectorypaths" . I dont know what is for ? and when I use it ?

       Any help plealse ?


ASk

How to display calendar in web part with selected month(jan,feb,march) in sharepoint 2013

$
0
0

Hi All,

How to display selected Month like jan,feb,march in single page with different webparts.

I created 3 webparts and selected(jan,feb,march) but when page refreshes all webparts are displaying current month(December).

Here i attached the screen shot, where December should be shown as (January and February)

Kindly check and guide me in right track.

Thanks

Prabhat.


Madhu Prabhat


Crawel Account

$
0
0

Hello,

  I have read about managed account . Then I read there is an account called "Crawel Account" .

  I need to know where I set this account .  Do I set it in the application pool of search service application or what ?

  is there any articles describe this account and how can I create it ?


ASk

SharePoint 2013 - Applying a spcolor file on MySite with Feature Stapling?

$
0
0
Hi all!

Have read that the only good way to apply some branding on MySite Creation is to do this by feature stapling.
Thus I don't want to get my hands to dirty,  I just want to customize the colors and perhaps change the default font on MySite.

So my question is, is it possible to apply only a spcolor file as well as a font file to the feature to be activated on the users MySites?

Or must I copy and make a custom "core15.css" file to achieve this...?

It's hard to understand why MS haven't added a simpler way to change the default looks for the MySite site-Collections =/

Best Regards.
Philip 

SharePoint 2013 Workflow deploying to Staging :Workflow XAML failed validation due to the following errors: Cannot create unknown type '{wf://workflow.windows.net/$Activities}GetCurrentItemId'

$
0
0

Hi,

We have created SharePpoint 2013 Visual studio workflow in development its working fine. When i moved to staging server. Its not working. Its throwing below error. Help on this appreciated.

Application error when access /_layouts/15/ManageFeatures.aspx, Error=Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Cannot create unknown type '{wf://workflow.windows.net/$Activities}GetCurrentItemId'. HTTP headers received from the server - ActivityId: c34f1447-8299-417e-9fed-3db069575cd7. NodeId: HFSP2013STG01. Scope: /SharePoint/default/fff19e1b-4a2b-42e5-a144-5341d052e82c/5c6c812e-59c7-439d-9d17-3fc9018dbfe1. Client ActivityId : f6206c9c-6e56-1004-2903-ca5b22924982. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.    

The above error occured while activating the workflow feature.

SPGridview refresh behaviour

$
0
0

In SharePoint Page , 2 webparts are added

First one is custom webpart  - SPGriView  added to updatepanel

Second one custom webpart with button which refresh  SPGridview in first webpart

This button  also changes the values of one of the column in SPgridview

for the first time  when button is clicked it shows  that SPgridview will not be changed but for second time  will show the changed value which supposed to be visible on first click and so on

any ideas , why SPgridview doesnt show updated value for first click and for further clicks it shows the  older values?


SP Page: http://www.facebook.com/SharePointQ SP Blog: http://swatipoint.blogspot.com

How To Get Users Permission From SharePoint list\Libraries from complete site

$
0
0

Hi Guys,

I want to make a report to list out all the objects from sharepoint site where NT AUTHORITY\authenticated users group/user has permission. Needs to check permission not only from Site needs to check all the objects like list/library and get the data prgrammitically from C#.

Please suggest.

Thanks,

Fahad KHan

When to use the NEW keyword

$
0
0

Hi all,

Can someone please explain to me in layman's terms (as easy possible) when I should use the New keyword when programming. I am very new to SharePoint development and keep making the mistake of putting the New keyword in when it is not needed and leaving it out when it is needed. I cannot find an explanation on when to use it on the internet.

Lines of code without New key word in:
   var
context = SP.ClientContext.get_current();
   var response = SP.WebProxy.invoke(context, request);

Lines of code with New key word in:

  var query =newCamlQuery();

  var camlQuery =new SP.CamlQuery();

  var data =newDictionaryEntry(item["ID"], item["Title"]);

   var lci =new SP.ListCreationInformation();

I’m sorry if I am asking an easy question, but this will make my programming life much easier if I can get my head around when and when not to use the New keyword.

I hope you can help.
CEStar






Updating list items in a document library using SharePoint 2013 REST Api + C#

$
0
0

Hello,

is it possible to update/modify a list item in a document library via REST Api (c#)?

Unfortunately, I could not find any code samples.

Any kind of help will be appreciated.

Thanks,

Dennis


SharePoint and transactios

$
0
0
Has SharePoint support for transactionality?

SharePoint 2013: Change a user's "Display language preferences" through code

$
0
0

There is requirement that we have which needs us to allow the user to change the display language for the site from one of  our application pages . In SP 2013, we had mimicked the display language change drop down successfully. But in SP 2013, since they have moved this setting to the user's regional settings, we need the user to add, change order of the display languages from our application pages. The server side object model does give me SPUser.UpdateUserSettings method, but I cannot change the "PreferredDisplayLanguages" collection since SPLanguageSettings has its members as read only.

I used reflector to see the code used by SharePoint's "regionalsetng.aspx" page, but it uses internal methods to change the properties.

Is there no way I can change SPUser's PreferredDisplayLanguages collection?

Can't I use the cookie based mechanism that I used in SP 2010?

Thanks in advance for any help.

Sharepoint 2013 - Coloring The Web Part Title Background and changing Font Color

$
0
0

I am not a very experienced coder. I am attempting to change the Announcement web part title to have a background color of black and also change the font color.

I have turned on Content Editor and added the code:

<style>
TR
.ms-WPHeader{BACKGROUND-COLOR:#000000}
</style>

If I could get any help with this that would great. Thanks.

Client Side Rendering in List Display Form

$
0
0

I would like to use CSR to customise a list display form.

I can't seem to find any examples where people have done anything more than alter how a particular field is rendered in a display/new/edit form.  I would like to do things like alter the header, footer, the order in which the columns are displayed and the layout of the form overall itself.

Playing around I notice that when I change the "CSR Render Mode" for a display form web part to "Custom (CSRCustomLayout)" the Header and Footer events fire, but then the form seems to output the labels (with no data next to them) and then then dumps all the data after the labels.

Also the pre and post render methods also do not fire unless it is in Custom layout mode.  Putting it back to Standard only runs the field level override.

What is the correct way to go abou this?  What are those CSR Render Modes for?

Thanks,
Richard

Can somebody please confirm this bug - JSLink client-side rendering in list view fails when navigating between views

$
0
0

Am I the only one to see this error or am I the only one to experience it?

I'm really struggling hard with it.

 

I created a custom field (or alternatively a simple site column) and set JSLink, to have custom client-side Rendering for that field in Display form, edit form and most importantly list-view.

All works as intended - BUT: once I click on another view (or also in the Navigation on the left side back and forth), the List View Web Part does no longer care about the custom Rendering and falls back to base-type Rendering, thus loosing the customization. This is critical, as this should NOT happen. Instead of running the JavaScript that renders the custom field, all we get is the real Content in the field.

This all happens when parts of the page are being re-rendered (apparently SharePoint doesn't refresh the whole page but only parts).

I can't find anything in the web, it seems I am the only one with that Problem (latest VMs in WindowsAzure), or I'm the only one doing more than hitting F5, e.g. switching the view or navigating around.

 

Can someone please check? You can download a sample, e.g. the Ingredients field from Lester Sconyer Jr's blog (I would paste a link, or a Picture, if I could, but I'm not allowed to do so here, for obscure reasons, anyway, you can find that Little Project and quickly deploy it, should show a nice custom-rendered field - once - clicking again on the view in the bar above the listview or navigating to another list and back should produce partial-re-Rendering with the effect that the custom Rendering disappears and the raw-contents of the field are displayed). 

Thanks a lot.

 

Viewing all 7589 articles
Browse latest View live


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