Setting a default value for a RealEdit column in grid

Hi Everyone,

I want to set a default value for a RealEdit column in a grid. This column has a data method tied to it which does a bunch of logic and processing. What I’d like to have done is have a value from another table be set as the default value for the column. What’s the best way to do that?

You can do it in init method in form like this:

AnotherTable anotherTable;

;

anotherTable = AnotherTable::find(this.Id);

this.Field1 = anotherTable.Field1;