Comments on: SharePoint: Extending the DVWP – Part 25: Using an Audit Trail by Creating List Items with SPServices http://www.endusersharepoint.com/2010/08/05/sharepoint-extending-the-dvwp-%e2%80%93-part-25-using-an-audit-trail-by-creating-list-items-with-spservices/ 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: Richard http://www.endusersharepoint.com/2010/08/05/sharepoint-extending-the-dvwp-%e2%80%93-part-25-using-an-audit-trail-by-creating-list-items-with-spservices/comment-page-1/#comment-102567 Richard Tue, 28 Sep 2010 13:06:59 +0000 http://www.endusersharepoint.com/?p=9104#comment-102567 Thank you Jim. Thank you Jim.

]]>
By: Jim Bob Howard http://www.endusersharepoint.com/2010/08/05/sharepoint-extending-the-dvwp-%e2%80%93-part-25-using-an-audit-trail-by-creating-list-items-with-spservices/comment-page-1/#comment-102561 Jim Bob Howard Tue, 28 Sep 2010 12:41:07 +0000 http://www.endusersharepoint.com/?p=9104#comment-102561 Richard, When writing to the audit trail, I'm not pulling from the database; I'll scraping the content off the page with the jQuery. Depending on the control, notice I'm getting the .val() or .text() of the control itself. IOW, I'm getting what the user is seeing rather than what is going on behind the scenes. As for the >20 dropdown scenario, all of my cascading dropdowns were over 20. So you might want to test the <=20 options scenario following the logic above. Hope that helps a little. Blessings, Jim Bob Richard,

When writing to the audit trail, I’m not pulling from the database; I’ll scraping the content off the page with the jQuery. Depending on the control, notice I’m getting the .val() or .text() of the control itself. IOW, I’m getting what the user is seeing rather than what is going on behind the scenes.

As for the >20 dropdown scenario, all of my cascading dropdowns were over 20. So you might want to test the <=20 options scenario following the logic above.

Hope that helps a little.

Blessings,
Jim Bob

]]>
By: Richard http://www.endusersharepoint.com/2010/08/05/sharepoint-extending-the-dvwp-%e2%80%93-part-25-using-an-audit-trail-by-creating-list-items-with-spservices/comment-page-1/#comment-102502 Richard Mon, 27 Sep 2010 22:53:45 +0000 http://www.endusersharepoint.com/?p=9104#comment-102502 Hi Jim, In your audit list, all the lookup columns were changed to single line of text. How did you get the display text of the dropdown fields? When I reference a dropdown form field, I get the id of the selected option. Also, what happens to the form field reference when the control gets more than 20 options? Thanks. Hi Jim,

In your audit list, all the lookup columns were changed to single line of text. How did you get the display text of the dropdown fields? When I reference a dropdown form field, I get the id of the selected option. Also, what happens to the form field reference when the control gets more than 20 options? Thanks.

]]>
By: Richard http://www.endusersharepoint.com/2010/08/05/sharepoint-extending-the-dvwp-%e2%80%93-part-25-using-an-audit-trail-by-creating-list-items-with-spservices/comment-page-1/#comment-102491 Richard Mon, 27 Sep 2010 20:51:31 +0000 http://www.endusersharepoint.com/?p=9104#comment-102491 Thanks Jim! Thanks Jim!

]]>
By: Jim Bob Howard http://www.endusersharepoint.com/2010/08/05/sharepoint-extending-the-dvwp-%e2%80%93-part-25-using-an-audit-trail-by-creating-list-items-with-spservices/comment-page-1/#comment-100511 Jim Bob Howard Fri, 17 Sep 2010 14:45:07 +0000 http://www.endusersharepoint.com/?p=9104#comment-100511 Hi Richard, Sorry for not talking out the steps for that. In your Audit list, you'll need to create a Calculated Column (i.e. LastChange), which converts Modified to a string. =TEXT(Modified,"mm/dd/yyyy") Then in your main list (FTE for me), you'll have the "In this column:" for Last Change set to LastChange. Hope that helps. Blessings, Jim Bob Hi Richard,

Sorry for not talking out the steps for that.

In your Audit list, you’ll need to create a Calculated Column (i.e. LastChange), which converts Modified to a string.

=TEXT(Modified,”mm/dd/yyyy”)

Then in your main list (FTE for me), you’ll have the “In this column:” for Last Change set to LastChange.

Hope that helps.

Blessings,
Jim Bob

]]>
By: Richard http://www.endusersharepoint.com/2010/08/05/sharepoint-extending-the-dvwp-%e2%80%93-part-25-using-an-audit-trail-by-creating-list-items-with-spservices/comment-page-1/#comment-100508 Richard Fri, 17 Sep 2010 14:11:39 +0000 http://www.endusersharepoint.com/?p=9104#comment-100508 Hi Jim, I am having some difficulty with inserting an ID into the Last Change column. I tried it in the Document ready function. I have the id, but I can't place it in the column so that the date shows from the audit list instead. Is it a little complicated with Lookups? Thank you. Richard Hi Jim,

I am having some difficulty with inserting an ID into the Last Change column. I tried it in the Document ready function. I have the id, but I can’t place it in the column so that the date shows from the audit list instead. Is it a little complicated with Lookups?

Thank you.

Richard

]]>
By: SharePoint: Extending the DVWP – Part 35: Putting it All Together | EndUserSharePoint.com http://www.endusersharepoint.com/2010/08/05/sharepoint-extending-the-dvwp-%e2%80%93-part-25-using-an-audit-trail-by-creating-list-items-with-spservices/comment-page-1/#comment-99644 SharePoint: Extending the DVWP – Part 35: Putting it All Together | EndUserSharePoint.com Tue, 14 Sep 2010 14:36:56 +0000 http://www.endusersharepoint.com/?p=9104#comment-99644 [...] Now that our data is flowing well, we can set up an audit trail to capture any changes made to the list. [...] [...] Now that our data is flowing well, we can set up an audit trail to capture any changes made to the list. [...]

]]>
By: George W http://www.endusersharepoint.com/2010/08/05/sharepoint-extending-the-dvwp-%e2%80%93-part-25-using-an-audit-trail-by-creating-list-items-with-spservices/comment-page-1/#comment-92966 George W Tue, 10 Aug 2010 15:17:42 +0000 http://www.endusersharepoint.com/?p=9104#comment-92966 Jim: This is terrific !! More, please ! Jim:

This is terrific !!

More, please !

]]>
By: Tom Resing http://www.endusersharepoint.com/2010/08/05/sharepoint-extending-the-dvwp-%e2%80%93-part-25-using-an-audit-trail-by-creating-list-items-with-spservices/comment-page-1/#comment-92655 Tom Resing Mon, 09 Aug 2010 19:31:35 +0000 http://www.endusersharepoint.com/?p=9104#comment-92655 I haven't worked with OOTB Auditing much either, so I can't really compare the two other than what I've already said. However, I always prefer an OOTB approach first and then adapt if necessary. I haven’t worked with OOTB Auditing much either, so I can’t really compare the two other than what I’ve already said. However, I always prefer an OOTB approach first and then adapt if necessary.

]]>
By: Jim Bob Howard http://www.endusersharepoint.com/2010/08/05/sharepoint-extending-the-dvwp-%e2%80%93-part-25-using-an-audit-trail-by-creating-list-items-with-spservices/comment-page-1/#comment-92653 Jim Bob Howard Mon, 09 Aug 2010 19:26:38 +0000 http://www.endusersharepoint.com/?p=9104#comment-92653 Another thought, Tom... (Again, haven't worked with OOTB Auditing, so you'll have to correct me if I'm wrong...) Another benefit of using the jQuery option (given you manage the async possibilities) is that you can automatically type-cast content from your main list into your audit list, if they're different. For example, I set up my main list with several lookup site columns. But I want my audit list to store the text at the time of audit snapshot, so the corresponding columns in the audit are "single line of text." They copy right over and aren't dependent on the site columns staying the same in perpetuity. Your thoughts...? Blessings, Jim Bob Another thought, Tom…

(Again, haven’t worked with OOTB Auditing, so you’ll have to correct me if I’m wrong…)

Another benefit of using the jQuery option (given you manage the async possibilities) is that you can automatically type-cast content from your main list into your audit list, if they’re different.

For example, I set up my main list with several lookup site columns. But I want my audit list to store the text at the time of audit snapshot, so the corresponding columns in the audit are “single line of text.” They copy right over and aren’t dependent on the site columns staying the same in perpetuity.

Your thoughts…?

Blessings,
Jim Bob

]]>