Hello,
I have a LookupField, Currency, with Currency Enum (USD, EUR). How can I preset (autofill) let say EUR (in order to not have to choose every time). The same question for Date field, how is possible to appear (autofill) current date.
Hello,
I have a LookupField, Currency, with Currency Enum (USD, EUR). How can I preset (autofill) let say EUR (in order to not have to choose every time). The same question for Date field, how is possible to appear (autofill) current date.
I already done. Thank you!
@Override
protected void initNewItem(Payment payment) {payment.setDate(new Date()); payment.setCurrency(PayCurrencyEnum.Eur); // super.initNewItem(item); }