Link to home
Start Free TrialLog in
Avatar of Matt Pinkston
Matt Pinkston

asked on

SP2010 Parent Child Relationship

I am having a problem getting the final piece of my parent child relationship working in my 2010 custom list.

 Using Parameters I have gotten the main page to connect to a secondary page but on the secondary page I have a link to an NewForm.aspx which is passed two fields:

 mID
 Gate

 My issue is when I add the record those fields are not filled... where am I going wrong?

 NewForm_Custom.aspx?mID={$Param1}&Gate=USPS Revisions

 Field mID in the table is a lookup to the parent table
 Field Gate is a simple choice field
Avatar of Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Flag of New Zealand image

Take a look at Mark Rackley's tutorial here.

There are several steps involved in the receiving form, including replacing the default form, replacing the default controls with text boxes and using JavaScript to move the url parameter to the text box.
Avatar of Matt Pinkston
Matt Pinkston

ASKER

This tutorial is great only issue is I get to Video 5 – Automatically Setting Parent ID field in Child List from Query String Variable

And the part where it says to right click on the variable to change it to a text box and then alter in text= in the code, when I right click it only gives me the option to change it to text not text box....
ASKER CERTIFIED SOLUTION
Avatar of Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial