How to get fieldGroup's datasource in init

extends EntityCombinedScreen

image
two System.out is null

imageimage

this is fieldGroup and datasource

Hey!

It should be considered that getItem() returns a value only after screen is initialized with setItem() method. Until this moment, this method returns null, for instance when calling from inside init() or initNewItem().

See getItem method

Move your code to the postInit method.