320 Views    -    2 Replies


Username Post: copying/importing record set        (Topic#213722)
Your continued generosity and support of FMForums is greatly appreciated.
Brian12568 
novice
Posts: 9



FMP: 8 Advanced
OS: Windows XP
Skill: Novice



Tweet This! Tweet This Post!
03-09-10 03:31 AM - Post#352022    


Hello,
Thanks for any help in advance (best say that now before i get into this)

My issue is as follows..

I have a db that has a record that has a table for a Quote that has an associated table that hold the parts for that quote so for example

main table would have company name address etc & the other table would hold the parts list ie some widget another widget (this is displayed in a portal obviously.. This all works fine..

however i have a script that then creates a sales order (ie just copies the record to the new table (sales order) ) here is my issue i need to bring the parts list across to the sales order associated parts list table.. im a little lost as how to do this?

so to recap:

table-Quote (linked to) table-QuotePartslist

a script to copy A record to

table-Sales (linked to) table SalesPartslist

However im unsure how to bring in the associated records from the QuotePartslist to the SalesPartslist..

just to clarify the table-Quote , table-QuotePartslist is a 1 To Many relationship as is the other 2 tables

I hope the above makes sense ill probably come back to it in a couple of hours & it all makes sense but ive been on off it for last few days so thought it was time to post on here..

I will add i know there is the export function but im not sure if its the right function also i will have a file created which i dont want, i would like it all to be on the Fly..

Im not sure what is the right function i need to do this or if its a case of using some apple script or custom function if so please point me in the right direction..

Regards,
Brian










bcooney 
consultant
Posts: 3457
bcooney

Loc: New York
Post Rank (AVG):
            


FMP: 10 Advanced
OS: Cross Platform

Member: TechNet
Skill: Advance

Certified:
     



Tweet This! Tweet This Post!
03-09-10 06:25 AM - Post#352033     - Post Rank:             
    In response to Brian12568

What you could do is share the line items from the Quote with the Sale. Just add another key field (_kF_SalesID) to the line items table. Then, in the script that "copies" a Quote>Sale, capture the new SalesID and set the SalesID in the line items table.











Your continued generosity and support of FMForums is greatly appreciated.
Brian12568 
novice
Posts: 9



FMP: 8 Advanced
OS: Windows XP
Skill: Novice



Tweet This! Tweet This Post!
03-15-10 07:03 AM - Post#352661    
    In response to bcooney

Hi,
Thanks for the Quick reply.

I wanted to have it separated however i have got some further clarity from the end user of the current system.

I can do it in that way thanks for the feedback.

Brian










Icon Legend Permissions Topic Options
Print Topic

Email Topic

320 Views
Welcome Guest...
Enter your username and password to login. If you do not have a username you can register one here

Username

Password

Remember me. Help



Forgot Password...


Quick Links
Recent Posts
Active Topics
No Replies
Recent Files
Functions & Scripts
FileMaker Pro Help
FileMaker on Twitter
FileMaker Marketplace

Custom Search

Find FileMaker Developers

Don't have time to wait,
hire a developer now!

Recent Members
Welcome them to our community!
Find FileMaker Jobs

Want a new career?
Find your new job now!

Joy of Tech
Latest Joy of Tech!

Recent Topics
Recent Hot Topics
Contribute
With your generosity we can make some real magic happen!. Support your favorite online FileMaker community...
FM Forums.com


Click here...


Or a Donation of any amount.


Thanks for your support!

Active Blogs
0 Recent blogs:
People to Post Lately in this Topic
Brian12568
bcooney
FM Forums Advertisers


FusionBB™ Version 3.0 FINAL | ©2003-2010 InteractivePHP, Inc.
Execution time: 0.465 seconds.   Total Queries: 50   Zlib Compression is on.
All times are . Current time is 09:07 AM
Content ©1996-2008 Ocean West Consulting, Inc. All Rights Reserved
Ocean West Consulting, Inc. can not and will not be held responsible for any of the contents in this site.
FM Forums™ is a trademark of Ocean West Consulting, Inc an independent entity, not affiliated with FileMaker Inc.
FileMaker® is a registered trademark of FileMaker Inc.
Top