Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Copying data in a portaled field

Featured Replies

I am creating a music cataloging database and I'm trying to copy data into a portaled field if there is data in another field. I would like to do this without a script, but I am am not having any success. I've attached the file to this post. Thanks in advance for your help!

Sam

Music_Collection_Test_Solution.fp7.zip

The only that I know of to accomplish this without a script is too insert the values on creation of the record in the portal.

  • Author

I tried to do a lookup and still did not have any luck.

It isn't even something you should be doing.

You're trying to create redundant data. What is the point you perceive in doing this?

  • Author

The reason I'm doing this is because some of the songs in collections don't always have the same theme or occasion. In the event that a collection does have the same theme and occasion, I do not want to have to enter it into every portal field. I also will add songs into the database that are not in a collection, and so I need a table to store themes and occasions.

I tried to do a lookup and still did not have any luck.

??

None of the fields are lookups in your example. As a matter of fact you don't even HAVE theme or occasion fields in your song table.

The reason I'm doing this is because some of the songs in collections don't always have the same theme or occasion. In the event that a collection does have the same theme and occasion, I do not want to have to enter it into every portal field. I also will add songs into the database that are not in a collection, and so I need a table to store themes and occasions.

You mean like this?

Music.zip

  • Author

That is exactly what I want it to do, however the portal fields occasion and theme need to come from the occasion and theme tables, not the song table.

That is because the other part of the solution I'm have created which is not part of this file allows for multiple occasions and themes.

That is exactly what I want it to do, however the portal fields occasion and theme need to come from the occasion and theme tables, not the song table.

That is because the other part of the solution I'm have created which is not part of this file allows for multiple occasions and themes.

You'll need to keep explaining. That doesn't make any sense so far and you have 1:1 relations in your original file to the occasion/theme tables.

  • Author

The file I posted on this forum is not the full solution fill I am creating. In my original file I have a song layout that allows me to enter individual songs and assign multipule occasions and themes through a portal. However when dealing with collections I think it is too confusing to have multiple occasions and themes. That is why I am going with 1:1 relationship on the collections layout only.

I appreciate your help.

The file I posted does everything you asked for. The separate 1:1 tables make no sense; they require you to create TWO realated records for no purpose that you have yet explained.

  • Author

I've attached to this posting 2 jpg files that will clarify why I need a separate table for occasion and theme.

Example_1.jpg

Example_2.jpg

I've attached to this posting 2 jpg files that will clarify why I need a separate table for occasion and theme.

That does make it much clearer. In your previous post you said you needed a 1:1 relation from Song:Occasion, Song:Theme. Now you reveal that there is a 1:M relation. You really need to create THREE records when creating a new song within a collection, and you're only going to get this with scripted record creation. Doing it with scripts should be easy.

There are some folks, me included, who prefer not to use portals set up with auto-create and this is one good example of where it won't work.

Edited by Guest

  • Author

Is there no way of creating a 1:1 relationship using the occasions and themes tables the Collections layout only, even though I am going with a 1:M relationship in the songs entry?

Edited by Guest

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.