I have the following two lines which work, but I don't understand why:
datasetUserRoles.Open();
datasetUserRoles.FieldByName(C_FIELD_ROLES).OnGetText :=
GetTextForUserRoles;
If I specify the OnGetText event handler after the Open(), some fetch
records should miss the event and not be formatted. However it seems
to work fine...
I've try adding a TStringField to the dataset with the event handler
before the Open(), but it abort in the event code saying that another
field in my SQL no longer exists, because in my handler I format the
field using some earlier field.
What am I missing ?