This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Querying results to be viewed in a tab.

mgalvan801 - Monday, July 11, 2011 7:14 PM:

I have an item type called parent, and the other item type is child. When in the child form, I can pick a parent and it will populate as a foreign item property. I was wondering if someone could point the way on having the parent have a tab that will grab all of the children that are using the parent?

 

Thank you,

 

MG



Brian - Tuesday, July 12, 2011 6:50 AM:

HI Marty,

I presume there is a reason that you want to do this with Foreign properties and not an ordinary relationship? The ordinary relationship from parent to child would give you this tab set up as a matter of course.

If you have a look at the "changes.html" form in the code tree under ../clients/scripts/changes.html you will see that this is a custom form that displays information in a grid on a tab under the Part item.

You can copy and customise this to do what you want. It's too involved to go through exactly how to do it in a forum box like this but basically you write a query in the html page that retreives the information you want. Populate the grid object and then call the form in the Relationship Type (see Part Changes relationship type).

Hope this helps,

Brian.



mgalvan801 - Tuesday, July 12, 2011 9:06 AM:

Hi Brian,

  I will give that a shot. Thank you.

 

Marty