Grid View With Relational Fields

How to add relational fileds into other objects listing Grid View??
Like, we want to display categores all fields into the products grid

You can use operators for the same.

I have used operators but it will return [object]


here, “name” is field of Category objects.

try this…

1 Like


and you can always use Operator PHP Code if Any Getter fails.
Then you only need to add a class which implements


Remember to return an object with a property value in getLabeledValue($element) ie:

public function getLabeledValue($element) {
$result = new \stdClass();
$result->value = ‘this is visible in a grid’;
return $result;