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

SPLongoperation alternative

$
0
0

Hi All,

I am using a very time taking operation which returns around 2 to 3 lakh records. For this I was using SPLongOperation but it requires us to redirect somewhere when operation is completed

But as results need to be shown on same page this was failing. So I used session variable approach and saved these records in session variable and when user is redirected to same page i showed records from this variable.

But this approach also failed as sticky session is not maintained in environment and load balancer routes request to any WFE so sometimes this session variable is not found.

Is there any alternative for SPLongOperation or can I use something with Iframe or something to overcome this issue. I wont be able to change setting of load balancer for maintaining load sticky session.

Please help!!


Customizing the Performance Point Services (Dynamic report view) in Sharepoint 2010

$
0
0

Hi Guys,

My requirement is to place the OLAP grid bar which is present in Dynamicreportview.aspx, in the PPS dashboard page in sharepoint 2010.

How to achieve this in sharepoint?

Please suggest any workarounds ?

Thanks in Advance.

Thanks & Regards

Anil Kumar K

How to get PerformancePoint Filter "Key" and "Value" Programmatically?

$
0
0

Hi,

I would like to get a Performance Point Dashboard Filter "Key" and "Value" Programmatically.

Can anyone tell me?

It's frustrating like anything. Already i have had enough time for this. :(

Thanks in Advance,

Poomani Sankaran

How to display links yearly wise using OOTB webpart ?

$
0
0

Hello,

I have summry links webpart that shows list of links and its keep on increasing and occupying whole page.

In order to avoid it , I need to filter those links on yearly basis , meaning I want to keep filter for the year.

Is there any way to display links with year filter using OOTB functionality ?

Thanks and Regards,


Dipti Chhatrapati

Banner showing on library/list pages and not site pages

$
0
0

Hi everyone,

I am trying to insert a banner so it is visible on every page of my site and so I have customised my master page to do that in SPD.  Here is the code where I reference an image:-

<div id="s4-workspace">
<div id="s4-bodyContainer">
<div id="s4-titlerow" class="s4-pr s4-notdlg s4-titlerowhidetitle">
<div class="s4-title s4-lp">
<div class="s4-title-inner">

<table class="s4-titletable" cellspacing="0" style="background-image:url('../../images/SiteBanner7.png')">

The banner is showing on library and list pages but not on any of the main customer facing pages.  Does anyone have the solution?

Many thanks for any help

 

How to get items from folders and sub-folders in a SharePoint 2010 list using C# server object model

$
0
0

Hi,

I want to get all items from a SharePoint 2010  list (having folders and sub-folders in it) using C# and Server object model.

I can get  the items from the lists without having any folders but unable to get items from the folders and sub-folders present in the list.

Kindly help with some code.

Display Name of the User Programatically

$
0
0

Hi,

I am trying to get the display name of the user from the userid.

For this i have written the code as below,but still it is not displaying the display name,it is just displaying domain\userid.

Please let me know if i am doing any mistake

SPUser user = web.EnsureUser(@"domain\userid");

Console.WriteLine(user.Name.ToString());

(or)

SPUser user = web.SiteUsers["domain\\userid"];

Console.WriteLine(user.Name.ToString());

Regards,

Sudheer


Thanks & Regards, Sudheer


How to retrieve a id from SharePoint list item?

$
0
0

Hi,

Each SharePoint list item having id and value, now i want to retrieve a id from SharePoint list item.

how to retrieve a id from SharePoint list item?

Thanks in advance!


How to set filter in OOTB webpart?

$
0
0

Hello,

I have summry links webpart that shows list of links and its keep on increasing and occupying whole page.

In order to avoid it , I need to filter those links on yearly basis , meaning I want to keep filter for the year.

Is there any way to display links with year filter using OOTB functionality ?

Thanks and Regards,


Dipti Chhatrapati

Office Documents getting stuck in Drop off Library

$
0
0

Hi,

We have content organizer rule configured in one of our sites. When we upload any document in drop off library, they are moved to different document library depending on the rules written in Content organizer rule. 

This tend to work extremely well for .pdf files, but whenever we upload a office document like .docx, .xlsx etc.  they get stuck in there for eternity.

Workaround we found is that, when we edit the document and click save without doing any changes, processes the document and it gets moved from drop off library.

We were not able to find any concrete solution on net, can someone please help.

Thanks and regards

Debprotim Seal 

Add SPitem issue

$
0
0

Requirement: create SPlistitem for each submission date and start date for a customer. Submission and start dates are managed metadata fields and allows multiple values.

Code below updates submission date (from deadlinecollection) Okay but for the startbycollection it only sets the field for the last item in start date.

   foreach (TaxonomyFieldValue deadlineitem in deadlinecollection)

                       {

                           SPListItem submission = ilsubmissions.Add();

                          Submission ["Customer Number"] = ilreturn["CustomerNumber"].ToString();

                          foreach (TaxonomyFieldValue startbyitem in startbycollection)

                           {

                               

                               

                               string sdate = startbyitem.Label + "/" + returnyear;

                               DateTime startdate = Convert.ToDateTime(sdate);

                               Submission ["Start By"] = startdate;

                               submission.Update();

                           }

                           string date = deadlineitem.Label + "/" + returnyear;

                           DateTime returndate = Convert.ToDateTime(date);

                           submission["Submission Date"] = returndate;

                           submission.Update();

                       }

What am I doing wrong here?


nish

Creating Dashboard for General controls percentage

$
0
0

I dont know if this is possible as I am relitivly new to sharepoint.

I have a list that contains a unique row for each application we have in production.

I am trying to create a dashboard showing percent of application that are meeting General Control rules.

Currently I have 2 controls I would like to track.

The first is based on 2 fields field 1 is date application was "Deployed to Production" if that equals the date in the field "Integrity Checker Run" that row is a positive, if not it is a negitive. The percent should be percent of total application that are positive.

The second is easier I think as the filed is a list filed with 2 values yes/No, percent should be number of total applications that have a yes.

I do believe we are using Sharepoint 2010

Unable to delete the post list in Sharepoint 2013 Blog

$
0
0
I have migrated sharepoint 2010 blogs in SP 2013 Blogs.

Now i have duplicates of Post list and Categories,

Is there any possibility to delete the duplicates of them?

I found that it cannot be deleted

Please let me know as early as possible.

The MoveTo method does not accurately preserve version history

$
0
0

I know this is a tired story ;-) but this link says that one cannot update metadata (e.g. ModifiedBy) of previous versions of an SPListItem.

Using the MoveTo() method of the API does move both the current list item and all previous versions of course, that much is clear.

But, that method does not 100% preserve the Version History in that if, after it has moved a file, you were to look at the History via the UI, previous versions will have Modified set to the account under which the (in my case) console application has run to kick of the MoveTo process etc.

This differs from moving using the Content & Structure approach where everything is maintained 100%.

So I deduce that there must be some underlying code using the Content & Structure approach that differs from that using the MoveTo() method.? Is that the case?

And is the link at the start of this question correct? We cannot then programmatically change the metadata on old versions?

Thanks,


Maz

Problem in displaying enhanced rich text field's value

$
0
0

Hi,

We have enhanced rich text multi line text box. We are able to save/edit the field properly but facing a problem in displaying the field's value in the custom tab view web part. We have used numbering bullets in the rich textbox.

Now when we view that field directly on default load, it is displayed properly.

but as we switch the tab and come back to the tab having rich text field, the numbering bullets value is changed to '0' for every record.

How to display the rich text fields value?

Thanks in Advance.




Gridview sum for Particular User

$
0
0

Hi All,

I have one requirement ,Can any one suggest me.

I have One List In sharePoint i.e. Sample

But We need to display date user name with Sum like this:

Testing Test Hours

                       34.5(sum) not individual columns data.

Thanks..

File Count using SPFile Object

$
0
0

Hi,

I am trying to get the file count using through SPFile within the selected dates of date time controls as below.

But not able to get the count of the files in the folder as there is not count property in the SPFile object.

Please share your ideas/thoughts on the same.


                                foreach (SPFile file in oFolder.Files)
                                {                                    
                                  

                                    if ((file.TimeCreated > dtFromDate.SelectedDate) &&( file.TimeCreated<dtToDate.SelectedDate))
                                    {
                                        int filecount;                                    
                                        
                                        
                                    }

                                }

Regards,Sudheer


Thanks & Regards, Sudheer

Calling an external web service from SharePoint 2010

$
0
0

Hi Friends,

Idea is to call an external web service from SharePoint 2010 list.

Can we do this using visual studio 2010, how.

another pointers, please advise.

SharePoint Data into Oracle

$
0
0

Hello Techies,

One of my client asked us to check the feasibility to Read data from SharePoint and bind it in Oracle database.

Is there any provision for the same.

Any help will be appreciated

Create a subsite from event receveir of the type ItemAdd

$
0
0

Hi;

I have a event receveir on a ItemAdd and I would like to create a new subsite when a new item is added into a custom list (LIST).

I have tried this example (http://sharepoint247.com/sharepoint2010/sharepoint-2010-event-handler-to-create-subsites/) but not working for me.

My code source is :

base.ItemAdded(properties);

SPWeb web = properties.OpenWeb(); 
if (properties.List.Title == "LIST")  
  {  SPListItem curItem = properties.ListItem;

SPWeb newSite = web.Webs.Add("test", "test", "test", (uint)1033, "#$0", false, false); 
                   newSite.Update();
                   newSite.Close();

}

The command web.Webs.Add not working : any action and any error ?

Regards


Viewing all 11571 articles
Browse latest View live


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