Display comma separated values from an SQLite database in LibreOffice Base - libreoffice

I have an SQLite database used in QGIS with geographic data.
Some of the fields can store multiple values.
They are list values stored in a separate table. The name of the value is taken from the primary key of each item.
And QGIS stores them in the related field like this {3,4,9,10,11,15,16}.
For example, for a table 'list1'
1 AA
2 BB
3 CC
etc.
How in LibreOffice base I can create the same checkboxes in a new form from this QGIS database?
I cannot even manage a way to get multiple values.

Related

Ignoring space characters when linking tables

I’m experiancing a problem when trying to link to tables in the database expert. The two fields that link the tables have exactly the same information except one table always has an additional space. For example;
Table 1 = Multivitamin/Tablets
Table 2 = Multivitamin//Tablets
‘/‘ are representing spaces
Formulas won’t help (e.g. extractstring etc) as it’s the tables themselves I need to link together
This is preventing me from retrieving the information I need. Any advice on how I can get around this?
There are some ways to come across this:
Consider using a command as datasource instead of tables. When writing the query of the command you can define the join condition yourself.
If you have access to the data source, you could add a calculated field to the tables to contain the normalized field values and then use these for linking in CR.
Alternatively, one could create views in the database, either adding normalized "linking fields" or providing the joined tables results.
If it's only a few rows in CR, you could consider using SQL fields or subreports to retrieve data from Table 2.

Merging Data in FMPro with modification of ID values

We are attempting to merge multiple datasets created in in filmmaker pro.
These datasets have multiple tables, and each entry within each table has a local ID that is used to relate entries between tables. The local ID values for all the entries were serially generated values, but some of the ID values are repeated between the different datasets, though the indicated records are non equivalent.
How can the ID values be updated in the data that is being imported to remove these overlaps without destroying the relationships that depend on them?
If you have access to the original database, you can try to migrate the ID's over to UUID or something unique before exporting. This has to be done manually, either cut/paste by hand or by a script.
Such a script will have do the following:
Loop through the parent records
For each record go to the related records
Generate an UUID with the get(UUID) function and put it in a variable
Replace the parent ID in the related record with this variable
Return to the parent record and replace the record ID with the variable.
Move to the next record.
Repeat until all records have been updated.

Changing the values in a database table using Entity Framework and c#

I'd like to manipulate(access and change) the values in a column that was created automatically by the code i wrote, which was making a List of "Workers" in a table was created by the code.
I have a table called "WorkConstraints" which i did not write myself, rather visual studio created it by itself.
I want to be able to manipulate the values of the columns which are located in the table.
For example, i have 2 columns: HourConstraints, WeeklyConstraints.
I want each of my "Worker" classes to be able to have values which are specific to these two columns.
For example:
I'd like John to have a name, age, HourConstraints and WeeklyConstraints.

Input data into a table using DLookUp in Access

I am using a Data entry continuous form to input data into a table named 'Order_History'. All fields successfully input their data into that table except for one. I have a text box that uses DLookUp to get the value from a combo box on that form and use it to select data in hopes of entering it into the table. The DLookUp is getting the data from a different table named 'Postcodes'. I assume that the reason the others work is because the control source is linked to columns in the table.
Is there a way I can link this text box (Drop_Number) to the specific column in my Order_History table while still using DLookUp to get the values?
My DLookUp code:
=DLookup("Drop_Number", "Postcodes", "Postcode = [Forms]![Order_Form]![Postcode_cb]")

How can I extract a specific table and copy from MS Word to Excel in Perl?

I have an MS Word 2003 file which contains several tables in it and I want to extract a specific table contents. For example, tables will be coming under some sections and I want to extract the contents of the table that are coming under section 6 alone and no other table contents, I want copy those contents to an new Excel sheet with formatting.
SECTION 4
Table data
Table data
Table data
SECTION 5
Table data
Table data
Table data
SECTION 6
Table data # TABLE DATA TO BE EXTRACTED AND IMPORTED TO AN NEW EXCEL SHEET
Table data # TABLE DATA TO BE EXTRACTED AND IMPORTED TO AN NEW EXCEL SHEET
Table data # TABLE DATA TO BE EXTRACTED AND IMPORTED TO AN NEW EXCEL SHEET
SECTION 7
Table data
Table data
Table data
Unless you are thinking of using something like antiword, your starting point is the Perl module Win32::OLE, which is installed as part of ActiveState Perl. You need to start a Microsoft Word application using OLE, open your document, then look at the Sections object of the document object, find the Section object which is your section six, then look at the Tables property of the Range property of the Section object, and find the Table object you want in it.
Copying to an Excel sheet involves something similar.
It's difficult to write a code example unless I have a document to work with, so I'm not even going to attempt that.