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.

Identifying Business Purchases

Featured Replies

Hi,

I have been constructing a database for my daughter which tracks orders to her suppliers. When she puts a personal order in, some products are for personal use and others are promotional. I want to identify these graphically when filling in the order. This would work similar to a radio button but without two buttons. That is she clicks on a button and the field changes from a green to a red graphic. I have three fields; one holds the graphics, one displays the graphics and one indicates the type of purchase numerically (1 or 0), all repeating fields. The order pages consist of fields with vertical repeating values so as an item is entered, the button is clicked to red if neccessary and the numerical field ID the item as a business purchase. I have been trying calculations along the lines of

Set Field ("BPField"-10, "GetRepetition(BP Graphics, 2)")

without success. I have also tried using a calculation field as the graphics display field but only successful for the first repetition.

I had a sample file that I found on these forums for fancy radio buttons and checkboxes using case but have since lost it.

As always, any help is appreciated.

Dibbs

  • Author

Hi again,

I have solved this problem in the short term by creating 2 container fields to hold the graphics rather than one with repetitions.

Dibbs

IIRC, there was a bug in earlier versions affecting the use of GetRepetition() in a repeating calculation field.

In any case, using repeating fields for order items is not a good thing - you should use related records instead.

  • Author

How would related records make it better? Would you mind taking the time to expand on your comment?

Thanks

Dibbs

With a separate record per item, you can group your items by product (or by any other attribute) and get some meaningful reports out of the data. There are other aspects as well, but IMHO this is the most important one.

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.