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

Popup window

$
0
0

Hi All,

We have one requirement, When user click on Editentry item template button it opens in new window. When user clicks close button it should close automatically.

See attached screen shot.

Can any one suggest me how to approach this one'


GroupBy not working with list

$
0
0

I have data in my list such as:

12  testing
12  testing123
15 test
12  test456
15  one more
23
23


and I'm trying to only get the number but grouped so its not showing more then once in my UI. I tried:

<GroupBy collapse='TRUE'><FieldRef Name='Topic_ID'/></GroupBy>

and I get the Topic_ID of the first one several times, so it's returned as [12,12,12,12]

how can I get it to show as [12, 15, 23]?

SharePoint 2010 Development Using JQuery - Recommendations

$
0
0

Hello,

I'm new to using jQuery in SharePoint. Can anyone recommend good training (online training) that will teach me how to use jQuery in SharePoint 2010? My goal is to be able to customize forms and views. Am also very interested in Branding.

Thanks for your time.

ASP.NET API

$
0
0

We are wanting to integrate an API written in ASP into Sharepoint 2010.  Is this compatible with Sharepoint 2010?

error while editing a list item - SharePoint 2010.

$
0
0

Hi ,

i have 2 site collection one is read only site and another one is authoring site. both site collection are inside single web application and referring same content database.

when i try to edit a list item using authoring site i am getting the below error message. this is for all the lists in the site.

" the item is no longer available. it may have been deleted by another user. click ok to refresh the page."

i am able to edit the list items using read only site as an administrator.

please help me on these.

SharePoint 2010 Development - Creating Custom Forms without Having to use Visual Studio

$
0
0

Hello,

I'm looking for learning material (books, videos, training) that will show me how to create powerful custom forms WITHOUT having to use Visual Studio. I believe I would need to format column width, color, etc. as well as make REST/SOAP calls. Does anyone have any recommendations?

Display Linked Data Source

$
0
0

I created a Linked Data Source in SharePoint Designer 2010.  Is there any way to display the Link Data Source with a web part outside of SharePoint Designer?  I do not have enough rights to create a web part page in Designer.   Thanks!

David L. Crooks


When loading user control getting Error

$
0
0

Hi,
We have created user controls(.ascx)
When I click on Submit button in my page, I have to get dropdownlist values and I have to bind data to the gridview.

Some times we are getting below below error

"An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below."
 Again we refresh the page it's loding the page and displaying data in gridview.

See the attached screen shot.

Thanks in advance....

 

Apply custom master page for a new sub site in programming

$
0
0

Hi;

How Apply a custom master page for a new subsite ?

My code is as follows but it not working : the master page is not applied ?
SPWeb newSite = web.Webs.Add(name, name, name, Convert.ToUInt16(1036), "{815BF557-AFE0-42B4-92A1-A8A56011EDBF}#LaPoste.DTC.ModeleSite", false, false);
newSite.AllProperties["__InheritsCustomMasterUrl"] = "False";
newSite.CustomMasterUrl = "/_catalogs/masterpage/iDtc/iDtcGeneric.master";

newSite.AllowUnsafeUpdates = true;
newSite.Update();

Regards

How to check all subsites data through command prompt

$
0
0

I am using MOSS 2007 ,we don't have powershell,  I have to check the size of all subsites size. I run the command in command prompt

C:\programfiles\commanfiles\microsoftshared\webserverextensions\12\BIN>stsadm -o enumsubwebs -urlhttp://abc.xyz.com

I got all subsites urls, but i need all url's size also. How to do through command prompt?

sometimes Unable to find User User from UserProfile Programmatically (C#) in SharePoint 2007

$
0
0

Sometimes the code does not find the user from User profile. It simply checks theprofileManager.UserExists(userName[1]) and unable to fetch the user and executes the else part.

This issue is not regular. Most of the times it fetch the same user data correctly but sometimes fails.

What could be the possible reason of this and how to write it in the logs?

SPSecurity.RunWithElevatedPrivileges(delegate()

             {

                 using (SPSite site = new SPSite(SPContext.Current.Site.Url))

                 {

                     //ServerContext object current site

                     ServerContext context = ServerContext.GetContext(site);

                     //UserProfileManager object to access MOSS user profiles

                     UserProfileManager profileManager = new UserProfileManager(context, false);

                     string[] userName;

                     userName = objUserUtility.GetCurrentUserLoginName().Trim().Split('\\');

                     WriteToLog(userName[1].ToString());

if (profileManager.UserExists(userName[1]))

{

WriteToLog("Entered Inside");

WriteToLog(userName[1].ToString());

}

else

{

lblUserExist.Visible = true;

                         lblUserExist.Text = "You are not configured in the Application";

}


Vishal Goyal




Text 'type' appearing after selecting SharePoint Date time control on IE11 browser

$
0
0

Hi,

I am facing a UI issue with SharePoint Date time control on IE11 browser alone i.e.

After selecting the date from SharePoint date time control,it is displaying text as 'true' below the date time control.

I am not able to trace this because,in IE11 browser I am not able to see the Inspect elements to trace out.

So please share your ideas/thoughts to cross over the issue.

Regards,

Sudheer


Thanks & Regards, Sudheer

Working with large List

$
0
0

Hi Al

I am working in large list with almost 20k records in SP List and now based on business requirement I have to show 10k in the home page in an asp.net gridview ad it should be displayed in Home page and the application utilization is almost 60-70%.

Can someone please guide me on the best approach which shouldn't reduce the performance. 

Thanks & Regards

Rakesh

Format RSS Feed pubDate

$
0
0

I am using an RSS Web Part to display articles from a couple different Sharepoint sites. I am using the "pubDate" to return the date of the article followed by the title.

This has worked well for the most part.  I just want an equal number of characters in the date so that my list lines up nicely.

I'm currently using this code:
<ul><li><a href="{link}" target="_blank"><xsl:value-of select="ddwrt:FormatDate(pubDate,number($rss_LCID),1)"/> - <xsl:value-of select="title" /></a></li></ul>

  • 12/30/14 - Title A
  • 12/22/14 - Title B
  • 12/5/14 - Title C
  • 12/1/14 - Title D
  • 11/20/14 - Title E

I would like the date to have the same number of characters so that the dates and hyphens line up correctly. So basically I need to add a 0 to the days of 1-9 in each month.

Here is my whole XSL template code.

 <xsl:template name="RSSMainTemplate.body" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
            <xsl:param name="Rows"/>
            <xsl:param name="RowCount"/>
            <xsl:for-each select="$Rows">
                <xsl:variable name="CurPosition" select="position()" />
                <xsl:variable name="RssFeedLink" select="$rss_WebPartID" />
                <xsl:variable name="CurrentElement" select="concat($RssFeedLink,$CurPosition)" />
                <xsl:if test="($CurPosition &lt;= $rss_FeedLimit)">
                <div class="RSS" style="font-size:1.25em; font-family: Verdana, Arial, sans-serif">
   <ul><li><a href="{link}" target="_blank"><xsl:value-of select="ddwrt:FormatDate(pubDate,number($rss_LCID),1)"/> - <xsl:value-of select="title" /></a></li></ul>
</div>
</xsl:if>
</xsl:for-each>
</xsl:template>

Can we write client object model code with Server object model?

$
0
0

Hi everyone,

I have to create one timer job using client object model (C#) in Sharepoint 2010 template on feature activation. Is it possible to write the code of client object in sharepoint empty project to create timer job? If yes/no? then why?

Thanks in advance!!!


Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

$
0
0

HI

i created a farm solution and try to connect to sql server where sharepoint content databases exists, 

my web application enabled claims authentication 

when it try to connect to sql server it throws error 

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.


adil

When to use Managed Metadata service in Sharepoint 2013 and 2010

$
0
0

Hi Folks,

I have been working on sharepoint from quiet some time now. I have been using managed metadata service also.

What I have not been able to find out so far is when should I be using MMS.

What are the real advantages that I can draw out of it.

I have one application that has Managed Metadata installed and has various terms stores and terms. 

The Managed metadata service  created is utilized in search,

What I do not know is what is why are we using it at all. 

What is benefit of it.

Managed metadata service could also be used in navigation is what i know.

But what confused me is when is the best scenario to use it for navigation.

Why can we not use the navigation provider in the managed metadata service. 

There might be other uses also, but that is not clear to me.

Can any one tell me why and in which scenario to really use it.

I know how to configure the mms and how it works though the jargons around the managed metadata.

Regards

Powershell update Field Value without changing version number

$
0
0

I want to update a value in a field in a list for a lot of list items.

However, this list has major and minor versioning turned on, and an approval process.

When I update the field's value for all the required list items, I don't want the approval process to start and I don't want the version number to change.

How can I do this?

This is my code so far:

$siteUrl = "http://portal"
$listName = "list name"
$field1_Name = "category"

$web = Get-SPWeb -Identity $siteUrl
$list = $web.Lists[$listName]
$items = $list.Items
ForEach ($item in $items)
{
    if ($item[$field1_Name].ToString() -eq "testing") 
    {
 $url = [String]::Format("{0}/{1}",$web.Url, $item.File.URl)
     $file = $web.GetFile($url)
 $file.CheckOut()
 write-host $item.name
       $item[$field1_Name] = "testing again"
       $item.Update()
 $file.CheckIn("updated category name", [Microsoft.Sharepoint.SPCheckinType]::MajorCheckIn))
    }
}
$web.Dispose()

SharePoint 2010 document library - Add a link that points to a page

$
0
0

Hi

A department has created a document library. Now, they would like to have a link visible in that library that points to another .aspx page. Is that possible?

I've seen how to add a "link to a document", but I want to add a link to a page, not a document.

Thanks in advance,

Sonya

Excel web access webpart with selected named Items

$
0
0

Hi Guys,

I have a excel file with 8 charts on a worksheet. I have uploaded this file in a SharePoint document library. I need to display these charts to 4 different groups in a SharePoint site. I have opted to use Excel Web Access WebPart and will use Target Audience for this purpose.

My question is how can display/publish 2 items(charts) in each of the Excel Web Access WebPart as 'Named Item' property of Excel Web Access WebPart does not allow more than 1 item in it?


Thanks, Nilesh

Viewing all 11571 articles
Browse latest View live


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