Tag Info

Hot answers tagged

4

You would need to create your own subclass the DataFormWebPart. Once that is done, you can expose simple text properties by adding attributes like these to the WebPart property that you wish the user to be able to change. [WebBrowsable, WebDisplayName("User name"), WebDescription("The Full Username"), Category("SomeCategory"), ...


3

First of all, OOTB WebParts are not officially supported to work on Application Pages in SharePoint. As I was told, it could be learned from official MS course 10232. And despite of that webparts in Application Pages actually will work in some cases, there are many potential problems with them. For instance, if you provide XslLink to a OOTB XSLT-webpart, ...


3

Open the web part page that contains the web part in question. In the web part parameters in Sharepoint Designer, you create a new query string parameter. Then you filter the web part so that your desired column is filtered by that parameter. Then you pass in the desired value in the query string and you should get the desired results.


2

You can do this by adding a Data View Web Part (DVWP) to the page in SharePoint Designer. In your DVWP you'd use an AggregateDataSource containing both the parent and child lists. The DVWP can grab the item ID from the Query String and use it as a filter value. It sounds like what I'm proposing is what you're already doing, perhaps, but this should at least ...


1

If you could implement the drop-down boxes in client side code (which also might be a nicer user experience) you should have a look at cascaded drop-downs from SPServices on codeplex.


1

I finally found the solution (helped by Marc and this blog post). Steps to success : Open in SPD the OOB dispform.aspx of the parent list In the same page, add a standard XsltViewWebPart or a DataFormWebPart. Use WebPart connexions to filter the data (Consume a filter from the OOB listformwebpart) This may also work with filtering data from the url ...


1

Apply the hotfix 953749 of WSS3.0 on code of form change the tag xsl named dvt_1 for this <xsl:template name="dvt_1"> <xsl:variable name="dvt_StyleName">ListForm</xsl:variable> <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/> <div> <span id="part1"> <table ...


1

Well following spending lots of time witnessing the above. Turns out simply putting the 'AssignedTo' in the ViewFields part of the query fixed the issue! Even though I'm not using the field for display the issue was fixed by adding it. The underlying fields are still different but SharePoint DOES KNOW THIS after all and the huge query produced references ...


1

This is what you'll need using ID's: CopyUtil.aspx (what's in a name, right?) http://weblogs.asp.net/jan/archive/2008/02/26/copyutil-aspx-a-little-sharepoint-gem.aspx


1

You shouldn't need to use the /../../ method if you are directing to a _layouts page. You could simply do it as (not fully tested, going from memory): <a href="http://your.spdomain.com/{@FileDirRef.urlencodeasurl}/_layouts/listform.aspx?PageType=4&ListId={@ListId}&ID={@ID}">text</a>


1

I assume you have setup User Profile Syncronization. There is a Filter Web Part for that, which should be able to benefit you from the Connectable web parts framework. Have a look here to see how is being used http://www.bjw.co.nz/developer/sharepoint-2010/97-using-a-current-user-filter-on-a-list To filter out items based on assigned permissions you could ...


1

If I understand you correctly you're inheriting from a Web Part which has XSLLink in the Category Miscellanous and you want to move it to Visual Settings. You should be able to do that like this: [WebBrowsable(true), Personalizable(PersonalizationScope.Shared)] [WebDisplayName("XSL Link")] [WebDescription("Link to XSLT")] [Category("Visual Settings")] ...


1

This sounds like it may be the double hop issue. In this instance you're asking the web server to impersonate the user with a request to another web service (regardless of whether its on the same machine or not) Unless you're using Kerberos, then you won't be able to use windows authentication as NTLM won't delegate. The fact that when you set a Username ...


1

It's interesting question. If you examine the code of RaisePostBackEvent method of DataFormWebPart class you will see the processing of such actionas as _connect, _update, _insert, _commit, _cancel, _refresh, _delete, _redirect and some others. For example on __redirect command DataFormWebPart executes the following code: else if ...


1

I was exploring this last week and have not found any way to make the URL dynamic. I tried the same methods. The only viable solution I found was to create it with jQuery and SPServices, as SPServices uses the current site as the default when hitting the web services. This comes with the detriment that everything is done client side rather than server ...



Only top voted, non community-wiki answers of a minimum length are eligible