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

Asset Library Video Redirection Page in SharePoint 2013

$
0
0

Hi,

I have an asset library in SharePoint 2013 where I'm uploading the videos. By default , when user clicks on video , it gets redirected to"VideoPlayerPage.aspx". My requirement is to create my own Custom Page where I can redirect the users whenever they click on any video. I have tried with the embedding code by programmatically creating an IFrame , but no success :(

Any help will be highly appreciated !!!

Regards,

Vipul Jain


Problems with Custom Field Type list view rendering

$
0
0

I'm upgrading an existing 2010 Custom Field Type to work with 2013. Where possible I'm attempting to re-use code from the 2010 version, to avoid duplicate work.

The main problem I'm coming across appears to be a couple of either misunderstandings or bugs with the List View rendering in 2013:

XSL

The existing XSL stylesheet (from 2010) appears to be entirely ignored (both header and Text_body modes). When I manually move it from the 14 folder to 15 it's processed (I know this because an error is thrown if it's invalid), but still not used.

I've attempted to use this with both CAMLRendering set to TRUE and FALSE.

CAML

When using CAMLRendering TRUE, the DisplayPattern for the body is used in most instances, but appears to be ignored when viewing anything after the first page.

I've confirmed this by viewing the inplview.aspx calls: On the first page the response array contains the CAML-output values as expected, but on the second they're empty strings.

General info

  • The actual field's data is empty, as the values are generated b the CAML/XSL.
  • The CFT is an actual working product on both 2007 and 2010, using CAML and XSL respectively.
  • Using SPField.JSLink isn't currently an option, due to internal constraints.

Are there any workarounds to these problems? Are these known issues/bugs?

Error when opening Power view report in sharepoint 2013

$
0
0

Hi,

I am trying to open powerview report from Powerpivot file in sharepoint 2013, but i get the following error :

An error occurred while loading the model for the item or data source. Verify that the connection information is correct and that you have permissions to access the data source.


Please help.

Creating Publishing Portal, File Not Found error

$
0
0

When I am creating a publishing portal, site is created successfully however when I navigate to the site, I get "File Not Found" error. Below is relevant ULS log information. Can you provide any insights?

Unknown SPRequest error occurred. More information: 0x80070002 SPRequest.GetWebUrl: UserPrincipalName=, AppPrincipalName= ,gSiteId=76ed9a5e-314f-45ed-bd89-efdb2c4281d1 ,gWebId=b58fdec1-b77d-4651-a8e0-cf52d799bd7e ,bstrSiteUrl=http://abc.com/sites/projects System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002), StackTrace: at Microsoft.SharePoint.SPSite.OpenWeb(Guid gWebId, Int32 mondoHint) at Microsoft.SharePoint.Publishing.CachedObjectFactory.OpenWebFromSuperUserSite(Guid webId) at Microsoft.SharePoint.Publishing.CacheManager..ctor(SPSite site) at Microsoft.SharePoint.Publishing.CacheManager.GetManager(SPSite site, Boolean useContextSite, Boolean allowContextSiteOptimization, Boolean refreshIfNoContext) at Microsoft.SharePoint.Publishing.TemplateRedirectionPage.ComputeRedirectionVirtualPath(TemplateRedirectionPage basePage) at Microsoft.SharePoint.Publishing.Internal.CmsVirtualPathProvider.CombineVirtualPaths(String basePath, String relativePath) at SystemWeb.Hosting.VirtualPathProvider.CombineVirtualPaths(VirtualPath basePath, VirtualPath relativePath) at System.Web.Hosting.VirtualPathProvider.CombineVirtualPathsInternal(VirtualPath basePath, VirtualPath relativePath) at System.Web.UI.DependencyParser.AddDependency(VirtualPath virtualPath) at System.Web.UI.DependencyParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.PageDependencyParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.DependencyParser.ParseString(String text) at System.Web.UI.DependencyParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.DependencyParser.GetVirtualPathDependencies()

at Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.CalculateFileDependencies(HttpContext context, SPRequestModuleData basicRequestData, ICollection& directDependencies, ICollection& childDependencies)



Are there any dependencies for a web application before I can create a site collection based on publishing portal. I am able to create a site collection based on publishing portal just fine in a different web application.

Create a new property bag using REST service

$
0
0

Hi

I have a 3 rd party application (running in a  non .net environment )

I want to create a property bag for a site using a REST service

I found a link to access all property bag (http://msdn.microsoft.com/en-us/library/jj245279.aspx), but not to create a new one 


Is there any REST service to create a property bag?


How to get started?

$
0
0

I need to hard link documents inside a C# Program I am creating for our company, so the user can add hard links, and open documents from within the program.

However we are now storing documents up on the sharepoint server of our company portal. 

I thought about using the "using Microsoft.SharePoint" and SPWeb and SPFile and SPList classes.

However I have ZERO clue about how to install the service references after 2, 3 hours of trying and searching.

Can someone tell me exactly what I need to download?  Or perhaps provide a link?

I have downloaded SharePoint.exe (won't install without Windows Server 2008 SP1), wsssdk.exe (Windows SharePoint Services SDK which  just contains a help file) and SharePointPlatformSDK.exe (which contains examples but no binaries)

Thanks in Advance

Don

Error Deploying Workflow from Visual Studio 2012

$
0
0

When I try deploy a workflow for SharePoint from VS 2012 I receive the following error. I have only been able to successfully deploy a workflow that contains the "SetField" activity; all other activities cause the following error.

Error 1 Error occurred in deployment step 'Activate Features': Microsoft.Workflow.Client.ActivityNotFoundException: The activity named 'WorkflowXaml_58d15948_6f6a_49f3_ad16_2e96dc8f4fd8' from scope '/SharePoint/default/d5e32e6b-d7e9-4fa0-8d5a-38ef9cc63bd3/99958e04-7442-4dd4-b8c7-95214c389384' was not found. HTTP headers received from the server - ActivityId: 67ece949-02d2-4e23-8bf2-bf7071aa7c46. NodeId: DEVSP13APPBHM01. Scope: /SharePoint/default/d5e32e6b-d7e9-4fa0-8d5a-38ef9cc63bd3/99958e04-7442-4dd4-b8c7-95214c389384. Client ActivityId : 7ff4b32f-203a-45e
  0 0 SharePointProject10

Global Navigation branding sharepoint 2013

$
0
0

All,

I am branding sharepoint 2013 site for one of our clients and one of the requirement is to show global navigation below titlerow(like it is in sharepoint 2010). I have custom master page but not sure how to achieve this.

Any help in this regard will be highly appreciated.

-Ahmad


Publishing Template: Data View (List View Web Part) / Content Search

$
0
0

Hi,

I have a page layout on which I wanted to add some queries to get the language specific contents and other logic oriented contents. Now I have two option to do the same: Content Search WP / LVWP. Which approach is recommended ? Any help is appreciable. Thanks.


-- VT

Content Search Web Part

$
0
0

Hi,

I am trying to use content search web part to display images from a folder in picture library. for some reason i am unable to use "specify a URL" filter. it keeps on returning 0 results even though I see 6 images in the search index. Is there any complexity involved to using a folder inside a picture library? I will have several projects and the only way to separate them would be using folders. I cannot use tags because it will be cumbersome.

Any thoughts?

SharePoint 2013 Rest API retrieve PDF File

$
0
0

Hello,

I am using SharePoint hosted app. I want to retrieve PDF file from the document library using javascript and REST API. Thanks to Steve.Curran MVP, i am using following code. The problem is, following code returns text of file meaning it will work correctly for text file but not for pdf file. The following code should return blob/stream/byte array data.

Regards,

Muhammad Irfan Khan

hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    fileContentUrl = appweburl +"/_api/SP.AppContextSite(@target)/web/GetFileByServerRelativeUrl('/shared documents/year-end review format.docx')/$value?@target='"+ hostweburl +"'";var fileContent = getBinary(fileContentUrl);function getBinary(sUrl){var binaryData;
    $.support.cors =true;
    $.ajax({
                       url: sUrl,
                       method:"GET",
                       headers:{"accept":"application/json; odata=verbose",},
                       async:false,
                       success:function(data){
                           binaryData = data;},
                       error:function(err){
                           alert(JSON.stringify(err));},});return binaryData;}


KhanG

Notify of new replies in Discussion Board topic

$
0
0

Hi

In a Discussion Board, I'd like the user to be informed (on the same page) if there have been new replies on the topic they are looking at.

To do this, I thought I'd query the db periodically for items newer than the time of last refresh, and display the number of new items to the user.

To that end, I'm trying to get the Item id of the current topic using the JS client object model. I've tried using _spPageContextInfo.pageItemId, but it is undefined on this page. The page I'm referring to is the page that is navigated to when a main topic is selected, so it will show the main topic, and all replies under that topic. How can I get the current topic item id on this page?

Thanks

(ps. I'm very open to other ideas for achieving my goal. Ideally I'd like new replies to automatically appear, but I have to start small if I have to program this myself.)

AJAX Update Panel and status code: 302 found

$
0
0

I have implemented ajax update panel on my SharePoint visual web part. The web part contains a few buttons and a grid surrounded by update panel.

It is working fine but when I stay idle for some time and select some button the ajax request gets 302 found response. Is it due to session out.

Please let me know the solution, can we do some setting that it will never get response as 302 found.

Please see the responses in chrome developer tools:

  1. Request URL:
    http://test.site.com/_windows/default.aspx?ReturnUrl=%2ftest%2fcustompage.aspx%3fTarget%3ddefault&Target=default
  2. Request Method:
    GET
  3. Status Code:
    302 Found
  1. Request URL:
    http://test.site.com/_windows/login.aspx?ReturnUrl=%2ftest%2fcustompage.aspx%3fTarget%3ddefault&Target=default
  2. Request Method:
    GET
  3. Status Code:
    302 Found

jQuery- SharePoint 2010 limitations, maintainability

$
0
0

HI,

One of our requirement asks us to develope a custom workflow using jQuery.

Hence, would like to know its limitations.

Can anyone please share jQuery limitations on SharePoint 2010, in terms of maintainability.


- GEM



Hoto to integrate sharepoint 2013 with Oracle Access Manager

$
0
0

Hi

We are using Oracle Access Manager as the central authentication system for all of our web sites.  Now we wanted to integrate OAM 10.1.4.3 with SharePoint 2013  how do we do that?

-Cool


SharePoint 2013 with Windows 8 Apps

$
0
0

Main Purpose of this discussion is to share the experience of windows 8 apps integration with SharePoint 2013.

Any thought of generic Windows apps that should be created with SharePoiint 2013. With the help of this we can come up with so many better ideas of applications that can be available and help end users/Organization to perform their daily task easily.

Example: Any Window 8 apps must be available that person should do their work offline and once done data should be sync with their SharePoint Portal.

With the help of this we can have good number of applicaitons that can be available freely to users and maximize the usage of SharePoint 2013 and windows 8.

Any suggestion and contributaion will be highly appriciated.


Thanks and Regards, Bharat Gupta Gurgaon: M: (+91) 9971234252 Yahoo IM: bharatgupta04


Visio webpart, single mouse click don't work

$
0
0

I have created a Visio web part (vdw), but when I try to click on one of my figure(referes to a URL) after I have imported the visio file into SharePoint it doesn't respond.  The strange thing is when I hold down CTRL and click the figure, it opens the URL in a new window.

Isn't this posible? or do I need to activate something within sharepoint/visio to get this to work?

I'm using Visio 2013 and SharePoint 2013.

Taxonomy field in app list

$
0
0

Hello!

I have created an list (Custom List) inside my SharePoint 2013 App (SharePoint 365). The list has an Taxonomy field (Required), when I'm from the SharePoint GUI add an new item to the list everything works fine. However when I'm viewing or editing the same item the taxonomy field is empty and when I'm trying to save the item I get the following message "The SPListItem being updated was not retrieved with all taxonomy fields.
".

Thanks in advance!

unable to generate themed styles for the selected theme. server error there was an error in the callback ?

$
0
0

Hi All,

We are developing application in SharePoint 2010 environment which uses custom master page. 

When i tried to Preview the theme i am getting pop-up saying "Unable to generate themed styles for the selected theme.sever error there was an error in the callback".

If i apply theme it seems to work , only preview is failing.

As mentioned in couple of blogs ; verified the permission inheritance, there is no problem with that. Also verified user access at parent site (at least READ or Contribute access), it looks good to me.

Please let me know what could be the possible reason. 

Would appreciate any help.

Thanks,

Dhanu 

How to quickly design user forms in Visual Studio

$
0
0

Hi, I would like to create user forms in Visual Studio but I don't want to write HTML code by hand and it would be nice to have HTML editor WYSIWYG when I can quickly create form layout and just copy & past html into application page in VS. So then I would concentrate in C# coding logic in that form.

Is there any good tool to do this?

Thanx for any help.

Viewing all 25064 articles
Browse latest View live


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