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.

Get Field / Record List from Portal

Featured Replies

Hello, 

I have a list of data, extracting/looping from Webviewer to a portal.   I would like to sum last 400 record on every new record created. 

through portal it slow down too much so I try to integrate  a script step to get list and sum previous 400 records 

the fast I found is "GetFieldList ( fieldName ; recordNumStart ; recordNumEnd )" it work perfectly on the layout of the table, 

but it doesn't work on a portal & table where the Webviewer is located. 

 

Is there anyway to get it work with the portal or other way to sum 400 previous record out of a portal ? 

 

thank you :) 

Screen Shot 2021-10-11 at 12.29.40.png

Edited by ibobo

Sometimes it may be easier to open a window, could even be hidden of the related records, contstrain/find the 400 you want.  A summary field will have the correct count.  Copy that value as a variable, set the field with that variable.
A Sql statement/calc may also do it to.  Someone with that experience may be able to help.

  • Author

Thank you Steve, as it loops sometimes every second, open and close window, or switch between windows will mess-up  the loop or conduct on error or freeze.  Already happen on other project that s why I avoid. 

I may found Custom fonction that give me list of what is in the portal, so I think I ll filter in portal 400 last record and sum the up with the CF. 

You can Freeze Window, or open the window off screen.

  • Author

I did it like this, it seem s to work well, 

do you think it s the best way ? 

Screen Shot 2021-10-12 at 08.38.14.png

I am not at all sure I understand what are you trying to do. Does the attached demo come close? 

 

SumPrevNinPortal.fmp12

  • Author

Thank you,

well Comment it seems to be more that close 😇 how can I change the 3 to 400 ? 

1 minute ago, ibobo said:

how can I change the 3 to 400 ? 

3 is just the script parameter attached to the button. 

Unrelated to your question, but I would be reluctant to use a portal showing 400+ records.

 

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.