I have a Postgresql database - Finance, that has 2 tables - Institutions and Investment. An investment is linked to an institution name and there is a foreign key constraint that links these 2 tables (inst_name in Institutions and Investment).
I connected this database to Libreoffice Base and created a form from wizard on Investment table. I tried to replace the institution field in this form with a list box so that I can create a lookup to the institution master. However when I go to replace with field, it shows no selections possible.
Alternatively, is there any way to build a lookup in the form?
Thanks in advance
Sachin
Apparently the issue was an old version of Libreoffice.
After upgrading to the latest version, I was able to add a lookup field.
Related
I have been searching for the condition, where, lets say when we enable time travel to a certain table in DB2 , but don't want to capture all the updates done, but only the updates that's done by some specific user.
Wanted to know if this is at all possible with the DB2 time travel and how we can achieve it .
It's not possible with DB2 temporal tables.
Alter the temporal table add a user column maintained by system.
db2 for Iseries column shown
EMP_CHANGE_USER VARCHAR(18) GENERATED ALWAYS AS (USER)
The new column will go automatically to the history table of the temporal table. You can report on the history table and have emp_change user.
Note: IRL Don't single out users. You can give management a report that lists out all users and management can filter it down to individuals. Programmers do not single out users for reporting and logging.
First of all, yes, I know that IIF (Intuit Interchange Format) files are a deprecated way of transferring data into Quickbooks Desktop.
However, I have been tasked with writing a PHP script that will create an IIF file that a customer could use to import an invoice that is created by my web application. If it were my choice, I wouldn't attempt to use IIF.
The Question:
Using an IIF import, is it possible to have Quickbooks use either its internal ids, an account number (which ends up in the NOTE field), or a custom field to link the customer to the invoice rather than using the NAME field?
It appears the answer is no.
The closest thing I could find to an answer was from here:
https://community.intuit.com/questions/1575622-how-do-you-import-iif-file-using-a-custom-field-as-identifier
The answer from that link:
"Custom Fields are not a Key Field; Vendor Name is the Key Field. You
cannot import Bills except by reference to the Relational key field of
Vendor Name. This is a relational database, so the things that matter
are the Key Fields. AP and Vendor Name, at a minimum, define Bills."
My question was about transactions rather than Bills, but I imagine that the same answer that applies to Bills applies to Invoices and the customer Name.
I'm using Filemaker Pro 12 and I was wondering if there is a way of creating a template for tables. There are a number of fields I'm placing in my tables that are identical utility-fields like modification time-stamp, active/inactive flags, etc. I was hoping there was a way that I could define the skeleton of each table somehow instead of having to manually add these identical fields every time.
If you are using the Advanced version, you can copy&paste fields among tables/files.
Using the regular version, you can import records from your "default" table and specify [New Table...] as the target table. This will recreate the source table's structure in the target file. The source table does not have to contain any records for this to work.
To expand a little bit on michael-hor257k's answer, if you're using FileMaker Pro Advanced, a good practice is to create a "Default" table that has your core utility fields. When you want to make a new table in Manage Database, instead:
Highlight the Default table,
Copy & Paste the table, then
Rename the new table.
Is there a quick way to find out when last change took place in some table?
EDIT:
I realize that i can add a column which will hold a change date, but i am wondering if there is some kind of metadata that can be accessed by EF. My db is hosted on SQL Server 2008.
Add a 'last updated' column to your table and query that one for the latest change.
Update: If that is not an option as per the update to the question, you could:
a) create a separate db table with table name and date/time and update that one with triggers on the table you want to track.
...or...
b) since you're using SQL Server 2008 you could possibly do something with SQL Server change tracking. There's no built-in support for change tracking in EF, but that doesn't prevent you from using it 'on the side'...
I have tables named Contact and Address and both of them have "ModifiedDate" column. I have written the CUD operations using Stored procedures. However, when It came to SELECT stored procedure in which I needed to return all the contacts with their addresses, I got an error.
System.Data.EntityCommandExecutionException:
The data reader is incompatible with
the specified
'AddressBookModel.SelectAllContactsWithAddresses_Result2'.
A member of the type, 'ModifiedDate1',
does not have a corresponding column
in the data reader with the same name.
I ended up changing the stored procedure to return different aliases for those column name and more unfortunately, I needed to change the properties in the entities in the model as well to match the selected column. I wrote a blog post about this here. I know I could have separate select SPs (and separate function imports) for both the entities but this is just one situation and can happen in other cases as well where same columns names might get returned from a complex query from multiple tables in a SP. Could anybody provide any direction on this?
I posted the same question in the MS forums for EF here (sorry for the cross posting) and the moderator confirmed that this is a bug in EF and asked me to create a bug in the Microsoft Connect and the bug Id is 597376 and here is the link for the same.
from Lingzhi Sun
MSFT, Moderator
Support in Forum>
Hello, After some research and test,
> I can repro this issue at my side.
> It can be a limitation of EF when
> handling stored procedure return
> values. I would recommend you open a
> ticket at Microsoft Connect to report
> this issue to the product team. If
> it is convenient, please share us with
> the ticket link here to benefit more
> community members.