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

Not able to edit the page in SharePoint 2013

$
0
0

Hi All,

Its urgent, Please help.

I am admin to site collection. I have created the custom page layout with different webpart zones. There i have added some webparts. 

Upto yesterday everything was working fine. But today when i tried to edit the page, the page goes in check out mode but i can not make changes to the page. It is not appearing as a edit mode. 

But when i tried edit different page. it goes in a edit mode. there i can add webparts, but I can not see a point to click-on to edit the webpart. 

Something is missing. Just to let you know, i was looking at the server for some settings. I guess i ddint make any changes there. After that only its not working. Do i need to make enable something at server side. 

Please help

Thanks in adv.. 



Rakesh


Add Commas to Appended Values

How to save a publishing page using Javascript / Jquery

$
0
0

Hi,

I'm using "Sharepoint Server 2013" with the publishing infrastructure activated.

In "edit mode" when the page already exists (not a new page), we let the user selects data from another application in a Jquery dialog box (eg: a value from anohter SQL*Server database).

When the dialog is closed, we want to submit the page back to the server to save the changes (the selected value is saved in the page's content type).

I found this article on the msdn forum, but it dates back to 2010: http://social.msdn.microsoft.com/Forums/en-US/e4e34a8c-7782-48e3-9058-276532f010a1/save-a-publishing-page-using-javascript-in-page-edit-mode?forum=sharepointdevelopmentlegacy.   [I'm sure it's the more efficient / safest way to call the dopostback method]

I read somewhere that we can execute a command directly from the ribbon using something like this:

  SP.Ribbon.PageManager.get_instance().get_commandDispatcher().executeCommand('Save', null);

Unfortunately, the dispatched command do nothing (returns false);

What is the best approach / where can I find more detailed information about the ribbon commands (other than the usual MSDN documentation 'à la' executeCommand method --> "This method is used to execute a command"

Thanks.

Michel Loubier

Role Assignment Discovery Issue for Files and Folders through Sharepoint REST services

$
0
0
To preface, I am a decided Sharepoint newbie in every sense. I am trying to use the Sharepoint REST services (Sharepoint 2013) to walk the folder and file structure of my Sharepoint server and, determine as I go, the Role Assignments (and subsequently Permissions) on those folders and files. I'm using an Administrator credentials and I'm actually able to successfully do it but I've run into some caveats. All the caveats begin with this; when I'm examining a folder, for example:
/_api/Web/GetFolderByServerRelativeUrl('/sites/cmisdev/Development')/ListItemAllFields
I receive either an empty list or an error response doc when following the link supplied for ListItemAllFields.  When following that kind of link for folders, I either get:
  1. <d:ListItemAllFieldsm:null="true"/>
or an error response document that says "The object specified does not belong to a list." When I hit the /ListItemAllFields endpoint for files, I receive a response with a link for Role Assignments which subsequently also works and I get the info I need. So, is this a bug? Why does the link returned from Sharepoint work for files and not folders? So, google, google, google, and I discover that there is another possible way to get at the Role Assignments (and that the object does, indeed, belong to a list!).
If I know the Title (or the guid) of the folder in question, I can use the following endpoint:
/_api/Web/Lists/GetByTitle('Development')
If I use that endpoint, I get the information I would have expected to get from following /ListItemAllFields and the subsequent Role Assignments links all work and I get what I need. If there's a bug and this is how I have to work around it, that's fine but I have yet to discover how to dynamically determine the Title of a given folder nor am I sure if all Titles are supposed to be unique within a given Sharepoint server. I'm assuming that the folder name as represented in the server relative URL and the Title may be different and this is where my newbishness may start to shine if I'm misunderstanding what a "List" is supposed to be in Sharepoint. Anyway, I did find that I could use the Properties endpoint to perhaps get the Title, for example:
/_api/Web/GetFolderByServerRelativeUrl('/sites/cmisdev/Development')/Properties
gives me:
<d:vti_x005f_listtitle>Development</d:vti_x005f_listtitle>
whose value I assume I could then supply to the /GetByTitle endpoint and be golden. However, "vti_x005f_listtitle" just sounds a little too deep to be something I should be relying on but maybe that's kosher. That's part of what I'm trying to find out. Also, if there is a way to use the Sharepoint REST API to discover the guid of a given object, then I could look it up in that way.
So, in summary:
1. Am I going about getting folder Role Assignment information in the wrong way? Based on the CSOM examples I've seen, I believe I'm doing it correctly and that the answer to #2 below is a resounding "Yes!" :)
2. Is it a bug if I'm not able to use /ListItemAllFields on folders using the server relative url?
3. If I'm supposed to use GetByTitle as a workaround, am I discovering that Title correctly through /Properties? Seems quite circuitous and awkward. Are Titles required to be unique throughout a given Sharepoint server?
4. If I'm supposed to use the guid, how can I use the REST interface to discover an object's guid? Once we get down to the Role Assignments and other links, the guid appears in those links but I don't know how to discover it independently if that's the path I should use to get the data I described above.

Connecting two views of SharePoint List using Connected Web Part

$
0
0

Hello EveryBody,

I am trying to connect the two different views of a list using connected web part.(No coding used).

eg: In Policies list , i have two views. 1. showing all columns including title,ID,description and other showing the Description column only. Description is multiline text and contain large data.

so, when user click on title column in first web part corresponding description for that item  should be displayed in the second web part

Is it possible to connect two views using connected web part concept? Please share your thoughts

Rds

Vishnu


dfd

Using OR condition in Search Results Query Box

$
0
0

i have a query in search results webpart as below

{?Path:https://google/ +{SearchBoxQuery}}

which refines results which have path only starting with "https://google/" i need to add an or condition here to include a new path also "http://bing/",

I need to refine the results with path starting with "http://bing/" and "https://google/" how can i form the query for it,any pointer will be helpful.

Can apps from SharePoint store be customized using visual studio or designer

$
0
0

Hi Guys,

In SharePoint 2013, apps or webparts can be downloaded from the SharePoint App store and be utilised in your sites. I wanted to know if these apps can be edited or customized to suit your own sites' look-n-feel. For example, I wanted to showcase a single stock quote in my company's site and found an app called 'Our Stock Price' in the SharePoint Store, but it doesn't quite fit in to my site look-n-feel. So, I thought instead of creating a new App or Webpart for this can I customize this app I downloaded from the App store. I tried googling on this but can't get a comprehensive 'Yes' or 'No'.

Can anyone confirm on this, whether any apps downloaded from app store are customizable??

Thanks Guys

P.S. -- I am working with SharePoint Server 2013 on-premise

How to deploy display templates via feature

$
0
0

Hello all.

I'm attempting to deploy display templates using a feature. I'm able to add the display templates to the correct folder in the master page gallery. However, the associated .js file isn't generated after the file is added. If I edit the properties of the same item, the .js file is generated afterwards. Has anyone else deployed display templates via feature? Thanks in advance.

Here's what my elements.xml file looks like:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/"><Module Name="Display Templates" Path="Display Templates" Url="_catalogs/masterpage/Display Templates/Content Web Parts" RootWebOnly="TRUE"><File Path="Item_Recipe.html" Type="GhostableInLibrary" Url="Item_Recipe.html"></File></Module></Elements>


Lester Sconyers


Managed Metadata site column can not be viewed in XSLTListViewwebpart

$
0
0

Hi, All:

We have a really annoying bug on our SP13 project, on our home page(provisioned web using site template), there are a couple of xsltListViewWeppart to show some of the lists data. also a custom webpart to display some web level attributes saved in SPweb.AllProperties.

The issue is that, in the xsltListViewWebpart, if we modify the view to include a site column that is a Managed Metadata Site Column, the listview will NOT render and we get an error like following:

Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.

Correlation ID:48c0539c-4ed5-501d-e4f3-72cb32fe8ea0

If the MMS site column is removed from the view, the webpart behaves normal.

Any ideas?

Thanks.

-NH




Get a list with all SharePoint Sites with Javascript

$
0
0

Hi,

is it possible to retrieve all Sites from different Sitecollections via JavaScript(REST)?

Thanks in advance!

How to programatically modify contents of an excel sheet via excel web services in SharePoint 2013?

$
0
0

Hello,

I have read that, While users can interact with Excel workbooks in a browser through Excel Services, the workbooks cannot be edited in the browser by using Excel Services. Programmatic options are available.

I would like to know what is the programmatic method, could you provide any links or reference please?

Users with read writes are not able to insert data in my SharePoint hosted app's List

$
0
0

I have SharePoint hosted app. In that I have created an List and I am managing data of that list using a form which I have created in my app page.

When I am inserting data with the user who has full rights in their SharePoint site are able to insert data. But the users who have read role in their SharePoint site they are not able to insert data from my list. Though the list is in myappweb and I have given Manage permission to the list and tenant in myAppManifest file.

What other ways I can do?

Is this possible?

Is there any other way that I can give permission only to my list that any user can manage it?

Thank you in advance...!

Where to publish Provider Hosted app's web application?

$
0
0

I am confuse in provider hosted app's publish folder.

My questions are :

  1. Can I publish provider hosted web application to any online server or I have to use only SharePoint online(Windows Azure) or Office 365 to publish my Web Application?
  2. If I can publish my web application project to any online server how can I get the Client Id and Client Secret for that?
  3. How can I create certificate for my app which I want to publish for SharePoint office app store?
  4. How much time would it take for Auto-hosted apps to get out from the preview mode?

Any suggestions?

Thank you in advance...!


Event receiver scalability question

$
0
0

Hello

We are exploring a system to analyze and filter data uploaded and downloaded to our site in sharepoint online. For this we need to inspect all data that gets uploaded and downloaded from our site.

We are looking at the possibility of using synchronous events available in sharepoint. This may work for uploads. But we still haven't figured out a way to do this transparently for the downloads without disrupting the usual user experience. 

But we have a concern how this would perform as the load goes up. The inspection and filtering could be quite processing intensive. 

* What are the typical ways to scale horizontally in sharepoint online?

*How well does event receiver codes scale?

* Is there anything specific that we need to be concerned about?

* What has been your experience in scaling event receiver based code?


Thanks

SN

Adding WebParts to Community Portal default.aspx

$
0
0

One thing that seriously caught me off guard when I built my first Community Portal is that there is no ribbon when you go to edit the page! We are looking to, at the very least, change the default Query so that it only brings back communities in the site collection. I've been able to easily build out that query but without being able to save the page there's no use! We also want to just add more web parts to the front page.

Please tell me I'm missing something obvious here, because it makes NO SENSE whats-so-ever to not include the Ribbon on any SharePoint page.

See image below:



Connect SharePoint List selected row to Custom Web Part?

$
0
0

Hello,

I was wondering if it is possible to transfer data between a list and a custom web part.  I know I can transfer row data between different SharePoint lists to act as filters; I simply want to employ the same functionality so that a SPGridView in my web part queries a second list based on the selected row of the first list.

Now I understand I could create two SPGridViews, each handling a different list, and replicating the row selected event for one of the grids, but I really have my heart dead set on an OOTB SharePoint List and a custom web part.

thank you for your time.

EDIT:

After further research, I've come to the understanding that I need a connectionconsumer webpart method in order to retrieve data from a webpart.

[ConnectionConsumer("Filter Consumer", "FilterConsumer")]
        public void ConsumeFilter(IFilterValues filterValues)
        {
            _filterVals = filterValues;
        }

But in order to interact with the right webpart, I need to use the matching Interface (e.g. IFilterValues) for the method parameter.  At least, that is what I believe.

So the question now becomes: what is the matching interface for connecting a SharePoint List web part via "Send Row of Data to" 

Query listitems by view through REST api

$
0
0

I've created a custom view, and I want to access the list items based on this view through REST api.

I've tried .../_api/web/lists(listguid)/view(viewguid)/items, but it seems not working.

Is it possible, any ideas?

Thanks,

Laszlo

How to debug SP2010 default DispForm in SP2013 environment?

$
0
0

We got some strange behavior when opening the default disp form (for metadata) on a document library. Under certain conditions the content of a multi line text field is displayed empty, while under other conditions it's displayed correctly.

I would like to debug the filling of the controls inside the default dispform webpart and I have no clue on how to do that. Is it possible at all?


Regards Andreas MCPD SharePoint 2010. Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.

Apps can’t be added after changing theme

$
0
0

Hi, I have been designed the template as HTML page, then I changed it to a master page through design manager , and there’s no warning message, after I  selected  my theme there’s problem shown , I can’t add a new app in my SharePoint site !!, I don’t know how to solve this issue?

Is there a “Page Changed” event on SP 365 ListView webpart?

$
0
0

Using a content editor webpart, I have added some javascript (jQuery) to a standard SP 365 AllItems.aspx page to do some special formatting on the list items. The formatting function is called on $(document).ready and also onpageLoad. 

This all works just fine.  However, when the list view is paged to the next page, the formatting function is not called. I would have thought that the page change would trigger a call to pageLoad like any other async refresh, but it doesn’t. 

I can see when the page change begins because I have an override on the RefreshPageTo function, but I can’t see when it completes.  I currently set a timeout in my override of RefreshPageTo which calls the formatting function, but this is less than ideal. 

Is there an event raised when a page change completes on a listview in SP365?

Many thanks

Stuart

Viewing all 7589 articles
Browse latest View live