Comments on: SharePoint: Extending the DVWP – Part 26: Modifying the Edit Template http://www.endusersharepoint.com/2010/08/10/sharepoint-extending-the-dvwp-%e2%80%93-part-26-modifying-the-edit-template/ No GeekSpeak on SharePoint 2007 WSS and MOSS Mon, 27 Dec 2010 21:17:12 -0500 http://wordpress.org/?v=2.8.6 hourly 1 By: Jim Bob Howard http://www.endusersharepoint.com/2010/08/10/sharepoint-extending-the-dvwp-%e2%80%93-part-26-modifying-the-edit-template/comment-page-1/#comment-112544 Jim Bob Howard Thu, 18 Nov 2010 20:02:59 +0000 http://www.endusersharepoint.com/?p=9145#comment-112544 Hmm... I'll have to look at that. Here's what I'm guessing is happening: 1. The filtering column is passed to the form via the GenFireServerEvent. 2. The edit key is also passed to the form via the GenFireServerEvent. 3. The edit form action supplies a redirect URL for when the Save or Cancel button is clicked. That URL doesn't go through the GenFireServerEvent and doesn't include the filtering information. 4. Also, since the redirect is a URL, rather than a GenFireServerEvent, the filtering column isn't passed back to the form. Therefore, no filtering occurs. To retain the filter after editing (or inserting, for that matter), you will need to get that column filter information back to the DVWP. When I have a chance, I'll work on a solution for that and post an article here if I get it working. Hmm… I’ll have to look at that.

Here’s what I’m guessing is happening:

1. The filtering column is passed to the form via the GenFireServerEvent.
2. The edit key is also passed to the form via the GenFireServerEvent.
3. The edit form action supplies a redirect URL for when the Save or Cancel button is clicked. That URL doesn’t go through the GenFireServerEvent and doesn’t include the filtering information.
4. Also, since the redirect is a URL, rather than a GenFireServerEvent, the filtering column isn’t passed back to the form.

Therefore, no filtering occurs.

To retain the filter after editing (or inserting, for that matter), you will need to get that column filter information back to the DVWP.

When I have a chance, I’ll work on a solution for that and post an article here if I get it working.

]]>
By: Vijay http://www.endusersharepoint.com/2010/08/10/sharepoint-extending-the-dvwp-%e2%80%93-part-26-modifying-the-edit-template/comment-page-1/#comment-112530 Vijay Thu, 18 Nov 2010 17:45:37 +0000 http://www.endusersharepoint.com/?p=9145#comment-112530 Hi Jim, I have attached a document library to a dvwp and used the edit option. Then when I filtered the document library based on Location (name of column) and edit it, the filtering goes out and it shows all the documents. Is there a way I can retain the filter on the document library after editing. I was able to see only two options in the dvwp, expand by default or collapse by default, so i was kind of stuck. Thanks, Vijay. Hi Jim,
I have attached a document library to a dvwp and used the edit option. Then when I filtered the document library based on Location (name of column) and edit it, the filtering goes out and it shows all the documents. Is there a way I can retain the filter on the document library after editing. I was able to see only two options in the dvwp, expand by default or collapse by default, so i was kind of stuck.
Thanks,
Vijay.

]]>
By: Jim Bob Howard http://www.endusersharepoint.com/2010/08/10/sharepoint-extending-the-dvwp-%e2%80%93-part-26-modifying-the-edit-template/comment-page-1/#comment-104298 Jim Bob Howard Thu, 07 Oct 2010 12:52:23 +0000 http://www.endusersharepoint.com/?p=9145#comment-104298 Follow the discussion on paisleygo's question in the Stump the Panel forum: http://www.endusersharepoint.com/STP/viewtopic.php?f=9&t=1940&start=0 Blessings, Jim Bob Follow the discussion on paisleygo’s question in the Stump the Panel forum:

http://www.endusersharepoint.com/STP/viewtopic.php?f=9&t=1940&start=0

Blessings,
Jim Bob

]]>
By: paisleygo http://www.endusersharepoint.com/2010/08/10/sharepoint-extending-the-dvwp-%e2%80%93-part-26-modifying-the-edit-template/comment-page-1/#comment-104175 paisleygo Wed, 06 Oct 2010 18:36:09 +0000 http://www.endusersharepoint.com/?p=9145#comment-104175 I have set up my first edit template - and I am loving your articels about how to do this. BUT (there's always a but isn't there) I want to have paging for the webpart - and it isn't working properly when I add the "edit" feature. The paging is set to show things in batch of 50 - but as soon as you switch to the edit mode - its shows a little 1-17 at the bottom - and then when you save (or cancel) and go back to the normal view - the 1-17 is still there. Has anyone else run accross this? I have set up my first edit template – and I am loving your articels about how to do this. BUT (there’s always a but isn’t there) I want to have paging for the webpart – and it isn’t working properly when I add the “edit” feature. The paging is set to show things in batch of 50 – but as soon as you switch to the edit mode – its shows a little 1-17 at the bottom – and then when you save (or cancel) and go back to the normal view – the 1-17 is still there. Has anyone else run accross this?

]]>
By: Richard http://www.endusersharepoint.com/2010/08/10/sharepoint-extending-the-dvwp-%e2%80%93-part-26-modifying-the-edit-template/comment-page-1/#comment-100681 Richard Sat, 18 Sep 2010 04:45:50 +0000 http://www.endusersharepoint.com/?p=9145#comment-100681 Dear Jim, It is working now. At first, I tried to embed the CSS code directly onto the master page. It wouldn't work with the hosted site for some reason. So, I created a css file from notepad, and imported it into SP. After adding a link tag "" to the header in the master page to reference it, the CSS worked. Thank you. Richard Dear Jim,

It is working now. At first, I tried to embed the CSS code directly onto the master page. It wouldn’t work with the hosted site for some reason. So, I created a css file from notepad, and imported it into SP. After adding a link tag “” to the header in the master page to reference it, the CSS worked.

Thank you.

Richard

]]>
By: Richard http://www.endusersharepoint.com/2010/08/10/sharepoint-extending-the-dvwp-%e2%80%93-part-26-modifying-the-edit-template/comment-page-1/#comment-100625 Richard Fri, 17 Sep 2010 22:43:28 +0000 http://www.endusersharepoint.com/?p=9145#comment-100625 Hi Jim, IE-8 will render the CSS when accessing a local site on my development machine, but not a hosted site. SPD designer 2010, however, does render the CSS, even while accessing the hosted site. Do you have any idea why? Thank you. Hi Jim,

IE-8 will render the CSS when accessing a local site on my development machine, but not a hosted site. SPD designer 2010, however, does render the CSS, even while accessing the hosted site. Do you have any idea why?

Thank you.

]]>
By: SharePoint: Extending the DVWP – Bonus: Fixing the Insert Form Action When No Matching Items | EndUserSharePoint.com http://www.endusersharepoint.com/2010/08/10/sharepoint-extending-the-dvwp-%e2%80%93-part-26-modifying-the-edit-template/comment-page-1/#comment-100161 SharePoint: Extending the DVWP – Bonus: Fixing the Insert Form Action When No Matching Items | EndUserSharePoint.com Thu, 16 Sep 2010 15:49:18 +0000 http://www.endusersharepoint.com/?p=9145#comment-100161 [...] more information on working with the edit template, see Part 26 of the Extending the DVWP series: Modifying the Edit Template.) So is the insert template. It will look something like [...] [...] more information on working with the edit template, see Part 26 of the Extending the DVWP series: Modifying the Edit Template.) So is the insert template. It will look something like [...]

]]>
By: Jim Bob Howard http://www.endusersharepoint.com/2010/08/10/sharepoint-extending-the-dvwp-%e2%80%93-part-26-modifying-the-edit-template/comment-page-1/#comment-99871 Jim Bob Howard Wed, 15 Sep 2010 17:21:36 +0000 http://www.endusersharepoint.com/?p=9145#comment-99871 That will definitely work. The other thing you could do is search in your DVWP for a style tag and just add your CSS there. If you don't find an existing block, search for PlaceHolderTitleAreaClass and place it inside that tag set. (If it's empty [that is, it ends with />], you'll have to remove the '/' and then close the tag with </asp:Content> .) Blessings, Jim Bob That will definitely work.

The other thing you could do is search in your DVWP for a style tag and just add your CSS there. If you don’t find an existing block, search for PlaceHolderTitleAreaClass and place it inside that tag set. (If it’s empty [that is, it ends with />], you’ll have to remove the ‘/’ and then close the tag with </asp:Content> .)

Blessings,
Jim Bob

]]>
By: Richard http://www.endusersharepoint.com/2010/08/10/sharepoint-extending-the-dvwp-%e2%80%93-part-26-modifying-the-edit-template/comment-page-1/#comment-99861 Richard Wed, 15 Sep 2010 17:02:42 +0000 http://www.endusersharepoint.com/?p=9145#comment-99861 The tags were removed. (style type="text/css") /* CSS goes here */ (/style) - Replace the parenthesis with HTML tags. The tags were removed. (style type=”text/css”) /* CSS goes here */ (/style) – Replace the parenthesis with HTML tags.

]]>
By: Richard http://www.endusersharepoint.com/2010/08/10/sharepoint-extending-the-dvwp-%e2%80%93-part-26-modifying-the-edit-template/comment-page-1/#comment-99859 Richard Wed, 15 Sep 2010 16:57:25 +0000 http://www.endusersharepoint.com/?p=9145#comment-99859 Hello Jim, I also really appreciate your articles and have learned a lot. Thank you. I had trouble with the CSS because it is was completely new to me, but this worked. I wrapped the CSS code within this: /* CSS goes here */ , and placed it within a content editor web part on the page. Thanks again. Hello Jim,

I also really appreciate your articles and have learned a lot. Thank you. I had trouble with the CSS because it is was completely new to me, but this worked. I wrapped the CSS code within this: /* CSS goes here */ , and placed it within a content editor web part on the page. Thanks again.

]]>