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.

Calculating and Adding Type to record

Featured Replies

I am trying to calculate a specific class to a client base.

For example, I have customerA, CustomerB, and CustomerC. The type of client needs to be assigned as either, Mens, Womens, or Misc.

I set my Calculation to be

Case(ClientName= "CustomerA"; "Mens; ClientName= "CustomerB"; "Womens" ; "Misc"

This seems to work fine, but if I have many Customer names, is there an easier way then to type each one as a case. I tried stringing them together as Case(ClientName= "CustomerA" or "CustomerB" or "CustomerB" ; Mens…

But this did not seem to work at all.

Any suggestions or maybe a different method? Im at a loss.

Edited by Guest

Men, women, and MISC???

Why is it necessary to have Misc?

Why the Two fields? Why not one field for names, and one Field to denote the sex (i.e. Male, Female)

Also, you might want to have more than one field for the names, (i.e. LastNames, FirstName, Middle Initial or Name) the more you break you date up into fields, the easier it will to use, find, sort, etc. later for reports.

If you don't need the Misc, you can shorten the case calculation to

Case (not IsEmpty ( CustomerA ) ; "M"; "W")

Edited by Guest

  • Author

The mens and womens does not refer to their sex. It is the category of magazine that the customer prints. Maybe I worded it wrong.

Trying to have it automatically know that when customerA is entered, then it is in the men's magazine category, etc.

The best way to go about assigning types to clients is to create a table ClientTypes, that has just an ID and a TypeName field. Create a value list "ClientTypes" which consists of the ID and the Name, but only displays the second field (name).

Now you have client types ready to go.

If clients have only one type:

Create a field in clients, _kF_ClientTypeID to store the ClientTypeID. You can set _kF_ClientTypeID to be a popup menu field using the value list "ClientTypes."

If clients can be assigned more than one type, it's a bit more complicated. You'd need a join table that stores the combinations of ClientIDs and ClientTypeIDs. Then, I'd probably put a portal to this join table on the Client form view.

The mens and womens does not refer to their sex. It is the category of magazine that the customer prints. Maybe I worded it wrong.

Trying to have it automatically know that when customerA is entered, then it is in the men's magazine category, etc.

I'm thinking that you're assigning types to customers (clients) and now creating another form (order) for that customer. Just look back thru the relationships order->client->ClientTypes.

Topic_190986.zip

Edited by Guest
added attachment

  • Author

Thank you, that will work perfect for what I am trying.

Now if I can only figure out why I volunteered to do this I will be fine. Just about time to call a consultant I think. :(

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.