I think there should be the option to pass default values from code when opening a NavTable, so they can be determined by code. The patch I submit is a very simple one which works for me and I think should work for anyone who still uses the old constructors.
AlphanumericNavTable: add support for dynamic default values when creating a new record
Permalink
Login or create an account to comment.
Comments
As AbstractNavTable has now a setPosition method it seems there is no need for this patch any more. I've closed it but feel free to reopen and integrated if you feel it like strongly needed.
I reopen the bug. That's a different situation. setPosition allows open navtable in a predefined *existent* feature of the recordset. This patch allows open the alphanumeric *new* feature navtable view with some field already filled with the desired values. Common example: A form has jtable. The jtable shows some of the records of a dbf based on a kind of foreign key. If you provide an option to add a new record to the jtable with alphanumeric navtable it should be nice that the foreign key fields were already set.