What’s the best practice method to get the most recent (previous) BDO into the Initialization Form?
JPQL is short of many functions, not least get 1 record
Select Top 1 * from table t order by t.somekey
I’ve tried
Select t from table t where t.persistenceId = MAX(t.persistenceId)
which fails on the aggregate function MAX()
Having to create a false data variable, passing it to the form and then calling REST doesn’t make sense just to get the last record…
We would rather just call getLastRecord and be done with it.
Anyone got a best practice for this?
Thanks and regards
Seán