New topics: Your Pet, IOU, Baby IQ, The Poisons, Birther II, Games, Future Power

Welcome to the Tech Space!

Webmaster Issues

Skip to end of metadata
Go to start of metadata

Questions posted in Alpha Five forum: link

The answer is correct for the ID, but it doesn't answer the more general case.

Where exactly does the parent ID get entered into the child grid?

Can someone answer this question for filling in the field in the detail from something in the grid other than the ID of the parent?

I have a nesting of grids for tables of Project -> Group -> Item and on entering a new Item record with detail view in Item, I'd like to get the ID not just of the selected Group to fill in a field of Item (which works), but also put selected Project ID in a field in the new Item.

Thanks much!

Posted second version in: link

1) Where exactly does the parent ID get entered into the detail view when adding a new record to a grid?

2) How can I get the IDs for several grids nested above the detail view for a "New Record" being added, and put them in fields of the new record?

Details:

I have a nesting of grids (using Row Expanders) for tables of Project -> Group -> Item and on entering a new Item record with detail view in Item, I'd like to get the ID not just of the selected Group to fill in a field of Item (which works), but also put the selected Project ID (detailview -> parent_groupgrid -> parent_project.ID) in a field in the new Item.

I think I want to add something to Item Grid -> properties -> Javascript System Events, but not sure whether I should use canDetailViewNewRecord or something else, and what javascript should I use.

Thanks much!

Possibly related:

What I tried...

Tried this for initial value for a nested project_id field, but it wouldn't allow new record to get added from live preview:

 
={Grid.object}.getParentObject()._selectedRow._getValue('G','PROJECT_ID',{Grid.object}.getParentObject()._selectedRow)

Other interesting links:

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.