Comments on: Creating a SharePoint List Parent / Child Relationship – Out of the Box http://www.endusersharepoint.com/2009/10/02/creating-a-sharepoint-list-parent-child-relationship-out-of-the-box/ No GeekSpeak on SharePoint 2007 WSS and MOSS Mon, 19 Jul 2010 15:54:29 -0400 http://wordpress.org/?v=2.8.6 hourly 1 By: Brigitte http://www.endusersharepoint.com/2009/10/02/creating-a-sharepoint-list-parent-child-relationship-out-of-the-box/comment-page-1/#comment-75076 Brigitte Wed, 16 Jun 2010 20:48:28 +0000 http://www.endusersharepoint.com/?p=2364#comment-75076 I've been trying to follow your example but I can't get the NewForm.aspx to display the IssueID. I can see where it gets passed on in the URL, but the IssueID field remains empty. I've noticed where you've created this field as a number content type with calculated value as default. Every time I select this setting it reverts back to the number value default. Any ideas what I'm missing? Any help is greatly appreciated. I’ve been trying to follow your example but I can’t get the NewForm.aspx to display the IssueID. I can see where it gets passed on in the URL, but the IssueID field remains empty. I’ve noticed where you’ve created this field as a number content type with calculated value as default. Every time I select this setting it reverts back to the number value default. Any ideas what I’m missing? Any help is greatly appreciated.

]]>
By: SharePoint list parent child relationship « Discover SharePoint http://www.endusersharepoint.com/2009/10/02/creating-a-sharepoint-list-parent-child-relationship-out-of-the-box/comment-page-1/#comment-53805 SharePoint list parent child relationship « Discover SharePoint Fri, 09 Apr 2010 03:02:05 +0000 http://www.endusersharepoint.com/?p=2364#comment-53805 [...] http://www.endusersharepoint.com/2009/10/02/creating-a-sharepoint-list-parent-child-relationship-out... [...] [...] http://www.endusersharepoint.com/2009/10/02/creating-a-sharepoint-list-parent-child-relationship-out... [...]

]]>
By: jriesen http://www.endusersharepoint.com/2009/10/02/creating-a-sharepoint-list-parent-child-relationship-out-of-the-box/comment-page-1/#comment-47243 jriesen Thu, 18 Mar 2010 19:37:45 +0000 http://www.endusersharepoint.com/?p=2364#comment-47243 Pardon my ignorance, but you mentioned that you can disable the NewForm.aspx so users can't accidentally add items. How do you disable that page exactly? Pardon my ignorance, but you mentioned that you can disable the NewForm.aspx so users can’t accidentally add items. How do you disable that page exactly?

]]>
By: KP http://www.endusersharepoint.com/2009/10/02/creating-a-sharepoint-list-parent-child-relationship-out-of-the-box/comment-page-1/#comment-43822 KP Tue, 09 Mar 2010 16:44:14 +0000 http://www.endusersharepoint.com/?p=2364#comment-43822 Hi Mark, great post! I've got two lists in which items are linked by a field whose display name is "NC ID". When I'm creating the parameter for the filter I'm using the internal name of the field "NC_x0020_ID" but the filter doesn't seem to work. The parameter bindings are as follows: Am I missing something here? I've used your solution to filter on columns that don't have spaces in the name and everything works great. Any advice/info would be greatly appreciated, rgds, KP Hi Mark,

great post!

I’ve got two lists in which items are linked by a field whose display name is “NC ID”. When I’m creating the parameter for the filter I’m using the internal name of the field “NC_x0020_ID” but the filter doesn’t seem to work. The parameter bindings are as follows:

Am I missing something here?

I’ve used your solution to filter on columns that don’t have spaces in the name and everything works great.

Any advice/info would be greatly appreciated,

rgds,

KP

]]>
By: Tahir http://www.endusersharepoint.com/2009/10/02/creating-a-sharepoint-list-parent-child-relationship-out-of-the-box/comment-page-1/#comment-25100 Tahir Mon, 18 Jan 2010 23:16:22 +0000 http://www.endusersharepoint.com/?p=2364#comment-25100 I might add something here: http://mysplist.blogspot.com/2009/12/inner-join-two-lists-using-sharepoint.html I might add something here:

http://mysplist.blogspot.com/2009/12/inner-join-two-lists-using-sharepoint.html

]]>
By: Setting SharePoint Form Fields Using Query String Variables Without Using JavaScript | End User SharePoint http://www.endusersharepoint.com/2009/10/02/creating-a-sharepoint-list-parent-child-relationship-out-of-the-box/comment-page-1/#comment-18623 Setting SharePoint Form Fields Using Query String Variables Without Using JavaScript | End User SharePoint Tue, 03 Nov 2009 17:28:20 +0000 http://www.endusersharepoint.com/?p=2364#comment-18623 [...] Query String Variables Using SPD – Follow Up on Creating Parent / Child List RelationshipsCreating a SharePoint List Parent / Child Relationship - Out of the BoxSharePoint Date Filter: Filtering a List by Greater Than or Equal to [...] [...] Query String Variables Using SPD – Follow Up on Creating Parent / Child List RelationshipsCreating a SharePoint List Parent / Child Relationship – Out of the BoxSharePoint Date Filter: Filtering a List by Greater Than or Equal to [...]

]]>
By: Ed Vega http://www.endusersharepoint.com/2009/10/02/creating-a-sharepoint-list-parent-child-relationship-out-of-the-box/comment-page-1/#comment-18559 Ed Vega Mon, 02 Nov 2009 19:00:57 +0000 http://www.endusersharepoint.com/?p=2364#comment-18559 All comments were usefull and Mark example was great, it works for me, thank you All. Ed Vega All comments were usefull and Mark example was great, it works for me, thank you All.

Ed Vega

]]>
By: Nasir Khan http://www.endusersharepoint.com/2009/10/02/creating-a-sharepoint-list-parent-child-relationship-out-of-the-box/comment-page-1/#comment-18164 Nasir Khan Tue, 20 Oct 2009 07:49:00 +0000 http://www.endusersharepoint.com/?p=2364#comment-18164 Hi Amjad, Thanks for your help. I have applied your suggestions but on line# four I only delete </EM> tags and leave rest as object required. My code still not worked but after adding one line of code it works. It basically force/puch the body to execute the included javascript method on load. i.e. _spBodyOnLoadFunctionNames.push("fillDefaultValues"); You include from line 2 to Line 11 of above mentioned script in function name "fillDefaultValues()" and try, it works. Thanks. With Regards, Nasir Khan Hi Amjad,

Thanks for your help. I have applied your suggestions but on line# four I only delete tags and leave rest as object required. My code still not worked but after adding one line of code it works. It basically force/puch the body to execute the included javascript method on load. i.e.

_spBodyOnLoadFunctionNames.push(”fillDefaultValues”);

You include from line 2 to Line 11 of above mentioned script in function name “fillDefaultValues()” and try, it works. Thanks.

With Regards,

Nasir Khan

]]>
By: Nasir Khan http://www.endusersharepoint.com/2009/10/02/creating-a-sharepoint-list-parent-child-relationship-out-of-the-box/comment-page-1/#comment-18162 Nasir Khan Tue, 20 Oct 2009 07:41:09 +0000 http://www.endusersharepoint.com/?p=2364#comment-18162 Hi Amjad, Thanks for your help. I have applied your suggestions but on line# four I only delete </EM> tags and leave rest as object required. My code still not work but after adding one line of code which basically force/puch the body to execute the method onload. I am adding the complete script. If anybody has problem in above given code then try this one :) <!-- _spBodyOnLoadFunctionNames.push("fillDefaultValues"); function fillDefaultValues() { var qs = location.search.substring(1, location.search.length); var args = qs.split("&"); var vals = new Object(); for (var i=0; i < args.length; i++) { var nameVal = args[i].split("="); var temp = unescape(nameVal[1]).split('+'); nameVal[1] = temp.join(' '); vals[nameVal[0]] = nameVal[1]; } setValueForFieldName("IssueID", vals["IssueID"]); function setValueForFieldName(fieldName, value) { if (value == undefined) return; var theInput = getTagFromIdentifierAndTitle("input","",fieldName); theInput.value = value; } function getTagFromIdentifierAndTitle(tagName, identifier, title) { var len = identifier.length; var tags = document.getElementsByTagName(tagName); for (var i=0; i < tags.length; i++) { var tempString = tags[i].id; if (tags[i].title == title && (identifier == "" || tempString.indexOf(identifier) == tempString.length - len)) { return tags[i]; } } return null; } } --> Hi Amjad,

Thanks for your help. I have applied your suggestions but on line# four I only delete tags and leave rest as object required. My code still not work but after adding one line of code which basically force/puch the body to execute the method onload. I am adding the complete script. If anybody has problem in above given code then try this one :)

<!–

_spBodyOnLoadFunctionNames.push(”fillDefaultValues”);

function fillDefaultValues()
{

var qs = location.search.substring(1, location.search.length);
var args = qs.split(”&”);
var vals = new Object();
for (var i=0; i < args.length; i++) {
var nameVal = args[i].split("=");
var temp = unescape(nameVal[1]).split('+');
nameVal[1] = temp.join(' ');
vals[nameVal[0]] = nameVal[1];
}
setValueForFieldName("IssueID", vals["IssueID"]);
function setValueForFieldName(fieldName, value) {
if (value == undefined) return;
var theInput = getTagFromIdentifierAndTitle("input","",fieldName);
theInput.value = value;
}
function getTagFromIdentifierAndTitle(tagName, identifier, title) {
var len = identifier.length;
var tags = document.getElementsByTagName(tagName);
for (var i=0; i < tags.length; i++) {
var tempString = tags[i].id;
if (tags[i].title == title && (identifier == "" || tempString.indexOf(identifier) == tempString.length – len)) {
return tags[i];
}
}
return null;
}
}

–>

]]>
By: Nasir Khan http://www.endusersharepoint.com/2009/10/02/creating-a-sharepoint-list-parent-child-relationship-out-of-the-box/comment-page-1/#comment-18149 Nasir Khan Mon, 19 Oct 2009 20:32:05 +0000 http://www.endusersharepoint.com/?p=2364#comment-18149 Hi Amjad, Thanks for your help. I have followed your guideline and its work. However, I only delete </EM> tags from line 4 as object creation is required. I have also added one line of code after javascript begining tag which force/puch the body to execute the function on load. _spBodyOnLoadFunctionNames.push("fillDefaultValues"); If the above code does not work for anybody then try this one. _spBodyOnLoadFunctionNames.push("fillDefaultValues"); function fillDefaultValues() { var qs = location.search.substring(1, location.search.length); var args = qs.split("&"); var vals = new Object(); for (var i=0; i < args.length; i++) { var nameVal = args[i].split("="); var temp = unescape(nameVal[1]).split('+'); nameVal[1] = temp.join(' '); vals[nameVal[0]] = nameVal[1]; } setValueForFieldName("IssueID", vals["IssueID"]); function setValueForFieldName(fieldName, value) { if (value == undefined) return; var theInput = getTagFromIdentifierAndTitle("input","",fieldName); theInput.value = value; } function getTagFromIdentifierAndTitle(tagName, identifier, title) { var len = identifier.length; var tags = document.getElementsByTagName(tagName); for (var i=0; i < tags.length; i++) { var tempString = tags[i].id; if (tags[i].title == title && (identifier == "" || tempString.indexOf(identifier) == tempString.length - len)) { return tags[i]; } } return null; } } Hi Amjad,

Thanks for your help. I have followed your guideline and its work. However, I only delete tags from line 4 as object creation is required. I have also added one line of code after javascript begining tag which force/puch the body to execute the function on load.

_spBodyOnLoadFunctionNames.push(”fillDefaultValues”);

If the above code does not work for anybody then try this one.

_spBodyOnLoadFunctionNames.push(”fillDefaultValues”);

function fillDefaultValues()
{

var qs = location.search.substring(1, location.search.length);
var args = qs.split(”&”);
var vals = new Object();
for (var i=0; i < args.length; i++) {
var nameVal = args[i].split("=");
var temp = unescape(nameVal[1]).split('+');
nameVal[1] = temp.join(' ');
vals[nameVal[0]] = nameVal[1];
}

setValueForFieldName("IssueID", vals["IssueID"]);
function setValueForFieldName(fieldName, value) {
if (value == undefined) return;
var theInput = getTagFromIdentifierAndTitle("input","",fieldName);
theInput.value = value;
}

function getTagFromIdentifierAndTitle(tagName, identifier, title) {
var len = identifier.length;
var tags = document.getElementsByTagName(tagName);
for (var i=0; i < tags.length; i++) {
var tempString = tags[i].id;
if (tags[i].title == title && (identifier == "" || tempString.indexOf(identifier) == tempString.length – len)) {
return tags[i];
}
}
return null;
}
}

]]>