H Posted November 5, 2015 Posted November 5, 2015 Hi i created a database for a food manufacturing company, they need to be able to link the product with the company that ordered it with its ingredients and be able to link on e to another. i created it that from the product you can select a value list of the company that ordered it , i created a relationship. however every time i create a new product and assign it to a company a new company is created. i assigned automated id`s so i cant even link them together. please help me
Wim Decorte Posted November 5, 2015 Posted November 5, 2015 Not enough information... can you post some more details, screenshots, how the value list and the relationships are set up?
H Posted November 5, 2015 Author Posted November 5, 2015 24 minutes ago, H said: 24 minutes ago, H said: 1 minute ago, H said: Are you getting my responses? 13 minutes ago, Wim Decorte said: Not enough information... can you post some more details, screenshots, how the value list and the relationships are set up? first time working in this forum, wondering whether you are seeing my screenshots
H Posted November 5, 2015 Author Posted November 5, 2015 Just now, AnthonyDixon said: Can you upload your file? Rabbi_Usher_Eckstien.fmp12 you see my issue, i have the same ssue when i go into the ingredient tab on the product page, it creates a new ingredient even if i select one from the databasde
Steve Martino Posted November 6, 2015 Posted November 6, 2015 Says the file is damaged. You should zip it first then attach
Steve Martino Posted November 6, 2015 Posted November 6, 2015 When you create a new record, you should script the process--entering of the customer name, id#, etc., and turn off the 'allow creation of records through via this relationship. The way you are set up, on the products layout you can change the Customer name without any notice, destroying your data.
H Posted November 9, 2015 Author Posted November 9, 2015 hi, i am quite new to filemaker, can you guide me on how to script this
H Posted November 11, 2015 Author Posted November 11, 2015 Hi, please, i am still awaiting help on how to script up the process from linking my product back to my customer without creating a new customer when i select it from the value list, please can someone help me.
GisMo Posted November 11, 2015 Posted November 11, 2015 (edited) 1 hour ago, H said: Hi, please, i am still awaiting help on how to script up the process from linking my product back to my customer without creating a new customer when i select it from the value list, please can someone help me. Here are things that you need and some HINTS. Tables and Keys Customer Table Primary Key: CustomerID (Auto-enter get(uuid)) Product Table Primary Key: ProductID (Auto-Enter get(uuid)) OrderLineItem Primary Key: OrderLineItemID(Auto-Enter get(uuid)) Foreign Key: ProductID Foreign Key: CustomerID You need at least the above to accomplish what you need. Please See Attached, Reworked File. I've put the example in the Order Line Item Tab on the Customer Form. Also a simple script to show creation of the related record. Rabbi_Usher_Eckstien_Recovered.zip Edited November 11, 2015 by GisMo
Lee Smith Posted November 11, 2015 Posted November 11, 2015 Please do no Double post I’ve deleted your duplicate post. 1
H Posted November 11, 2015 Author Posted November 11, 2015 Thanks, will review and let you know if this matter has been resolved
H Posted November 11, 2015 Author Posted November 11, 2015 Hi, just review the file you have reworked, however there is still the same issue, i see you made it that one can select a company in the product page however the company still duplicates, please let me know how i can fix this error as it is breaking my entie database
GisMo Posted November 11, 2015 Posted November 11, 2015 (edited) @H please tell me how to duplicate your issue in the reworked file. Tell me what layout and what task. Edited November 11, 2015 by GisMo
H Posted November 11, 2015 Author Posted November 11, 2015 on the product layout, when i create a new product and i select a company from the value list another company is created with the same name but different ID
GisMo Posted November 11, 2015 Posted November 11, 2015 Are you purchasing products from the company?
H Posted November 11, 2015 Author Posted November 11, 2015 oh i`m sorry you must of misunderstood, i wrote a mistake the customer is the one you manufactures the product
H Posted November 11, 2015 Author Posted November 11, 2015 it is a manufacturing database, i want to link the customer(the one creating the new food product) with the factory it is creating it in, with the ingredients the product is made up of one customer, or rather company can manufacture many companies sorry i am new to this, where is the forum chat?
Recommended Posts
This topic is 3552 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