Jump to content

Write in related records in a portal


This topic is 7013 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi!

I have following problem with Filemaker 7:

I have a solution, which copies all selected tracks of a cd (or mp3-files) from itunes to filemaker.

This works fine with filemaker 6 but not with filemaker 7.

Because there is a real cool command in filemaker 6:

If you have a cd, with title, etc, and the songs in a portal (connect per unique key in filemaker).

In FM 6, following statement worked:

set cell "Songs::Songtitle" of newRec to TrackNames

an Tracknames is a liste: {"Song 1", "Song 2", "Song 3", ...}

But under FM 7 that simple thing does not work.

Do you have any idea, if there is an similar solution?

best regards,

karobert.

Link to comment
Share on other sites

Hi!

I have following problem with Filemaker 7:

I have a solution, which copies all selected tracks of a cd (or mp3-files) from itunes to filemaker.

This works fine with filemaker 6 but not with filemaker 7.

Because there is a real cool command in filemaker 6:

If you have a cd, with title, etc, and the songs in a portal (connect per unique key in filemaker).

In FM 6, following statement worked:

set cell "Songs::Songtitle" of newRec to TrackNames

an Tracknames is a liste: {"Song 1", "Song 2", "Song 3", ...}

But under FM 7 that simple thing does not work.

Do you have any idea, if there is an similar solution?

best regards,

karobert.

Link to comment
Share on other sites

Hi!

I have following problem with Filemaker 7:

I have a solution, which copies all selected tracks of a cd (or mp3-files) from itunes to filemaker.

This works fine with filemaker 6 but not with filemaker 7.

Because there is a real cool command in filemaker 6:

If you have a cd, with title, etc, and the songs in a portal (connect per unique key in filemaker).

In FM 6, following statement worked:

set cell "Songs::Songtitle" of newRec to TrackNames

an Tracknames is a liste: {"Song 1", "Song 2", "Song 3", ...}

But under FM 7 that simple thing does not work.

Do you have any idea, if there is an similar solution?

best regards,

karobert.

Link to comment
Share on other sites

Karobert:

Welcome to the Forums.

In FMP7 you've got to identify the table within the file when using AppleScript. Pre-7 there was only one table per file, but with the new multi-table format, you need to add some syntax. My brain is refusing to release the correct information for me to give to you, as I'm in the middle of something, but someone else here (or some research) will help you out.

-Stanley

Link to comment
Share on other sites

Karobert:

Welcome to the Forums.

In FMP7 you've got to identify the table within the file when using AppleScript. Pre-7 there was only one table per file, but with the new multi-table format, you need to add some syntax. My brain is refusing to release the correct information for me to give to you, as I'm in the middle of something, but someone else here (or some research) will help you out.

-Stanley

Link to comment
Share on other sites

Karobert:

Welcome to the Forums.

In FMP7 you've got to identify the table within the file when using AppleScript. Pre-7 there was only one table per file, but with the new multi-table format, you need to add some syntax. My brain is refusing to release the correct information for me to give to you, as I'm in the middle of something, but someone else here (or some research) will help you out.

-Stanley

Link to comment
Share on other sites

Hi again!

I think, it has something to do with the portal, not tables - maybe i am wrong.

I wrote this little script, maybe then it is a little bit clearer:

tell database 1

show layout "Musik"

tell table "Musik"

set newRec to create new record

show newRec

set cell "Title" of newRec to "test40"

set cell "Songs::Songtitle" of newRec to {"one", "two", "three"}

end tell

end tell

The Result is:

Only the first song is written into filemaker!

(it is also, if I use "tell layout "Musik"" instead of table"

Filemaker 6 did a good job with this list-behaviour but Filemaker 7 ??

any ideas?

Link to comment
Share on other sites

Hi again!

I think, it has something to do with the portal, not tables - maybe i am wrong.

I wrote this little script, maybe then it is a little bit clearer:

tell database 1

show layout "Musik"

tell table "Musik"

set newRec to create new record

show newRec

set cell "Title" of newRec to "test40"

set cell "Songs::Songtitle" of newRec to {"one", "two", "three"}

end tell

end tell

The Result is:

Only the first song is written into filemaker!

(it is also, if I use "tell layout "Musik"" instead of table"

Filemaker 6 did a good job with this list-behaviour but Filemaker 7 ??

any ideas?

Link to comment
Share on other sites

Hi again!

I think, it has something to do with the portal, not tables - maybe i am wrong.

I wrote this little script, maybe then it is a little bit clearer:

tell database 1

show layout "Musik"

tell table "Musik"

set newRec to create new record

show newRec

set cell "Title" of newRec to "test40"

set cell "Songs::Songtitle" of newRec to {"one", "two", "three"}

end tell

end tell

The Result is:

Only the first song is written into filemaker!

(it is also, if I use "tell layout "Musik"" instead of table"

Filemaker 6 did a good job with this list-behaviour but Filemaker 7 ??

any ideas?

Link to comment
Share on other sites

This topic is 7013 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.