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.

Lookup issue - how to do it?

Featured Replies

I'm having in issue, where I need to be able to enter a value into a field (JobIdent); eg: "20080426", and I need to lookup via the Job table the actual ID (primary key) (JobID) and set that value in the field.

I'm having the same issue with the Employee and Code input, but once the correct method is found they can be fixed aswell.

All the tables use a sequence for a primary key, and that's how they are all related, but each table also has a 2nd (more human friendly) identifier that the user understands, and I need to convert from that to the database id in order to store records.

I've attached a screenshot that I hope helps. You can see there are 8 jobs in the system (shown in select box), if you select one of those, the 2 fields to the left are automatically populated by filemaker. But the client doesn't want to use a pulldown/select box, they want to instead enter "20080426" into a textbox, and then tab to the next input (less mouse usage). The system would obviously lookup that entered value to ensure it exists, and then set the field value to the actual Primary key (the serial)

Thanks for any input.

issue.png

Customers often cling to meaningful ID numbers. Looking up a unique ID from entry of a possible non-unique ID does not guarantee that you will indeed have no problems. What if they assign their meaningful ID to two records. FM will lookup the first it finds. (You probably won't know that there are more than one).

So, I vote for addressing the interface issue that is driving their need for meaningful ids. Can you give them portal selections, popups, new records from a parent? finds that result in a list view, from which they select a record?

  • Author

With the correct schema this is not possible, you set the field to unique and the db enforces that it remains unique.

Meaningful is important to users, say we were talking about instead of a larger entity. eg. Countries; filemaker allows you to use the country name (text field, as the primary key and link it to other entities). But this break standard data normalization rules. Relationships in most major db's I've used run much faster when they are int based Fk's.

The problem is the users, the current application they are using was written on DOS 3.xx, it's text based, no mouse, and designed for lots of very fast key/tabing entry. I've seen them input 100's of records in a matter of 2-3 minutes.

The current interface uses lists/select boxes and works perfectly, but the end result again is it takes them much longer to complete the same amount of work ;(

Add a second TO of the Jobs table. Create a "Job ID entry" field and relate that to the user-sensible Job ID field. Have your REAL key field set to Lookup the real Job ID key based on that relationship.

Users enter their key into their field and the real key is populated.

Edited by Guest

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.