- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2017 05:39 AM
We have a parent table (x_datrp_maintenanc_parent_datalink_contract) and a child table (u_datalink_contract_item). The following relationship script allows me to display all related child records from the parent form by pulling all child contracts that have the same contract number, company, and coverage type manufacturer.
current.addQuery('u_dynamics_ax_contract_number', parent.getDisplayValue('u_insight_contract_number')).addCondition('company', parent.getValue('u_company')).addCondition('u_coverage_type_manufacturer', parent.getValue('u_manufacturer'));
Now I want to be able to display all attachments from the child table records, from the parent form. I know the table is sys_attachment.
I don't think I can create the same kind of "Query With" relationship since there are three tables involved. Do I need to create a custom query using an advanced relationship? Would I put the code in "query from"? Anyone have a code example of this?
Thanks
David Wilhelm
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2017 05:48 AM
David,
If I understand the question. You want to display all attachments related to parent table child records as a related list on the parent form.
Below is what I did for all Project attachments at the project level. Line 5 through 10 will need to be reworked on what you are doing but atleast you might be bale to use the setup I did.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2023 01:26 AM
This actually helped me in creating a new related list by filtering the records associated with records in an existing related list.
So I was basically talking to an existing related list instead of the "parent" to get the records into a new related list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2023 02:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2017 06:58 AM
I'm trying to add a child relationship related tab on the parent form. In this way, the user will be able to see all of the attachments for the child contracts in the list, instead of having to click through hundreds of child contract records to find the attachment they are looking for.