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

Call web service from workflow with POST

$
0
0

Has anybody tried to use the new action "Call web service" in workflow using POST.

I am trying to update a list item using that method and REST api but I am always getting bad request. 

Basically I need to know how to provide parameters for my POST request using dictionary type.


Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Blog: My SharePoint Insight


Sharepoint 2013 Ribbon Customization

$
0
0

Developer Friends,

My client requirement is, She wants document from sharepoint to be attached to New Email window on outlook just like the Email a Link option works under Page in ribbon.

She wants to customize the Email a Link option that is shown in below according to her requirement.

Please let me know if we can customize the Email a link option , If we can customize the option let me know how can I do that .

Thanks’ and Regards,

Habeebullah.

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.)

Sp2013/Ad authentication/reauthentication for sensitive data in a webapplication

$
0
0

Here comes one of a tricky requirement for my project. I have 10k users of my intranet application. Everytime i login into my application via link or through entering url in browser. it should display the authentication popup.

m using AD authentication and how to sync it up with FBA? Group and access will not solve my proble.
not sure loginasanotheruser will solve my problem as it is sp2013

in detail req

What we want is specified in flow below

User logs in tha app-> browse the app-> tries to enter sensitive area(list/library/pages- part of seperate web application)->should prompt popup for userid and password-> user enters the credentials->Able to see data.

This is to make sure if in case user leaves the system idle and moves out then only authenticated users should see the content.

Since I am totally new including the environment, Request you to please suggest in a way that user cannot get the url through view source also.

I know in SP2010 this can be done through "Loginas another user" through server side coding in cs file but how to proceed in SP2013 and which webpart to choose to get authentication popup.


Thanks Ba$va


webparts in sharepoint 2013 public website office 365

$
0
0

Hi,

I currently have a public office 365 sharepoint website and i am using sharpoint 2010. in this website i have many custom webparts that i have developed to meet specific demands of a client. but now the site will be upgraded to sharepoint 2013 and i am now unable to upload my solutions(webparts) into the site. my question is how can i use my custom webparts in the new site??

Reading the entire document library using C#

$
0
0

Hi,

I'm new to SharePoint server. I need to get the list of all document stored in SharePoint server, not in particular user site. Is there any way to get all documents list , name or count using C#?

Is there any work around it. I need to know where all the document stored in the SharePoint Server or how can we access them.

Thanks

Issue on Firefox with executeQueryAsync call

$
0
0

I have written ECMA script to add an item into on SharePoint List. I am using ECMA script for the same. Code is given below

functionAddMailBoxItems(to, subject, message){var clientContext = SP.ClientContext.get_current();var webSite = clientContext.get_web();var lists = webSite.get_lists();var mailBoxList = lists.getByTitle(LIST_HOLIDAY_MAILBOX);
    clientContext.load(mailBoxList);var itemCreationInfo =new SP.ListItemCreationInformation();var listItem = mailBoxList.addItem(itemCreationInfo);

    listItem.set_item("Title", subject);
    listItem.set_item(LIST_HOLIDAY_MAILBOX_COLUMN_MESSAGE, message);
    listItem.set_item(LIST_HOLIDAY_MAILBOX_COLUMN_TO, to);

    listItem.update();

    clientContext.load(listItem);

    clientContext.executeQueryAsync(Function.createDelegate(this,this.onSuccees),Function.createDelegate(this,this.onFail));}

onSuccees =function(sender, args){//alert("Success");}


onFail =function(sender, args){
    alert('failed to send Email. Error:'+ args.get_message());}

The problem is only on FireFox. On Firfox above code does not work and the

executeQueryAsync response goes to onFail fucntion. 

The same code works fine on IE and Chrome

I believe this aysnc call is causing problem here but why only on FireFox?


Pathik Rawal My Blog


Sharepoint 2013 development on 32 bit Visual Studio Ultimate

$
0
0
I heard we can use Visual Studio 2012 32 bit for sharepoint development.  Can anyone tell me what is no possible using Visual Studio 2012 32 bit edition.

How to add usercontrol in sharepoint 2013 master page.

$
0
0

HI friends,

  Can you please help me to add the user control to SharePoint 2013 master page  .Please give me the links which shows step by step to achieve this.I am using visual studio 2012 .In the user control I need to place the banner image and another menu image with few buttons which navigates to the SharePoint pages.Please help me to do this.

Thanks

 

Problem with VS2012 and Sharepoint 2013 Solution

$
0
0

Hello everyone

I've got a problem that's driving me crazy. I'm migrating a Sharepoint 2010/Visual Studio 2010 Solution to Sharepoint 2013/visual Studio 2012 with the developer tools.

My solution consists of 3 class libraries (common, data access layer and business logic) and a Sharepoint 2013 project containing the features, and the webparts using the output of the class libraries. The references inside projects are set through "Add Reference -> Solution -> Projects". I want a wsp-file containing the sharepoint artifacts and the assemblies from my class libraries. (those are added through the package explorer -> Advanced). If i use Build/Rebuild on the Solution it compiles fine, as it should.

If i use the "deploy" or "publish" command on visual studio to create a solution package, the build fails with the message:

"The type or namespace name 'whatever' does not exist in the namespace 'Xyz.Project'' (are you missing an assembly reference?)

I can't find out what's wrong. if i deploy anything manually everything works fine. building/rebuilding my whole solution works fine. Everything is set to .NET 4.5. It seems to be that "wsp-package"-building process that has a problem.

Any hint/idea would be welcome.

Greetings
Carlos

creating e-leave application for employees

$
0
0

this is the first time i work with sharepoint.i downloaded sharepoint foundation 2013 and sql server 2008 on windows server 2008.i need to create an application for each employee to request a vacation from his or her supervisor or manager then the request is send to the manager to approve or refuse through outlook mail.

i need to know the procedure for doing such application like the the three video in the attached link below.

http://www.srkk.com/biz-solutions-consultancy/ms-sharepoint/eleave/

best regards,


emmy

Approval workflow using sharepoint designer 2013

$
0
0

Hi,

I using sharepoint 2013 server and sharepoint designer 2013.

Trying to create document approval workflow using sharepoint designer 2013.

suggest required steps for to create the workflow.

Regards,

RK.

[Server Model] Cannot get personal social feed

$
0
0

Hi All,

I'm using the following code to get personal social feed,

SPSecurity.RunWithElevatedPrivileges(delegate()
{
   using (SPSite site = new SPSite(serverURL))
   {                     
      SPServiceContext serviceContext = SPServiceContext.GetContext(site);
      SPSocialFeedOptions feedOptions = new SPSocialFeedOptions();
      feedOptions.MaxThreadCount = 10;
      SPSocialFeed everyoneFeed = feedManager.GetFeed(SPSocialFeedType.Personal, feedOptions);
   }
}

but exceptions are thrown:

SPSocialFeedManager.GetFeed: Exception: Microsoft.Office.Server.Microfeed.MicrofeedException: ServerErrorFetchingActivityFeed : ( Value cannot be null.  Parameter name: serviceContext ) : Correlation ID:00000000-0000-0000-0000-000000000000 : Date and Time : 1/30/2013 7:54:39 PM    
 at Microsoft.Office.Server.Microfeed.SPMicrofeedThreadCollection.AddActivityEventsToThreadCollection(SPMicrofeedRetrievalOptions retOptions)    
 at Microsoft.Office.Server.Microfeed.SPMicrofeedThreadCollection.Populate(SPMicrofeedRetrievalOptions retrievalOptions, SPMicrofeedContext context)    
 at Microsoft.Office.Server.Microfeed.SPMicrofeedManager.CommonGetFeedFor(SPMicrofeedRetrievalOptions retrievalOptions)    
 at Microsoft.Office.Server.Microfeed.SPMicrofeedManager.CommonPubFeedGetter(SPMicrofeedRetrievalOptions feedOptions, MicrofeedPublishedFeedType feedType, Boolean publicView)    
 at Microsoft.Office.Server.Microfeed.SPMicrofeedManager.GetMyPublishedFeed(SPMicrofeedRetrievalOptions feedOptions, MicrofeedPublishedFeedType typeOfPubFeed, Boolean ShowPublicView)    
 at Microsoft.Office.Server.Social.SPSocialFeedManager.Microsoft.Office.Server.Social.ISocialFeedManagerProxy.ProxyGetFeed(SPSocialFeedType type, SPSocialFeedOptions options)    
 at Microsoft.Office.Server.Social.SPSocialFeedManager.<>c__DisplayClass4b`1.<S2SInvoke>b__4a()

However, I can successfully get every social feed by changing the first parameter in GetFeed() from Personal to Everyone.

How can I fix this?

Thanks,

App for sharepoint 2013 debugging problem

$
0
0

I am getting the following alert box when i press F5 after creating an APP for 2013.

Unable to start the program path/AppRedirect.aspx?instance_id='f75b800e-dc4a-4fb0-aaf2-231a48dec9d2'

The system cannot find the file specified.

Please advice.

Chaitanya

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.


i want make social webpart use the SSOM

$
0
0

HI, my englihs is bad.

i want make webpart, write Text("Hello") -> Click Button -> teamsitehttp://abcd:1111/  main newsfeed ->

"Hello"

firest

so i tried make webpart use CSOM, but i think webpart project is can not use CSOM(ClientContext),this is true?

second

so i retried use SSOM

using (SPSite site = new SPSite("http://nar-cla500s3:2222/"))
            {
                SPServiceContext context = SPServiceContext.GetContext(site);
                using (new SPServiceContextScope(context))
                {
                    SPSocialFeedManager sfm = new SPSocialFeedManager();
                    SPSocialFeedOptions options = new SPSocialFeedOptions();
                    options.SortOrder = SPSocialFeedSortOrder.ByCreatedTime;
                    options.MaxThreadCount = 10;
                    var aaa = sfm.GetFeed(SPSocialFeedType.Personal, options);
                    Label1.Text = aaa.ToString();
                }    
            }          

http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/d38278e1-7b80-4f8c-9b42-0857cf52f65f

i copied source that link, but Lebel1.Text = aaa.ToString(); Writer is me

becouse i want see result   var aaa = sfm.GetFeed(SPSocialFeedType.Personal, options);

but...Label1.Text(microsoft.office.Server.Social.SPSocialFeed) OTL....

I don't know SPSocialFeed...

maybe...nobodyknows my english question, but please helpme!!

Updating contents in a custom webpart in a Discussion Board topic page

$
0
0

Hi

I have made a custom Visual Webpart. I'm wanting to periodically update a label in the webpart without refreshing the whole page. I've got the label to update, however it is also updating the replies on the page that I've placed the webpart. The page I'm wanting to use it is in a Discussion Board on the Topic pages that contain the topic and all replies.

In my ascx file I have

<asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Conditional" runat="server"><Triggers><asp:AsyncPostBackTrigger  ControlID="Timer1" EventName="Tick" /></Triggers><ContentTemplate><asp:Label ID="LabelRefreshNotice" runat="server" Text="not refreshed yet."></asp:Label><br /><br /></ContentTemplate></asp:UpdatePanel><asp:Timer ID="Timer1" OnTick="Timer1_Tick" runat="server" Interval="10000" />

And in my ascx.cs file

protected void Timer1_Tick(object sender, EventArgs e)
        {
            LabelRefreshNotice.Text = "Refreshed at: " + DateTime.Now.ToLongTimeString();
        }

This updates the label like I want, but also updates all the replies and clears any text I have written in the reply box, which I don't want. How can I get it to update only the specific content in the web part?

Thanks

Type or namespace name does not exist : Visual studio 2012 Sharepoint 2013

$
0
0

I have upgraded a Visual studio 2010 solution to visual studio 2012. The solution contains sharepoint projects and class librarys. Class libraries are referred in sharepoint project

I have changed the .net framework target version to 4.5 for all projects in solution . I am able to BUILD the sharepoint project successfully. However when I DEPLOY or PUBLISH(to create WSP), it fails with the message

The type or namespace name does not exist in the namespace (are you missing an assembly reference?) 

What is going wrong here.. Anybody faced this issue before

Bind Sharepoint 2013 list data to Tableview

$
0
0

Hi..

How to bind SharePoint 2013 List data in Table view using MVC4.

how to do ?

Thanks In advance


Displaying most downloaded files

$
0
0

Hi All,

I need to develop a webpart which contains top most(say for eg. top 10) downloaded documents from document libraries.

Can any one of you suggest me the best way!

Let me know if you have any queires.

Thanks In Advance,
Pavan.

Viewing all 25064 articles
Browse latest View live


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