Skip to main content

Use long field names also when loading from a dbf

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

When loading a dbf table there is no option to use customized field names, and I think there is no real reason for not letting doing so with the config dir. In fact, I think the code needed is quite simple, and it has worked perfectly for me: // Added to tables without Layer support, but must be supported alias // here also if (layer == null) { pathToken = Preferences.getAliasDir() + File.separator + dataName; fileAlias = new File(pathToken + ".alias"); } else {



Operating SystemLinux
Versionv0.8
Severityenhancement
ResolutionFixed

Category

Bugs

Comments

Anonymous (not verified) Wed, 06/04/2011 - 11:00

When the dbf is loaded from the Project Manager the name of the table is tablename.dbf, so you mush remove the extension before create the var fileAlias.

Anonymous (not verified) Wed, 06/04/2011 - 11:17

Now if dataName contains any dot, it gets the substring from the beginning to the last one.

Anonymous (not verified) Wed, 06/04/2011 - 11:40

The second version of the patch works correctly, commit it. Just a point. Next time try to avoid mix style changes with the patch itself to do revision easier.

Login or create an account to comment.