Video code: https://suitecrm.com/suitecrm-developer-insights-record-thread-widgets/
Video tutorial: https://www.youtube.com/watch?v=3XOoVTpznyc&t=31s
According to this video, I implemented adding weight at the bottom of the record. But the one associated with the parent class is
'parentFilters' => [
'id' => 'parent_id',
],
But what I want to associate is not the id primary key, but other custom values ββ(custom_id, which may not exist, that is, it may be empty/null). If custom_id=empty/null, all data will be displayed (obviously wrong).
-
I use workflow to solve this problem. When I add a new record, the value of custom_id will be automatically filled. This can be solved, but it is a bit troublesome because there are too many modules involved.
-
I want to add a judgment in this video code. If custom_id=empty/null, return null and do not display bottom weight (but I donβt know how to write it at present)
-
Are there any other solutions?