I need to customize the list of element shows in a popupview based on a relation.
I have these modules:
A->x (one-to-many)
A->y (one-to-many)
x
have a related field to y
In detailview of A
, a have the subpanels for x
and y
modules and I can create new x
records and y
records from quickcreateview.
In quickcreateview for y
, I have to select by popupview an x
element.
I have to customize this popupview for showing only x
items that have relation with current (this detailview) A record (not all)
This solution is valid for me: How I can customize query in view.popup in SugarCRM
but I need to create a query with a dynamic param with A.id