Skip 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.

No idea what is going on with my Loop!?!?

Featured Replies

I have a table Submittal Reportings, using portals I am pulling all the material needed for a construction job with their corresponding required delivery dates. What I need to do is be able to move all the dates (for this particular job) back by a selected number of weeks.

I have a script that creates the new date in a field called NewReqDate, and it almost works. The problem I am facing is that it will updated all of the related records except for the last one. So it looks like my exit loop if statement isnt working right, but im not sure why not. Here is the script:

Go to related records [show only related records; from table: “Submittal Data”; Using layout: “Submittal Data” (Submittal Data)]

Loop

IF [submittal Data::Req_date<1/1/1900]

Omit Record

Else

Set field [submittal data::NewReqDate; Submittal Data::Req_date+((Submittal Reportings::DelayInWeeks*7)]

Go to Record/Request/Page [Next]

Exit Loop If [submittal Data::NewReqDate>Submittal Data::Req_Date]

End If

End Loop

Goto Layout [“Submittal Reportings” (Submittal Reportings)]

Clear [select; Submittal Reportings::DelayInWeeks]

any ideas?

In the record that is not being updated, is NewReqDate a later date than Req_Date? If so, perhaps its prior to 1900? If neither applies, I would wonder if the record that is not being updated is actually being found by your calculation.

  • Author

The date will never be before 1/1/1900, I just put that there to eliminate the records that have no date in that field.

The Record is found, after the script is ran when I go into submittal data, that record is actually the one being displayed. I can scroll thru the records and find all of the correct related records that are indeed modified, but that one is not.

Very strange

Could the Clear step in your script be affecting the last record?

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.