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.

Looping Extend Found Set to Flag Related Records

Featured Replies

Greetings!

A problem I have noticed in our stock system is that very often the shipping costs of items are not allocated to the invoice for the product shipped in. This obviously pushes up our overheads.

What I'd like to do is flag those records in stock that have a shipping cost attached to them. The common denominator will be the Order Number.

My logic thus far says: find the records related to shipping/courier fees (as these are entered into the system when booking in stock), extend the found set of each shipping record so as to show the matching product records and then flag them.

My script so far is as follows (I'm just trying to get the loop to work!)

Set Error Capture [On]

Perform script "Find Shipping Invoices"

Go to Record/Request/Page [First]

Loop

Go to field [C3 Stock::C3 Order Nº]

Extend Found Set []

Go to Record/Request/Page [Next; Exit after last]

End Loop

The problem is that my loop just moves between the first and the second record...

Could anyone provide some insight please as the light is just not going on!

Many thanks!

I would perform the entire search before going into the loop.

Set Error Capture [On]

Perform script "Find Shipping Invoices"

//You would enter

"New Record/Request"

Set Field(C3 Stock::C3 Order Nº;"=" yourflag)

Extend Found Set []

This should be included in your find script!

Go to Record/Request/Page [First]

Loop

If(flagfield = "????Whatever you want here"

Set field [C3 Stock::C3 Order Nº; "Something"]

Endif

Go to Record/Request/Page [Next; Exit after last]

End Loop

I hope this sets you in the right direction

Edited by Guest

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.