Skip to main content
Subscribe to this solution

AlphanumericNavTable: add support for dynamic default values when creating a new record

Anonymous (not verified)
Published on: 13/05/2011 Discussion Archived

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.

Category

FeatureRequests

Comments

Anonymous (not verified) Mon, 01/08/2011 - 09:11

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.

Anonymous (not verified) Sun, 18/09/2011 - 13:23

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.