Right now, when you want to use a similar logic you have to copy the code instead of reusing it or you have to set the DefaultValue directly with gridField.getVO().defaultValue = …
Giving a more intuitive option to set the GridField default value programmatically using a method would open many possibilities for plug-in and form developers and improve code.
From Mattermost thread: https://mattermost.idempiere.org/idempiere/pl/woaahi69rtbu3qeaje5yedjq4h
Right now, when you want to use a similar logic you have to copy the code instead of reusing it or you have to set the DefaultValue directly with gridField.getVO().defaultValue = …
Giving a more intuitive option to set the GridField default value programmatically using a method would open many possibilities for plug-in and form developers and improve code.