SmartClient Version: SNAPSHOT_v9.0d_2013-04-25/PowerEdition Deployment (built 2013-04-25)
I'm trying to use an IntegerItem in a form to hold a Foreign Key value which is a Long. It simplifies creating a new record by simply getting the Form's record as in:
Record rec = myForm.getValuesAsRecord();
However I need to set value in the IntegerItem using
item.setDefaultValue(longVal.toString());
and then having a special case for that field name to convert the string back to a Long.
Is there a simpler way of adding a Long to a form as a Default value and retrieving the Long in the record of the form?
I'm trying to use an IntegerItem in a form to hold a Foreign Key value which is a Long. It simplifies creating a new record by simply getting the Form's record as in:
Record rec = myForm.getValuesAsRecord();
However I need to set value in the IntegerItem using
item.setDefaultValue(longVal.toString());
and then having a special case for that field name to convert the string back to a Long.
Is there a simpler way of adding a Long to a form as a Default value and retrieving the Long in the record of the form?
Comment