Unable to edit field info after saving new table

Background: I’m running LibreOffice 7.1.4.2 on Windows 10, and created a database using the embedded HsqlDB database.

When I create a new table in design view, I have no problems editing and re-editing anything that appears there - the field name, field type, and other field settings.

But as soon as I save the table (and the design view stays open), all the field information becomes “locked” (for lack of a better word) and it is not possible to get a working editing cursor on any of the existing field information. I can add new fields and edit all the new information, but have been unable to find how to edit any existing field information after it has been saved. The same happens if I right-click on the table in the main window, and click “Edit” - the design view opens for that table, but none of the existing field information can be edited.

Shouldn’t I be able to edit my field information as I progress through the app development process?

Thanks for any insights anyone can share to fix this.

Which field information do you mean? I have created a table, filled in field name, field type, description and field properties. Saved this.

Then I reopened the table for editing. Could change all content. All this with LO 7.2.0.3 and also LO 7.1.5.2 on OpenSUSE 15.2 64bit rpm Linux and an embedded HSQLDB.

I’m referring to the information you see in the table design view. Field name, field type, field properties, etc. (See paragraph 2 of my original post.)

I just tried uninstalling LibreOffice and installing 7.2.x, and I still cannot edit existing field information. It’s all locked/disabled for editing once it’s been saved. I can only presume this must be normal behavior for the Windows version, then. (?)

Installing a new version doesn’t make a difference. Try to start LO in Safe Mode:
Help → Restart in Safe Mode… → Restart → Proceed Safe Mode
This will start your LibreOffice installation with a clear user profile. Then try it again in this mode.

Have tested it now also with embedded Firebird. I could create a table, could save the created table, could edit the fields, the description for a field from a table I reopened …

Seems we need somebody using windows to test this.

1 Like

Seems we need somebody using windows to test this.

Creating new fields and saving them, then editing them again works fine for me.

Base Tabelle Felder hinzufügen

However, I have now made no further changes regarding field type or description.

With me:
Base / HSQLDB
Version: 7.2.0.4 (x64) / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL


@twodawgs :

Use the tip from @RobertG

https://help.libreoffice.org/latest/en-GB/text/shared/01/profile_safe_mode.html

The buggy behavior seems to appear by changing old existing fields (like field “annotation” to “anno”) and adding a description to an existing field.

by changing old existing fields (like field “annotation” to “anno”) and adding a description to an existing field.

It makes no difference.

Base Tabelle Felder hinzufügen2

Hello @twodawgs ,

From the main Base screen, the bottom line is the status bar. What is displayed in the lower left corner?

Edit:

My thought here is that this is not an embedded but rather a split DB - that is what the description leads to.

Unfortunately, checking with a split DB using LO v7.2.0.4 on Ubuntu 20.04 there is a major issue. The directories get all screwed up with the database and jar directories getting much dropped. My guess here is it may have something to do with “ScriptForge”.

Edit 2:

Title is missing from Base main screen.

Can alternatively get title using:

GlobalScope.BasicLibraries.LoadLibrary("Tools")
Rem Get Document location
sPathURL = ThisDatabaseDocument.URL
sName = FileNameoutofPath(sPathURL)

@RobertG, tried your directions to try Safe Mode, and the table design view still does not allow me to edit the properties of existing fields. Thanks for the suggestion.

@twodawgs

What is on the lower left corner of status bar on main Base screen?

@Ratslinger,
Here’s a screen shot of my main screen. I considered using a split DB, but I’m too lazy to go through the steps of setting it up for that.

As for the missing title, can you explain a little more what you’re referring to?

Thank you for the response. Shoots down my thought. Your description of table editing is like a split db. Have not experienced this in an embedded DB.

Haven’t checked under Windows but on Linux the file name is missing from the title bar. This is used in at least one macro dealing with split databases and I use it in a portable version with Firebird external.

You haven’t added any HSQLDB .jar files to the Base Class Path have your?

@Hrbrgr, thanks for the demo. As long as I know that’s what it’s supposed to do, I’ll keep trying…

Also, can you post a copy of that Base file (I imagine there is no data in there yet)?

Right, it’s just for testing, but it does replicate the issue on my computer.
test-02.odb (2.2 KB)

I also noticed a sub-folder with the same name that was created, that contains two more files:
test-02.properties and test-02.script. Do you need those, as well?

There is no table in the file you attached…

I also noticed a sub-folder with the same name that was created, that contains two more files:
test-02.properties and test-02.script. Do you need those, as well?

Split file gone bad.

@twodawgs

Your last comment and the sample provided indicate a split database. Those extra files are supposed to be in the Base file when using embedded. The Base file you posted had no table in it. I imagine it is in the other files you have.

Try the attached. Download and place in a different directory and see it you can edit my simply table. If not, will need to look at something else on your system.

test-02.odb (3.5 KB)

I saved your odb file in a different directory and opened it. Here are the results:

  • When I opened your test-02.odb, Base created a subfolder with the same name and generated files with the same file name specs as I mentioned previously.

  • I opened the table in Design View, and still was not able to edit previously saved field info.
    Animation

So we’ve gotten a little farther with figuring this out - and I’m very grateful for your help with this, I would have had no clue otherwise. The question now is, when I’m creating a new database and choose “Embedded database” as the database platform and “Embedded HsqlDB Driver” for the database driver, why would Base create a split database?

One thing that may be a factor is, when I had v 7.1.x of LibreOffice, I upgraded the HsqlDB driver to a more recent version, just because 7.2.x still had not come out by then and I just wanted a more recent version. However, I did not do this with the intent of using split databases, and did none of the steps involved in configuring Base for split databases (that I’m aware of). Still, could that have fouled up something? And would that still affect my current installation of it, now that I have a clean install of v 7.2.x? I made sure the driver I installed was deleted, and the current install now uses whatever comes “out of the box”.

@twodawgs

Note that there is no HSQLDB driver to update with LO. The embedded database provided is a very old version (v1.8) and using a different version requires using a different process.

It sounds as if you have some macro installed and this is creating the additional sub directories and files. Also would be interested in knowing just what you did in “upgrading the HsqlDDB driver”.

For another test, rename your user profile → LibreOffice user profile and then try to create another HSQLDB embedded Base file as you just did.