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.

Related data all in one field

Featured Replies

I have two tables, well say Table 1 and Table 2.  Table 1 has Field A and Field B, Table 2 also has Field A, which is used to relate to Table 1.

On Table 2, I can have a portal with Field B in it (from Table 1) but the problem in this case is it would be very helpful to be able to see several portals at once.  But Field B only contains 1 or 2 digit numbers.  So what I was wanting to do in the layout for Table 2 is have Field A and well say Field C, and just view as a list.  Field C would have all of the related values from Table 1 that match.  So the data would look something like this:   2 17 5 14 32 8

In other words, Field C is taking the place of the portal, and showing all of the related data in a line instead of like a list.

Please, please, please: never use such abstract examples to explain your problem. I had to read this like 10 times before I could understand what you want, and I almost gave up.

Now, given a Parent table and a Child table, you can use a calculation field defined in the Parent table (result is Text) =

Substitute ( List ( Child::Somefield ) ; ¶ ; " " )

to get a list of all related values from Somefield, separated by a space.

 

On February 6, 2016 at 3:40 AM, comment said:

Substitute ( List ( Child::Somefield ) ; ¶ ; " " )

Hello i have used the piece of code in my solution the field i am using is a date field for the list.

i get back

2/1/2016 2/2/2016 2/7/2016 etc

would like to get back 

1 2 7 how would i edit the calculation to get the sample above

thank you 

Edited by RT

5 minutes ago, RT said:

how would i edit the calculation to get the sample above

You need to add another calculation field in the Child table that will extract the day (assuming it's the day) portion of the date. Then apply the above calculation to this field.

thanks all done :)

  • Author

My apologies on over simplifying the field names.  In the mean time however, it works quite well.

11 hours ago, comment said:

You need to add another calculation field in the Child table that will extract the day (assuming it's the day) portion of the date. Then apply the above calculation to this field.

In the interest of keeping things a bit tidy, instead of adding another field, wouldn't this work as well:       

Substitute ( List (Day ( Child::Somefield )) ; ¶ ; " " )

 

Edited by Tpaairman

11 minutes ago, Tpaairman said:

wouldn't this work as well

No, it would not.

Day ( Child::Somefield )

returns the day of the date from the first related record. And applying the List() function to a single value does not accomplish anything.

 

 

Edited by comment

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.