Comments on: SharePoint: Extending the DVWP – Part 22: Creating Title Based on Other Fields with jQuery http://www.endusersharepoint.com/2010/07/27/sharepoint-extending-the-dvwp-%e2%80%93-part-22-creating-title-based-on-other-fields-with-jquery/ 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/07/27/sharepoint-extending-the-dvwp-%e2%80%93-part-22-creating-title-based-on-other-fields-with-jquery/comment-page-1/#comment-116423 Jim Bob Howard Thu, 09 Dec 2010 13:25:59 +0000 http://www.endusersharepoint.com/?p=8997#comment-116423 DC, I think you're close. But it's hard to post code here. I created a post in the Stump the Panel where we can talk it out: http://www.endusersharepoint.com/STP/viewtopic.php?f=16&t=2364 Blessings, Jim Bob DC,

I think you’re close. But it’s hard to post code here.

I created a post in the Stump the Panel where we can talk it out:
http://www.endusersharepoint.com/STP/viewtopic.php?f=16&t=2364

Blessings,
Jim Bob

]]>
By: dc http://www.endusersharepoint.com/2010/07/27/sharepoint-extending-the-dvwp-%e2%80%93-part-22-creating-title-based-on-other-fields-with-jquery/comment-page-1/#comment-116373 dc Thu, 09 Dec 2010 05:26:58 +0000 http://www.endusersharepoint.com/?p=8997#comment-116373 I have requirement to to fill a dropdwonlist on content editor webpart which data should come from a column of document library or list is there a way to do this with jquery i tried something like below but i m not getting where i m wrong. $(document).ready(function() { var soapEnv =" doclist "; $.ajax({url: window.location.protocol+"//"+window.location.hostname+":"+port+L_Menu_BaseUrl+"/_vti_bin/lists.asmx";type: "POST",dataType: "xml",data: soapEnv,complete: processResult,contentType: "text/xml; charset="utf-8""});}); function processResult(xData, status) { $(xData.responseXML).find("z\:row").each(function() { $('#mydropdown'). append($(""). attr("value",$(this).attr("ows_Title")). text($(this).attr("ows_Title"))); }); }; Thanks In advance. I have requirement to to fill a dropdwonlist on content editor webpart which data should come from a column of document library or list is there a way to do this with jquery i tried something like below but i m not getting where i m wrong.

$(document).ready(function() {
var soapEnv =” doclist “;
$.ajax({url: window.location.protocol+”//”+window.location.hostname+”:”+port+L_Menu_BaseUrl+”/_vti_bin/lists.asmx”;type: “POST”,dataType: “xml”,data: soapEnv,complete: processResult,contentType: “text/xml; charset=”utf-8″”});});

function processResult(xData, status) {
$(xData.responseXML).find(”z\:row”).each(function() {
$(’#mydropdown’).
append($(”").
attr(”value”,$(this).attr(”ows_Title”)).
text($(this).attr(”ows_Title”)));
});
};

Thanks In advance.

]]>
By: SharePoint: Extending the DVWP – Bonus: Creating a Title Based on Dropdowns with jQuery | EndUserSharePoint.com http://www.endusersharepoint.com/2010/07/27/sharepoint-extending-the-dvwp-%e2%80%93-part-22-creating-title-based-on-other-fields-with-jquery/comment-page-1/#comment-111299 SharePoint: Extending the DVWP – Bonus: Creating a Title Based on Dropdowns with jQuery | EndUserSharePoint.com Wed, 10 Nov 2010 15:00:23 +0000 http://www.endusersharepoint.com/?p=8997#comment-111299 [...] This question came in my email from Fernando: I used the code from your article, Extending the DVWP – Part 22: Creating Title Based on Other Fields in jQuery. [...] [...] This question came in my email from Fernando: I used the code from your article, Extending the DVWP – Part 22: Creating Title Based on Other Fields in jQuery. [...]

]]>
By: Brad http://www.endusersharepoint.com/2010/07/27/sharepoint-extending-the-dvwp-%e2%80%93-part-22-creating-title-based-on-other-fields-with-jquery/comment-page-1/#comment-107690 Brad Thu, 21 Oct 2010 20:57:42 +0000 http://www.endusersharepoint.com/?p=8997#comment-107690 I've been talking to myself here: http://www.endusersharepoint.com/STP/viewtopic.php?f=9&t=2040 and think I've made a lot of progess. I've added some standard validation and some business logic validation since my last post too, but since I was the only one on my thread and had seemed solve the problem I started with I haven't updated it. Thanks for your reply, Live Safely, Brad I’ve been talking to myself here: http://www.endusersharepoint.com/STP/viewtopic.php?f=9&t=2040 and think I’ve made a lot of progess.

I’ve added some standard validation and some business logic validation since my last post too, but since I was the only one on my thread and had seemed solve the problem I started with I haven’t updated it.

Thanks for your reply,

Live Safely,
Brad

]]>
By: Jim Bob Howard http://www.endusersharepoint.com/2010/07/27/sharepoint-extending-the-dvwp-%e2%80%93-part-22-creating-title-based-on-other-fields-with-jquery/comment-page-1/#comment-107687 Jim Bob Howard Thu, 21 Oct 2010 20:36:14 +0000 http://www.endusersharepoint.com/?p=8997#comment-107687 The hard part about using the ID when it contains {$Pos} is that that variable basically comes out to a '_1' or '_2', etc. It probably wouldn't give you very consistent results to search for an ID with that in it. I'm in Boston at SPTechCon, so I'll need to take a look at this tonight after the sessions are over. I'll think it through and see if I come up with something that will make a .each() work for all of the controls. Blessings, Jim Bob The hard part about using the ID when it contains {$Pos} is that that variable basically comes out to a ‘_1′ or ‘_2′, etc. It probably wouldn’t give you very consistent results to search for an ID with that in it.

I’m in Boston at SPTechCon, so I’ll need to take a look at this tonight after the sessions are over. I’ll think it through and see if I come up with something that will make a .each() work for all of the controls.

Blessings,
Jim Bob

]]>
By: Brad http://www.endusersharepoint.com/2010/07/27/sharepoint-extending-the-dvwp-%e2%80%93-part-22-creating-title-based-on-other-fields-with-jquery/comment-page-1/#comment-107625 Brad Thu, 21 Oct 2010 12:54:22 +0000 http://www.endusersharepoint.com/?p=8997#comment-107625 What would be the syntax to access the controls in a dvwp? "So, for the first lookup control: $("input[title=Location/Department]") finds the control, and… " The xsl has name of the id with the {$POS} appended, would be a way to have something like a for each loop? What would be the syntax to access the controls in a dvwp?

“So, for the first lookup control: $(”input[title=Location/Department]“) finds the control, and… ”

The xsl has name of the id with the {$POS} appended, would be a way to have something like a for each loop?

]]>
By: SharePoint: Extending the DVWP – Part 35: Putting it All Together | EndUserSharePoint.com http://www.endusersharepoint.com/2010/07/27/sharepoint-extending-the-dvwp-%e2%80%93-part-22-creating-title-based-on-other-fields-with-jquery/comment-page-1/#comment-99646 SharePoint: Extending the DVWP – Part 35: Putting it All Together | EndUserSharePoint.com Tue, 14 Sep 2010 14:37:30 +0000 http://www.endusersharepoint.com/?p=8997#comment-99646 [...] superfluous. It just tells us what data is in the relationship columns. We can let SharePoint fill that data in for us with jQuery. Alternately, we could fire up a workflow to do it [...] [...] superfluous. It just tells us what data is in the relationship columns. We can let SharePoint fill that data in for us with jQuery. Alternately, we could fire up a workflow to do it [...]

]]>
By: Jim Bob Howard http://www.endusersharepoint.com/2010/07/27/sharepoint-extending-the-dvwp-%e2%80%93-part-22-creating-title-based-on-other-fields-with-jquery/comment-page-1/#comment-92553 Jim Bob Howard Mon, 09 Aug 2010 12:48:09 +0000 http://www.endusersharepoint.com/?p=8997#comment-92553 Good questions, Greg. Please document what you find/figure out and share with the rest of us here. :0 Blessings, Jim Bob Good questions, Greg.

Please document what you find/figure out and share with the rest of us here. :0

Blessings,
Jim Bob

]]>
By: Greg http://www.endusersharepoint.com/2010/07/27/sharepoint-extending-the-dvwp-%e2%80%93-part-22-creating-title-based-on-other-fields-with-jquery/comment-page-1/#comment-91740 Greg Fri, 06 Aug 2010 19:17:38 +0000 http://www.endusersharepoint.com/?p=8997#comment-91740 Oh, did I mentioned that since I am using SP2010, I was wondering if - when 'inline editing' - there was a PreSave() action fopr the given row? Greg Oh, did I mentioned that since I am using SP2010, I was wondering if – when ‘inline editing’ – there was a PreSave() action fopr the given row?
Greg

]]>
By: Greg http://www.endusersharepoint.com/2010/07/27/sharepoint-extending-the-dvwp-%e2%80%93-part-22-creating-title-based-on-other-fields-with-jquery/comment-page-1/#comment-91739 Greg Fri, 06 Aug 2010 19:11:40 +0000 http://www.endusersharepoint.com/?p=8997#comment-91739 Jim Bob (and Marc if you peek in!), I have sort of a unique issue which I will briefly describe: - I have multiple lists - one being a 'GeoList' with Geographic information about 150+ projects (with adress, zip, Latitude and Longitude). The other lists are looking up to the GeoList via a unique project key. Thanks to SP2010, you can OOTB bring dynamically other fields from the same record I therefore have, in each of the 'child' lists, a look up to the GeoList and bringing multiple fields that I need - including Lat and Long field which are 'numbers' field in my GeoList. I do know how to create Aggregate DataSources using the DVWP - my restriction is that we are using the ESRI Mapping 3rd party webpart which is currently limited to using a single list as data source to create a map 'layer'. 2nd restriction is that the Lat and Long fields must be numeric values for the webpart to 'plot' them. Here is where it blows - when you do a lookup field to a numeric field - the value type returned is text... I am therefore looking at creating hidden numeric fields and feeding dynamicaly values from the lookup fields. I am going to look at either workflows or jQuery but would appreciate some advice regarding the following questions: * I have to do lookups from the child list to the geolist anyway so I am thinking of bringing my looked up Lat and Long fields (returned as text) and do the conversion then - it keeps the workflow/ jQuery within a single list. However, I only need the workflow and/or jQuery to run when the Lat Long 'original' fields are either created or edited and then push the new values to the various child list. If I have the workflow/ jQuery on the 'receiving'/ child lists side, I would have to run it more often that needed (do this make sense?) > should I have the workflow or jQuery initiation on the 'parent' list side or the child lists side? I think first option? * Lat and Long fields are numeric fileds with 6 decimals and I have 150 projects. I could have the code in the New and Edit forms but to be practical, users are going to populate or update them by either export/sync in Excel (via Excel 2007 addon) or in DataSheet view. I may have completely missed something in your series (which I am reading again), but is the DataSheet view something you can hook up some code. It is sort of a BulkEditCustom form question I guess... Thanks,Greg Jim Bob (and Marc if you peek in!),

I have sort of a unique issue which I will briefly describe:
– I have multiple lists – one being a ‘GeoList’ with Geographic information about 150+ projects (with adress, zip, Latitude and Longitude). The other lists are looking up to the GeoList via a unique project key. Thanks to SP2010, you can OOTB bring dynamically other fields from the same record
I therefore have, in each of the ‘child’ lists, a look up to the GeoList and bringing multiple fields
that I need – including Lat and Long field which are ‘numbers’ field in my GeoList.
I do know how to create Aggregate DataSources using the DVWP – my restriction is that we are using the ESRI Mapping 3rd party webpart which is currently limited to using a single list as data source to create a map ‘layer’. 2nd restriction is that the Lat and Long fields must be numeric values for the webpart to ‘plot’ them.

Here is where it blows – when you do a lookup field to a numeric field – the value type returned is text…

I am therefore looking at creating hidden numeric fields and feeding dynamicaly values from the lookup fields. I am going to look at either workflows or jQuery but would appreciate some advice regarding the following questions:

* I have to do lookups from the child list to the geolist anyway so I am thinking of bringing my looked up Lat and Long fields (returned as text) and do the conversion then – it keeps the workflow/ jQuery within a single list. However, I only need the workflow and/or jQuery to run when the Lat Long ‘original’ fields are either created or edited and then push the new values to the various child list. If I have the workflow/ jQuery on the ‘receiving’/ child lists side, I would have to run it more often that needed (do this make sense?)

> should I have the workflow or jQuery initiation on the ‘parent’ list side or the child lists side? I think first option?

* Lat and Long fields are numeric fileds with 6 decimals and I have 150 projects.
I could have the code in the New and Edit forms but to be practical, users are going to populate or update them by either export/sync in Excel (via Excel 2007 addon) or in DataSheet view.

I may have completely missed something in your series (which I am reading again), but is the DataSheet view something you can hook up some code. It is sort of a BulkEditCustom form question I guess…

Thanks,Greg

]]>