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

Multiple ( two ) SPGridViews on an Application Page conflict.

$
0
0

Hi,

I am loading two user controls (.ascx) in an application page (_layouts).  Each user control has an SPGridView displaying data from SharePoint 2013.  Both have a SharePoint:MenuTemplate and a couple of SharePoint:MenuItemTemplates.  Those MenuItemTemplates all have the ClientOnClickScript defined.

The thing is, when I have one control on the page the ClientOnClickScript function is called and everything works fine, but when I have two controls on the page the functions don't fire!  So there seems to be some conflict regarding javascript when I have two SharePointMenuItemTemplates on the same application page.

Any suggestions what could be happening here?

There is other behavior that is strange when both controls are on the same page.  Is there something I should be aware of regarding conflict between two SPGridViews on the same application page?

B. Regards,

Atli


How to edit profile of a user in sharepoint 2013

$
0
0

Hellow All,

new share point developer here , Please help .

i have a share point site collection on which i have enabled FBA users from sql server. by default this database stores only some fields of user profile such as (username, email , question , answer etc.)

Now as our business need i have to add some More field for ex office , organization etc.

can any body please tell me the best way to Add these fields.

if every user it self can modify its setting then it will be good as we don't have to edit the data for each.

but user information list does not looks editable.

Please help some . i will give 10 million thanks.


Mukesh

How we can implement the lotus notus @dbcolumn functionality in sharepoint? Can some one help me to acchive the same.

$
0
0
How we can implement the lotus notus @dbcolumn functionality in sharepoint? Can some one help me to acchive the same.

Generate author link

$
0
0

Hi!

After I retrieve list values I can get Author with

var createdBy = item.get_item("Author");
This will give me user first and last name:
createdBy.get_lookupValue();

Now I would need to generate url to that user profile page. How can I do it? How can I get needed info to generate link like this:

https://xxxxx-my.sharepoint.com/Person.aspx?accountname=i%3A0%23.f|membership|tomislav%40zorcec.onmicrosoft.com

Thank you!

Custom Field Types with custom control for rendering

$
0
0

Hi Experts,

as described here: Build farm solutions in SharePoint 2013

Development of farm solutions has not changed since SharePoint 2010, so this section contains links into the SharePoint 2010 SDK.

I have several Custom Field Types running under SharePoint 2010 which uses custom controls for Rendering.

As of now i had to migrate these Types to SharePoint 2013. I found not even one document which descripes the creation of custom field types using custom controls for Rendering (what i found is client-Rendering) in SharePoint 2013. Since development of farm solutions has not changed since SharePoint 2010 (ha ha) i did the following:

  1. Create a new Project
  2. Add the corresponding SharePoint-Mapped-Folder (Images, Controltemplates, XML, and so on)
  3. Add new Usercontrol (ascx) as the custom control for Rendering, so references are pointing to Version 15
  4. Copy Rendering Markup and classes to the Project.
  5. Build & Deploy

When i then add this custom field type to a list i got a non specific error with correlation-id which i could'nt find even with verbose uls logging.

After one day of Troubleshooting and "Trial and error" i found it! - Let's say it is an documentation-bug..

If the custom control for Rendering is using InputFormSection and InputFormControl the declaration was:

<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/InputFormControl.ascx" %><%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>

My fldtypes_MyControl.xml has the TAG

<Field Name="FieldEditorUserControl">/_controltemplates/MyControlEdit.ascx</Field>

And further on i have a image-Tag in the custom control for rendering:

<img src="/_layouts/images/MyControl/MyLogo.png" alt="" />

Solution is:

Add the 15-Hive-Folder to the relative and even non-relative pathes in These files:

<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/15/InputFormControl.ascx" %><%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/15/InputFormSection.ascx" %>
<img src="/_layouts/15/images/MyControl/MyLogo.png" alt="" />
<Field Name="FieldEditorUserControl">/_controltemplates/15/MyControlEdit.ascx</Field>

After these changes everything works fine again.

So the development did changed!!!

May you find this useful to add to the next SDK after the preview.


Deploy Project option not available at project level for SharePoint 2013 project in Visual Studio 2012

$
0
0

I have recently upgraded my SharePoint 2010 solution to SharePoint 2013 and in the same process upgraded the solution as well to Visual-Studio 2012.

One of the things I have observed is that I don't have the "deploy" option at each SharePoint project level. On digging a bit further I have noticed that the "deloy" option is available to all projects under solution but not for projects under any folder.

e.g. I have attached the image showing the solution structure containing two projects. As seen the "deploy" option is not available for the project under the folder.

Is this a bug or is there something setting in VS to make this work?

-Sharath

How to change the Title of my Enterprise Wiki & how to show the rating starts

$
0
0

I have the following two problems inside my Enterprise Wiki Template:-

  1. I am unable to change the title of the Page from “SharePoint” to “My company name”.
  2. Also the rating stats will not show up when the page load first time,, and I have to refresh the page to display them.

I have marked the two problems in red as shown in the below image:-

Cannot find url to list created in the Sharepoint App Project. Do I need the GUID?

$
0
0

I followed the Sharepoint Hosted App demo with a List Instance in it and to get the list items it used:   

varurl = appwebUrl +"/_api/SP.AppContextSite(@target)/web/lists/getbytitle('TempList')/items?@target='"+ hostwebUrl + "'";

Problem is I can get this working for existing lists, but not for The List Instance created in my App Project. Do I need a GUID instead or is it a case that the list is not being created? Error is URL Not Found.  


Sharepoint 2013 webpart is not shown

$
0
0

I have a strange problem. First let me introduce environment. We are 2 people developing same sharepoint on same machine with different users and we are using SVN to merge our projects. We are both administrators. We set up a FBA database by asp_reg and make sharepoint FBA to allow external users to use our webparts. We can deploy custom webparts and put them in pages and we can use them as our windows authenticated admin users. Our site is allowed to annonymous users. Here comes the strange part.

When my friend deploys his web part, all of the users which signed in or not signed in can see that webpart (as expected) but when I deploy web parts only admin users can see them other users see a "textfield" string downside of the page. When my friend takes my webpart from SVN and deploys the project only admin users can see it other users see a "textfield" string downside of the page. Our configurations are all same. We are both system account in sharepoint.

So what is the problem and how can I solve it. Thank you for the answers.


ASP.Net site using ADFS for authentication

$
0
0

I am currently using WSS3 and use SharePoint to host my custom ASP.Net web applications. The URLs for the site are in the formathttp://fqdn/aspsite. If I am not currently signed in, I get prompted to log in.

I am configuring SharePoint 2013 and want it to work in the same way. I am using Claims authentication via SAML/ADFS. I am stuck on trying to get the authentication to work. I have tried setting up my ADFS with Forms authentication and setting the ASP.Net site to use the sign in URL from the ADFS site, but it adds a parameter for the return URL at the end. Is there a way to get this to work without rewriting my current ASP.net applications?

creating internet site that pulls from intranet site in sharepoint 2013

$
0
0

I have an intranet site which has documents for the different departments

I would like to display some of those documents as a list on a page in the sharepoint internet site.

another question

I have a published site --can this be used as internet site.

I liked the published site because I was able to use the design manager

Appreciate your help


sz

Question from the Product Team: SharePoint and the Cloud App Model?

$
0
0

Today, 5/20, we launched a new site on MSDN called Reimagine SharePoint Development. This site will be focused on content and guidance on migrating existing SharePoint solutions to apps and educating SharePoint developers on the cloud app model. We plan on adding more content to this site in the months ahead, but I would like to get your feedback on the types of full trust scenarios you would like to see.

So please, submit what you think are the important migration scenarios in this thread.  Thanks in advance, and I look forward to reading your comments.


Possible To Set / Retrieve From Secure Store Service Through CSOM

$
0
0

Title says it all. I would like a place to securely store and retrieve credentials programatically. Is this possible with SSS?

If so, code examples would be mucho appreciated!

TIA!

How can I retrieve my app list of catalog using javascript?

$
0
0

hi everyone, 

I try to build an apps which display to users, a list of app that are already in app catalog of the current site collection. How can i do that using Javascript?

best regards

Uploading Video Link to Asset Library programmatically

$
0
0

Hi All,

I am trying to add an External Video Link to Asset Library. When i am adding video link using out of box feature 'Provide Video Link' it gets added and when clicked on it the Video player Page opens. 

I want to to do the same programmatically without actually adding the video in the library but unable to fine the code for it.

Any help would be appreciated...

SK


Modifying the Author field for a programmatically uploaded document

$
0
0

Hi

I have some C# code that I'm using to upload documents to a document library. The code is of the form

doc["Title"]=sTitle;
//doc["Author"]=sAuthor;
doc.Update();
ctx.ExecuteQuery();

So far I've been able to modify various fields correctly, even lookup fields. However if I try to modify the Author field then I just get an exception 'Invalid data has been used to update the list item. The field you are trying to update may be read only.' I have tried using different the User object such as

ctx.Web.EnsureUser(sAuthor);

but nothing works so far.

Any suggestions anyone?

Thanks


Programmatically retrieving value of Metadata of specific document in Sharepoint using Server Object Model

$
0
0

Hi

I am trying to get Meta data information of an item (document) exists in document library.

At the time when I update this item, I put some additional information in hash table with this item programmatically. using the below code

                                    SPFolder target = oSpWeb1.GetFolder(doclibraryname);

                     SPFileCollection files = target.Files;

 Hashtable ht = newHashtable();

                     ht.Add("testcol","myfile");

                    target.Files.Add(oItem.File.Name, _docbytes , ht , true);

 

I have two questions,

1. Is that the right way to set Meta information against an item.

2. How to get this Meta Information programatically.

I am trying to get it from below code, but it does not work it returns exception.

               object fieldValue = spfile.Item["testcol"];

Any help will be highly appreciated.

Thanks
Saad


How to Add Item to Documents in SharePoint.

$
0
0

hi

how to add item for example newFile.docx to document library in SharePoint 2013. Using C#, CSOM i can add item to Contacts, how can i add word or excel file to documents?


it's just not coming out the way i want

$
0
0

I have my design already in my head but when it comes to hands on my site keeps flip flopping and coming out totally the opposite. Its like i have no control how it will look like.. i want to have borders and fixed sizes of my webparts and i want my pictures full on the space i give them but thez expand and contract.. Please someone help me.. i even have a deadline to finish this..

For those interested i can even teamview and show u what i am trying to say

Assist please..

Create and Upload File in Sandbox Solution.

$
0
0

Hii All,

I have an office 365 site. What I needed is , I want to upload a file to the document library.  The issue is First user will fill data. And on the base of that data I need to create an html document. Do any body have idea that How can I create a file from the form data.

E.g. User will input certain data in text box and by clicking on the button, that will create a new file and stored data in to it.

Thanks.


Viewing all 25064 articles
Browse latest View live


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