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.

calculation, aggregating all values of 1 field in found set

Featured Replies

is there any way to write a calculation that would list all the values of a certain field, within the found set.

this would be used in a 'set field' script step

i really really need this fast, if someone could try to help. also the script will be a loop that repeats 12,000 times, so keep that in mind; i'd like it to run quickly.

also, i don't know why, but i made one attempt to do this by exporting field contents to a .tab file and then setting that file as the url in a webviewer and then using getlayoutobject attribute, but it didn't work because the webviewer wouldn't open the .tab file. i don't get why. did somehing change between versions 8.5 and 10 (i'm using 10 adv.) that made it impossible to open local files with web viewer?

i also tried to insert the file into a container but that didn't seem to lead anywhere.

a calculation that would just aggregate the field by itself, would be ideal

i figured usuing relationships would have messed up the script too badly, so using a value list seemed out.

idk. please help.

i'm using pro 10 advanced and windows xp

  • Author

also, i know i probably could have done this using a self-join; but i thought that might be bad, since this database is already larger than a gigabyte (too many records; too much indexing; and 1 self join already - i'm not sure, but wouldn't more self joins make it worse?).

  • Author

it's actually really annoying that you can export the aggregated contents of a field into a .tab file, from a sorted found set,

but you can't just export that into a text field.

what's up with that?

a calculation that would list all the values of a certain field, within the found set.

You would need a custom function to do this by calculation. However, it is not clear why you would need such thing, if this is going to be used in a script anyway.

You could, for example, create a new layout containing only the field you are interested in, go to that layout, copy all records, go to another layout and paste into the target field.

There are other ways, but it's hard to advise with so little to go on.

BTW, a self-join would ignore the found set, and so would a value list (in addition to removing duplicate values).

  • Author

thanks comment. that 'copy all records' thing seems to be working. I don't know why I couldn't use webviewer, but this was probably better, and maybe faster for the script.

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.