dbTalk Databases Forums  

Newbie alert! How to copy records

comp.databases.filemaker comp.databases.filemaker


Discuss Newbie alert! How to copy records in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JoeT
 
Posts: n/a

Default Newbie alert! How to copy records - 12-08-2006 , 03:43 PM






Hi...

Simple problem (I hope).
FM8.5/MacOS

I have 2-tables, A and B in the same database
I'm in browse mode.
I want to have the ability to have a user hit a button and take
the current record in A and move it into B.
Something like a INSERT..SELECT in RDBs.

For the life of me, can't figure it out.

Any suggestions?

TIA,
Joe

PS: Yes, I know it's not good design, but there are legal reasons why
this needs to be done.
Blame the lawyers.


Reply With Quote
  #2  
Old   
Greg Dember
 
Posts: n/a

Default Re: Newbie alert! How to copy records - 12-08-2006 , 05:18 PM






OK.... assuming you must use that design for legal reasons, and assuming
that Table B has the same field definitions as Table A:

Write a script that does these things:

1. In Table A, narrows down the found set to the record you want to
copy.

2. Goes to a layout that uses Table B.

3. Import records from Table A to Table B, with imported records being
added to the existing records in Table B.

4. Go back to your original layout in Table A.





In article <1165614204.024039.261020 (AT) f1g2000cwa (DOT) googlegroups.com>,
"JoeT" <trubisz (AT) yahoo (DOT) com> wrote:

Quote:
Hi...

Simple problem (I hope).
FM8.5/MacOS

I have 2-tables, A and B in the same database
I'm in browse mode.
I want to have the ability to have a user hit a button and take
the current record in A and move it into B.
Something like a INSERT..SELECT in RDBs.

For the life of me, can't figure it out.

Any suggestions?

TIA,
Joe

PS: Yes, I know it's not good design, but there are legal reasons why
this needs to be done.
Blame the lawyers.

Reply With Quote
  #3  
Old   
JoeT
 
Posts: n/a

Default Re: Newbie alert! How to copy records - 12-08-2006 , 07:41 PM



OK...I'm a bit lost...
I can enter find mode and find records with no problem.
It's the script I'm having problems with.

Quote:
From what I have found, you can do:
find all
omit
find omitted

The problem I have is with scriptmaker. 'Find all' isn't a problem and
I assume that I want to add to the script 'omit record' (since there is
no 'omit' by itself). The problem after this is 'find omitted'. That by
itself doesn't exist (fine), so I use Perform Find, use the same key I
used in the Find All (step 1), and select 'Omitted'. Problem is that it
wants something for the Find Requests.

Not sure what it wants here. Then again, I'm not sure if Perform Find
is correct here either.

Joe


Greg Dember wrote:
Quote:
OK.... assuming you must use that design for legal reasons, and assuming
that Table B has the same field definitions as Table A:

Write a script that does these things:

1. In Table A, narrows down the found set to the record you want to
copy.

2. Goes to a layout that uses Table B.

3. Import records from Table A to Table B, with imported records being
added to the existing records in Table B.

4. Go back to your original layout in Table A.





In article <1165614204.024039.261020 (AT) f1g2000cwa (DOT) googlegroups.com>,
"JoeT" <trubisz (AT) yahoo (DOT) com> wrote:

Hi...

Simple problem (I hope).
FM8.5/MacOS

I have 2-tables, A and B in the same database
I'm in browse mode.
I want to have the ability to have a user hit a button and take
the current record in A and move it into B.
Something like a INSERT..SELECT in RDBs.

For the life of me, can't figure it out.

Any suggestions?

TIA,
Joe

PS: Yes, I know it's not good design, but there are legal reasons why
this needs to be done.
Blame the lawyers.


Reply With Quote
  #4  
Old   
Greg Dember
 
Posts: n/a

Default Re: Newbie alert! How to copy records - 12-08-2006 , 09:52 PM



In Scriptmaker:

Show all Records
Omit Record
Show Omitted Only

You probably just didnt "see" the "Show Omitted Only" in your script
step options.

-- Greg




In article <1165628518.337005.127750 (AT) 16g2000cwy (DOT) googlegroups.com>,
"JoeT" <trubisz (AT) yahoo (DOT) com> wrote:

Quote:
OK...I'm a bit lost...
I can enter find mode and find records with no problem.
It's the script I'm having problems with.

From what I have found, you can do:
find all
omit
find omitted

The problem I have is with scriptmaker. 'Find all' isn't a problem and
I assume that I want to add to the script 'omit record' (since there is
no 'omit' by itself). The problem after this is 'find omitted'. That by
itself doesn't exist (fine), so I use Perform Find, use the same key I
used in the Find All (step 1), and select 'Omitted'. Problem is that it
wants something for the Find Requests.

Not sure what it wants here. Then again, I'm not sure if Perform Find
is correct here either.

Joe


Greg Dember wrote:
OK.... assuming you must use that design for legal reasons, and assuming
that Table B has the same field definitions as Table A:

Write a script that does these things:

1. In Table A, narrows down the found set to the record you want to
copy.

2. Goes to a layout that uses Table B.

3. Import records from Table A to Table B, with imported records being
added to the existing records in Table B.

4. Go back to your original layout in Table A.





In article <1165614204.024039.261020 (AT) f1g2000cwa (DOT) googlegroups.com>,
"JoeT" <trubisz (AT) yahoo (DOT) com> wrote:

Hi...

Simple problem (I hope).
FM8.5/MacOS

I have 2-tables, A and B in the same database
I'm in browse mode.
I want to have the ability to have a user hit a button and take
the current record in A and move it into B.
Something like a INSERT..SELECT in RDBs.

For the life of me, can't figure it out.

Any suggestions?

TIA,
Joe

PS: Yes, I know it's not good design, but there are legal reasons why
this needs to be done.
Blame the lawyers.

Reply With Quote
  #5  
Old   
JoeT
 
Posts: n/a

Default Re: Newbie alert! How to copy records - 12-10-2006 , 01:05 PM



OK...so far, I've established I had the right idea, but approached the
problem incorrectly.
Newbie error.

However, your first reply indicated that now that I have the record, I
can import it.
OK...the options for import say that I can import from:
File
Folder
Digital Camera
XML Source
ODBC source

I don't have an option to copy from a found set to the current layout.

Is import the correct command I should be using?

Joe


Greg Dember wrote:
Quote:
In Scriptmaker:

Show all Records
Omit Record
Show Omitted Only

You probably just didnt "see" the "Show Omitted Only" in your script
step options.

-- Greg




In article <1165628518.337005.127750 (AT) 16g2000cwy (DOT) googlegroups.com>,
"JoeT" <trubisz (AT) yahoo (DOT) com> wrote:

OK...I'm a bit lost...
I can enter find mode and find records with no problem.
It's the script I'm having problems with.

From what I have found, you can do:
find all
omit
find omitted

The problem I have is with scriptmaker. 'Find all' isn't a problem and
I assume that I want to add to the script 'omit record' (since there is
no 'omit' by itself). The problem after this is 'find omitted'. That by
itself doesn't exist (fine), so I use Perform Find, use the same key I
used in the Find All (step 1), and select 'Omitted'. Problem is that it
wants something for the Find Requests.

Not sure what it wants here. Then again, I'm not sure if Perform Find
is correct here either.

Joe


Greg Dember wrote:
OK.... assuming you must use that design for legal reasons, and assuming
that Table B has the same field definitions as Table A:

Write a script that does these things:

1. In Table A, narrows down the found set to the record you want to
copy.

2. Goes to a layout that uses Table B.

3. Import records from Table A to Table B, with imported records being
added to the existing records in Table B.

4. Go back to your original layout in Table A.





In article <1165614204.024039.261020 (AT) f1g2000cwa (DOT) googlegroups.com>,
"JoeT" <trubisz (AT) yahoo (DOT) com> wrote:

Hi...

Simple problem (I hope).
FM8.5/MacOS

I have 2-tables, A and B in the same database
I'm in browse mode.
I want to have the ability to have a user hit a button and take
the current record in A and move it into B.
Something like a INSERT..SELECT in RDBs.

For the life of me, can't figure it out.

Any suggestions?

TIA,
Joe

PS: Yes, I know it's not good design, but there are legal reasons why
this needs to be done.
Blame the lawyers.


Reply With Quote
  #6  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: Newbie alert! How to copy records - 12-10-2006 , 01:18 PM



You wouldn't be "copying" a found set, you would be importing. Go to
Import > File, and point to the file source (even if it is the same
file). From there you will get an import mapping dialog where you can
set the source and target tables, map your fields and move on.

JoeT wrote:
Quote:
OK...so far, I've established I had the right idea, but approached the
problem incorrectly.
Newbie error.

However, your first reply indicated that now that I have the record, I
can import it.
OK...the options for import say that I can import from:
File
Folder
Digital Camera
XML Source
ODBC source

I don't have an option to copy from a found set to the current layout.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Professional Solutions, Inc. Los Angeles

FileMaker 8 Certified Developer
Associate Member, FileMaker Solutions Alliance


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.