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
$(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’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’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
“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?
]]>Please document what you find/figure out and share with the rest of us here. :0
Blessings,
Jim Bob
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
]]>