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.

Repeating Variable issue with find

Featured Replies

I'm using repeating Variables to use with finding applicable records to use and then print using a loop. I'm having a problem with the variable I use in the find to pick up the second repetition of a variable.

5650b1cb37072_ScreenShot2015-11-21at12.0

So it steps previous to these, $$PrescriberID and $$PrescriberID[2] exist as seen in the Dataviewer as do the two cases for $$ClientID. But in using the debugger, $FindHCP and $FindClient keep being set with the first instance, not the second on the second go through when $LoopCounter is 2.

Why isn't this working? 

Thanks for any help you can provide.

 

Pat

The GetRepetition() function works with repeating fields, not with repeating variables (that aren't really repeating). Instead of :

GetRepetition ( $$variable ; $counter )

use:

$$variable[$counter]

 

Edited by comment

  • Author

Thank you! I did not know that, and it worked, so I appreciate the information.

Pat

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.