GaryB Posted March 27, 2007 Posted March 27, 2007 Hello, Just learning FM and what I am trying to do is within an order entry system pull client information from a separate database populating the information into the main order entry data base by selecting a client from a drop down list...am I explaining myself clearly? any help would be greatly appreciated. thx G
The Shadow Posted March 27, 2007 Posted March 27, 2007 I was just about to reply, then I saw you're using FMP 4 - I'm not even sure what that one has. If you want to keep the client data in the other file, you need to create a relationship to it (on clientId, for example) that will let you display those related fields in this file. You can create a value list that shows all clients from that related file, and use it to setup your popup list.
GaryB Posted March 30, 2007 Author Posted March 30, 2007 Thank you...I have done that and it works. But I don't think it is the correct way of doing what I want to accomplish. Scenario: I have the main database whereby a relationship is set to match the customer and pull customer information over from another database.However,if the other database is for some reason not there the fields in the main database show as which I understand. My question is, how do I keep the fields populated without having the other database around? Thank you G
Genx Posted March 30, 2007 Posted March 30, 2007 Well the data is never really "pulled" across from the other database in the sense your thinking... Even while it's on your layout, the data is being displayed directly from the other file and when you save it, it is being saved back to the other Database (hence why you get when your file reference is missing)... None of the data is actually ever physically stored in your primary file.
GaryB Posted March 30, 2007 Author Posted March 30, 2007 Is it possible to have the data physically stored in my primary file? Thank you very much G
GaryB Posted March 30, 2007 Author Posted March 30, 2007 Which version and is it straight forward to do? Thank you G
Genx Posted March 30, 2007 Posted March 30, 2007 Well... Prior to FileMaker 7, all tables had to be kept in separate files i.e. each file represented a table... In FileMaker 7+ every file can have lots of tables...
comment Posted March 30, 2007 Posted March 30, 2007 However,if the other database is for some reason not there A file is just a file. A Filemaker solution can have many files (in versions before 7, it practically had to have multiple files to be useful). A solution needs all its files in order to work. So you should eliminate, as much as as possible, any reasons for the 'other file' not to be there. For example, you could put all your files in a 'Required Files' folder buried deep in the solution's folder, and access them through a shortcut. Or you could have your main file at the top level, with auxiliary files hiding in the folder.
GaryB Posted March 30, 2007 Author Posted March 30, 2007 Sounds complicated...is there anyway to just copy and paste with the same result? Thank you G
comment Posted March 30, 2007 Posted March 30, 2007 I don't think I understand your problem. How will you copy from a file of clients, if it isn't there? But if it is, than a relationship will fetch the client info as soon as you select a client for the order - much simpler and neater than copy/paste.
GaryB Posted March 30, 2007 Author Posted March 30, 2007 I have the relationship but going back to my scenario "Scenario: I have the main database whereby a relationship is set to match the customer and pull customer information over from another database.However,if the other database is for some reason not there the fields in the main database show as which I understand. My question is, how do I keep the fields populated without having the other database around?" Thank you G
Genx Posted March 31, 2007 Posted March 31, 2007 Why won't the other database be around though... that's what I think comment's questions were trying to work out... If the main file is there, why cant your secondary file just be in the same folder as your main file?
comment Posted March 31, 2007 Posted March 31, 2007 To answer your question literally: define some fields in the 'main' database to hold this information, and make them lookup the required data from the customer file, using the relationship. But any serious solution spans several files, and cannot work when some are missing. Even a basic ordering solution needs at least 4 files: Customers, Orders, OrderItems and Products. There is no "main" file to hold ALL of the information for the entire solution.
Recommended Posts
This topic is 6505 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now