The button "Add Related Data" should be hidden for a record if it cannot be selected there

burghard

Member
I have a list with a button for adding related data. For some of the records the dropdown field leaves empty if i choose to add a related data record. It is not possible to select the parent record for which I chose to add it. This is because the "Data where" clause of the database join element of the related data record filters it.

If no related data can be added to a record, the "add related data" button should not be rendered. Is this possible?
 
I'm sure it's possible, but it'd require some nitty gritty coding in the list model, in viewFormLink(), to call _getOptions() for the join element on the related list. Probably at least an hour or so, to implement and test.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top