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

Securing Individual _layouts pages

$
0
0

I have looked across the forum but have not seemed to find what I was looking for - need to secure individual pages within the _layouts directory to Site Admins only.

I am looking to secure a few individual _layouts pages (in particular listedit.aspx, people.aspx). I have an internal user group that has Manage List permissions on a list so that they can access and review all files because they need to override list permissions, which is locked down to view only user-created items for all other users. This is ok and this user is internal, but I do not want them to stumble across the listedit.aspx page. I was looking to possibly just add an SPSecurityTrimmedControl with ManageWeb permissions on the whole page, but that does not seem to work as there is a lot of javascript that occurs on these particular pages that just overwrites this. Any suggestions on a quick couple lines of code I could add to these pages that would give any user except site admins an access denied page? Thanks!


-Jason





Content Search web part Customization with Tabs

$
0
0

Hi,

I'm customizing a Content Search web part. I need to create dynamic tabs on it based on the values of a retrieved specific column. Do you have idea on how to retrieve all the values all at once, so that I can format the tabs itself? Because right now, I can only get one list item at a time by using ctx.CurrentItem. Thanks. :)

Regards,

Napster

SharePoint 2013 Excel Services query custom lists

$
0
0

Hi,

Using Excel service in Sharepoint 2013 is it possible to query sharepoint custom lists?

http://technet.microsoft.com/en-us/library/gg576960.aspx

As per this article in Sharepoint 2010 its not possible without using powerpivot addin.
If powerpivot addin is required then does it mean each end user of the site should have this addin installed in the client machine?

How to migrate files from different databases to sharepoint 2013?

$
0
0

Hello everyone,

I need to migrate files of various formats from two databases to SharePoint 2013 ? How should I pursue? Please explain..

Scenario : Two different databases on different systems have loads of files. I need to migrate them to SharePoint?

Any suggestions/ Answers

Programmatically logging out of Office 365 and redirection

$
0
0

Hi there :

I am developing some HTML/JS based apps on SharePoint online. It works perfect.

However recently I got a requirement, which I am not sure how to achieve.

I have got a HTML/JS form by which users submit data to SharePoint by clicking a button. However after clicking a button, the requirement is to prompt the user again for Office 365 log in/credential and then after successful authentication redirect to a particular page. I am giving an example below.

Suppose I am on a page https://<domainname>.sharepoint.com/Pages/form.aspx. There is a submit button on that page. When I hit the submit button, I need to prompt the user again for Office 365 log in/credential and redirect back to https://<domainname>.sharepoint.com/Pages/form.aspx. I can only use JavaScript here as it is a client side based app. Basically I reckon it involves logging the user out and then redirecting to the required page.

Any help will be much appreciated.

Thanks and regards,

DM

SharePoint:DateTimeControl with OnDateChangend and OnValueChangeClientScript

$
0
0

 Hi all,

I want use SharePoint:DateTimeControl with OnDateChangend and OnValueChangeClientScript.

But I dont know how?

I tried this:

<SharePoint:DateTimeControl ID="to_DateTimeControl" runat="server" DateOnly="True" OnValueChangeClientScript="doWork();" OnDateChanged="ToDate_OnDateChanged"  />

but it doesnt fire and dont work.

can anyone help me?

thanks in advance

Ahmad


SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012


No content types have been subscribed for new site collection

$
0
0

New site collection is not picking up content types from the hub.  The Content Type Publishing for this collection shows "No content types have been subscribed" but content hub is showing up for Managed Metadata Service Application for this collection.  Clicking to refresh on next cycle is not working.  Republishing from hub is not working.  Rerunning the Content Hub jobs is not doing the trick.

The new site collection root site was created from a template that was uploaded and activated on the collection.  This same template has been used in the creation of 6-7 other site collections that did pickup the content types from the hub.  The 6-7 initial collections were created before the hub.  This new site collection was created after the hub. What can I do to propagate the content type?

Join 3 lists in client side scripting

$
0
0

Hi,

In my Sharepoint 2013 application am trying to develop a report that needs to pull data from 3 different custom lists that has parent child relationship among themselves. I cannot use server side coding but need to achieve the functionality client side.

Dataview webpart didnt work out when the number of lists grows more than 2 (tried linked data source).
CAML query is not an option as there are no lookup columns in my lists.

Am not sure what would be the best solution.
Any ideas?


get workflow associate with list csom

$
0
0

how to get workflow associate to a list with csom. I am using office 365. I can get list but something like this always fail 

 foreach (WorkflowAssociation assoicaiton in mylist.WorkflowAssociations)
                    {
                        string name = assoicaiton.Name;
                    }


User Profile Synchronization with Site minder Authentication

$
0
0

Hi Everyone,

We have a portal which is using Site minder as the IDP and we are getting authenticated via site minder. However we are unable to understand whether User profiles would be imported from AD or Site minder.

If Site minder then what is the process.

Regards,

Amit

Anonymous posting on disscussion page

$
0
0

Hi,

I have created a Discussion Page in SP2013 and have been asked if I can do it so users can post there comments anonymously?

Is this possible? who is there any ways around this?

thanks

Oli

Add item to list - just adds the last item

$
0
0

Hi,

I'm using a very simple code to add items to a list.

In debug I see all the item being added and calling Update, but at the end only the last one is actually added to the list.

The code is as follows:

SPList list = oSPWeb.Lists["ActivitiesList"];                       
SPListItem itemToAdd = list.Items.Add();
foreach (Activity act in activitiesList)
{
 itemToAdd["Title"] = act.Description;
 itemToAdd.Update();
}

Thanks,

DD

SharePoint 2013 FBA custom login page -- error

$
0
0
I am trying to develop a custom FBA login page in SharePoint 2013

I am following this article
[Custom FBA][1]  [1]: http://msreddysharepoint.blogspot.com/2013/03/custom-fba-login-page-or-sigin-page.html

I have created a brand new web application  and root site collection
I have claims authentication and I have checked the default login page to begin my custom
log in development

I am using visual studio  2013
1) create a empty SharePoint project (SharePointProject1)
2)Add a layout folder in the newly created project
3) add new item -- Application page (applicationpage1.aspx)
4)I add the code in the article and then deploy it
5)I go to the web application and change the default login page to custom login page
~/layouts/SharePointProject1/Applicationpage1.aspx
 
6) I type in the http request

7) I get the following error

XML Parsing Error: syntax error

Layouts/SharePointProject1.Layouts.SharePointProject1/ApplicationPage1.aspx?ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252F&Source=%2F

Line Number 1, Column 1:404 NOT FOUND

Sharepoint 2013 "Variations" not working

$
0
0

I created a publishing site on Sharepoint online. I have left the "Variation Settings" as it is , i.e. default. I created source and target label  and created hierachy. Source Label is english and target is french. After they got created by the timer job, I created a document library in the source and added text file with some content in english. On the home page of source, I added some text ,clicked on variations and gave update all targets.

1. But after the timer job ran, I went to the french site and the content had come in english,so I published it and clicked "Machine Translate", I got an email that the job was complete, but when I went to the site, the content was still in english. Wasn't it supposed to be converted to french?

2. After the document got created in target label, I clicked on Machine Translate ->selected items, it's been 24 hrs and still the content is in english. Am i missing something in both the above scenarios?

Customize the look of Survey Web Part using jlink

$
0
0

Hi,

I have added an OTB survey app (with 3 questions) to my site, and have also added it as a web part to one of my pages. I wish to customize the look of this web part on the client side by using jlink. I want to change what appears and how it appears in the web part. 

I have succeeded in doing this for an Announcement List web part on the same page but am unable to do it for the Survey. 

I have tried overriding all the properties of the Templates object but none of them seem to work.

Could you please tell me if this is possible and if so how. 

Thanks & Regards.

That's the code in my jslink file.

(function () {
var itemCtx = {};
itemCtx.Templates = {};

itemCtx.Templates.View = "<div>View</div>";
itemCtx.Templates.Header = "<div>Header</div>";
itemCtx.Templates.Body = "<div>Body</div>";
itemCtx.Templates.Footer = "<div>Footer</div>";
itemCtx.Templates.Group = "<div>Group</div>";
itemCtx.Templates.Item = "<div>Item</div>";
itemCtx.Templates.Fields = "<div>Fields</div>";
itemCtx.Templates.OnPreRender = "<div>OnPreRender</div>";
itemCtx.Templates.OnPostRender = "<div>OnPostRender</div>";

itemCtx.ListTemplateType = 102;
itemCtx.BaseViewID = 3;

SPClientTemplates.TemplateManager.RegisterTemplateOverrides(itemCtx);
})();


Add existed content types to custom content type with help of look up column

$
0
0

Hi all,

I created custom content type with look up column ,I want to add existed content types to custom content type through look up column is it possible if possible please tell me how to do 

Thanking you,

Arun Darly

Error occured in deployment step 'Add Solution': Error: Cannot add the specified assembly to the global assembly cache

$
0
0

hi,

I have created a separate project which contains a class which has some generic methods- its a Utility class.[ its a  class library project ]

I added this dll into my SharePoint project's wsp package [package--> advanced-->add assembly project from output ]  [ SP 2013/ VS 2012]

So till yesterday everything was working fine, its has successfully deployed in the GAC.

But today when I tried to deploy my solution I got this error

"Error occured in deployment step 'Add Solution': Error: Cannot add the specified assembly to the global assembly cache" .

  I closed the  VS and did iisreset , and uninstalled dll using powershell . and i  went to package removed the dll from the wsp package and deployed again.

Now when i added  the  dll into this package again, it failed to deploy.

can anyone tell ,  why this is happening. i have not done any changes in the dll yesterday or today.

suddenly , it  started behavin stranegly. 


SharePoint caml query how to get if((condition && condition && (condition OR Condition)) items

$
0
0

I uses U2U canl builder to get queries,

How to write caml query for condition like,

(UserName==ABC && date1>=GivenDate1 && (date2<=givendate2 || date2 == null) )

one more

(UserName==ABC && date1>=givenDate1 && (date2<=givenDate2 || date3 <= givenDate2) )

SharePoint caml query if((condition && condition && (condition OR Condition))

Thanks

SharePoint 2013 users get deleted from group automatically.

$
0
0

Dear All,

I have sharepoit site and I have multiple users and groups.

When any user login into site after automatically user gets deleted from group.

It is very strange behaviour, can any one plz tell me why this is happening ?

What could be reason behind the same ?

Thanks,

Harish Patil

How to Create simple WCF/REST (JOSN,get and post) and deploy to Sharepoint 2013 Server.

$
0
0

HI All,

   I wan to create a simple WCF/REST service and deployed to SharePoint server , i have created some sample svc file and put in to _vti_bin folder using SharePoint solution using vs 2013 but its not accessible from IIS its always asking the Widows Authentcation .

however my exact requirement is custom service should be accessible without asking the authentication like _vti_bin/Listdata.svc is there any way to do like this ? 

my reference:

http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
http://msdn.microsoft.com/en-us/library/office/jj860569(v=office.15).aspx
http://dotnetmentors.com/wcf/wcf-rest-service-to-get-or-post-json-data-and-retrieve-json-data-with-datacontract.aspx
http://stevenhollidge.blogspot.in/2011/09/wcfwebapi-rest-json-services.html

Thanks
SujilKumar


Software developer

Viewing all 25064 articles
Browse latest View live


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