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.

Filtering records based on availability

Featured Replies

Hi all,

 

I need to filter records based on Product availability.

 

I have a table, Products. There are thousands of records, each having different product code in it.

Also, I have a table, Project. When i create a project & i use different products in it.

 

Suppose I created a Project ABC for the duration 10/6/2013 to 15/6/2013. Between these duration, I will get a list of available products during these period. and from that i will choose the product which i require.  i choose a Product X for this duration.

 

Again, when i create a Project XYZ for the duration 12/6/2013 to 14/6/2013. Product X should not be available in the list.

 

Please, give a logic or example file to solve this out.

 

Thanks.

Hi,

Looking into your requirement I am thinking that you are want a to setup rental type functionality in your project section. For this you can use many ways but if you want to solve this in a simple way here is a file which can give you a solution I have attached  for the same. Here its just checking the availability of product in the date range slot from its occupier and showing available products. Go through it and let me know if you will need any help there.

 

If you are using FM12 then you can also use the Execute SQL function to find out the available products for the date range slot but that need some complex select query :-)

 

 

 

with regards,

 

Project.zip

  • Author

Hi Manjit,

 

Thanks for the reply.

 

I have attached the file actually what i need and mentioned the details. If you can look at it , it will very helpful for me.

 

Thanks.

 

Deepak

 

 

Projects.zip

You have not supplied enough information for anybody to give you an answer.

 

Are there multiple time slots per project?

 

That would suggest that there might be a project time slot table; with projectID; start; and end.

 

What does it mean for a product to be available? Can a product have multiple time slots?

 

If a product is used in one project time slot, is it still available for use in other projects for that time slot?

Hi Deepak,

 

Please the updated file which can fit to your requirements.

 

 

 

with regards,

Manjit

ProjectV2.zip

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.