Hello,
I’m hoping someone can help me resolve a problem reloading subforms in the “FilmsSeries” document form for this (partial) DB of LibreOffice Base.
Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
OS: Windows 11 X86_64 (10.0 build 26100)
Tester.odb (538.3 KB)
Main form frm-FilmsSeries: TFilmsSeries table
- Subform sfrm-Acteurs: query qsf_Acteurs
- Subform sfrm-Actrices: query qsf_Actrices
Table control cntr-ActeursSelection of the sfrm-Acteurs subform:
- Acteurs column (List Box): jIDactor table field from the JTActeursFS table, query ql_ActeursName
- Year column (List Box): jIDactor table field from the JTActeursFS table, query ql_ActeursYear
- Role column (List Box): jIDRole table field from the JTActeursFS table, query ql_Roles
Table control cntr-ActricesSelection of the sfrm-Actrices subform:
- Actrices column (List Box): jIDActeur table field from the JTActricesFS table, query ql_ActricesName
- Year column (List Box): jIDActrice table field from JTActricesFS table, query ql_ActricesYear
- Role column (List Box): jIDRole table field from JTActricesFS table, query ql_Roles
The ReloadForm Basic procedure is executed at the end of the ‘ImportNames’ procedure. However, it doesn’t seem to be working properly. StarBasic’s .reload() command doesn’t seem to want to work completely.
Once the importation is complete, the form reloads and returns to the initial record. However, the subforms have been partially reloaded. Only the role appears, sometimes the year is set to 0, but still no actor or actress name. If I click the Acteurs or Actrices table control and click the Refresh button in the navigation bar once, the name appears; I click a second time and the year appears.
The only solution I have is to close the form and reopen it. At that point, everything is reloaded. This can be done within the macro, but it seems not to be the best approach. I don’t understand the behavior of LibreOffice and its .reload() command, which should, in principle, reload a form.
I’m submitting a ‘Tester’ Base file that might help one of you find a solution to my problem.
How the Tester Base file works:
1 - Open the FilmsSeries form
1 - Select a record from the Selection list
2 - Click the Import button (AsianWiki link)
3 - The Web page associated with the link will open and then the import form will opens.
4 - Complete one or more profiles to import and click the import button of the Importation form.
5 - View the result in the FilmsSeries form that is a partial reload.