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 of ID Field

Featured Replies

Disclaimer: My company built their database on "first name" & "last name" relationships as well as non-unique project numbers. I am trying to fix it and keep it as close to what they are used to as possible.

That said...

I need to recreate their Transmittals so they can ship stuff out. I have a simple one to many relationship. One Project can have many Transmittals. I have a foreign key <_kf_ProjectID> on the layout.

This field is tied to a value list that displays all of the projects. This all works. How can I get it to filter further to show only the Acitve projects?

After that I'd like to know if it can be pared down further to filter as the project name is typed in.

I'd like to do all of this in the cleanest way possible.

Thanks.

One approach is to create a field in Projects, __kP_ProjectActiveID_c which = the __kP_ProjectID if the flag_StatusActive=1.

Then, create a value list using __kP_ProjectActiveID_c and ProjectName, showing only the second value. This will give you a list of only active projects (IDs and Names).

Unfortunately, you cannot easily have both a value list that "hides" the ID and support for type ahead. Value lists that hide the ID need to be popup menus, and they don't support type ahead.

If your Project list is too long for a popup, I usually change over to a popup window of Projects in either a list view, or a filtered portal. (See this thread)

  • Author

Bcooney,

Thank you for understanding my need. I'm going to try this now.

I think I'd be ok using the pop up window because we are talking about several hundred projects.

I'll take a stab at it and let you know if I have any problems.

Glad to help. Another idea is to create a new transmittal record, starting from a Project form, and only allow one if the Project is Active.

The basic script is something like:

//On layout Project_form

Set Variable $projID to Project:}:(__kP_ProjectID

If (flag_StatusActive =1)

Go to Layout (Transmittal_form)

New Record

Set Field (Transmittal::o_kF_ProjectID, $projID)

Else

Show Dialog, "You cannot create a transmittal for this project because it is no longer active."

End If

  • Author

I can't seem to get the value list to show the correct records. It shows all projects. Also the link to the thread for the pop up window isn't working. Do you have the thread id?

Hi Dana,

The link is working. It is Topic#185517.

The value list must use two fields, the calculated ID that only contains a value if the project is active, and the second field, project name.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.