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.

Featured Replies

Hi everybody:

I have a product drop down list that shows all products for a certain supplier when making a new order.

The list changes according to the supplier of the products.

 

This is easily done by indicating who the supplier is in the products Table and making the appropriate relationship.

 

Now, I want to shorten the list by eliminating obsolete products (I need to keep history, so I can't simply delete the obsoletes from the products table)

The products table has a field which I can click when a product becomes obsolete.

 

My solution (it works, but I don't like it) is adding a field called obsolete in the purchase orders table, which is automatically set to "no" and I added a second relationship for the value list, so that if product is obsolete, it is no loger valid via the relationship.

 

Any ideas of a better way to do it?

 

Thanks

Carlos

Hi Carlos,

 

One option:  In your Products table, create a calculation which inserts the ProductID only if the product is active and then use THAT ProductID in a new value list called Active Products.  The calculation should be indexed.

 

An example calculation in Products could be similar to:

 

If ( not IsObsolete ; ProductID )

 

... where IsObsolete is a number field with a 1.  Adjust as needed to fit your Obsolete field.

  • Author

Hi LaRetta:

 

Sounds interesting, but if I understand correctly it would entail joining a calculated field, will it hamper performance?

 

Thanks

Carlos

The calculation will be on the child side and it will be stored (do not set set it to unstored).  So yes, it has a small hit but no more than any other technique and less than most. 

So yes, it has a small hit

 

 I don't see why there would be any hit.

I suppose because I believe that everything has a cost, no matter how slight.  We work in nanoseconds and pts and the very minuscule and nothing is everything or absolute except uncertainty.   :smile:

 

But the hit would be the initial index, wouldn't it?  Thank you for affirming that it is very negligible.  I mean, nothing is for free, is it?   :laugh2:


Edited ... I should have said that the impact is less than anything else.  LOL.

But the hit would be the initial index, wouldn't it?

 

Yes. So it does have a cost, but it has already been paid. And it has been paid by waiting at a time where waiting the extra millisecond has no practical significance.

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.