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.

value list and string to match

Featured Replies

Here is the challenge:

I have a project db and teams are assigned to each project. I will assign names to teams through a simple portal, but I would like the project report to summarize with a text calc. So the result is one long string showing only the teams that where build. Also the name of the teams and people are not predefined.

i.e.

ProjectA

BLUE TEAM: John, Sandy, David RED TEAM: Daniel, Sam, Tes, Frank, Betty

You could define a valuelist, say, vl_Team_Members, which draws names based on a relationship matching Team to itself.

Then you could define a calculated text field, e.g.B)

Team_Members = Substitute(ValueListItems(Status(CurrentFileName), "vl_Team_Members"), "

  • Author

that does work except the value list has to be indexed and will not dynamicly update. Can and force update be scripted some how, if not how would you create a scrpt to create that string?

Yes, I find the ValueListItems() function a little finnicky sometimes, especially in list view. It seems to work most reliably with hard-coded valuelists or, in the case of related valuelists, related valuelists in which the relationship is based on a global field matching an indexed field in the related file.

If the comma-separated list of team members is only needed for printed reports it would probably be best to set a global text field using the Set Field script step. This global field would form the left-side of the relationship that the valuelist is based on.

I hope this makes sense. Good luck!

  • Author

so if my global field holds the teams (red, blue, green), and that pulls all the names I can see a result such as:

red: david, red: steve, blue: chirs, green: jean, green: trish

can you think of a cal that would clean that result so I get:

red: david, steve

blue: chirs

green: jean, trish

or have I misunderstood your solution

I found that you can force the ValueListItems function to update by adding an aggregate function based on the same relationship to your formula. For example, if the valuelist ValLst is based on relationship MyRel, then a formula would be:

Valulistitems("MyFile","ValLst") & Left("",Count(MyRel::AnyField))

How 'bout I just put my money where my mouth is? smile.gif

Here's a sample file using the data you've supplied.

rivetvaluelist.zip

Thanks for this tip, Bob -- this will come in very handy.

  • Author

amazing that for all your help guys, and bob that is a slick fix

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.