Jump to content

Making a selection to create relational record


This topic is 6203 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have seen similar problems to this, but everyone has a slightly different flavour.

I am writing my own Asset Equipment db.

3 tables so far: People, Equipment and Assignments, the latter associating people with their items and the table contains only PersID and EqID.

What is tripping me up is that when viewing an item of Equipment I want to choose someone from a list of people and assign that item.

Using a layout showing records from Assignments and passing a global ref to EqID does display the equipment details.

I have a Value List from People displaying PID and Fullname (displaying only Second field) from which i wish to select the person to assign the Equipment.

I cannot get this to work. Am I missing some trick with Value Lists, Layouts or is it the relational side of things?

Any help is most appreciated.

Kind regards

Posted

Here's a demo of how to use a join table and value lists.

However, one caveat, as the value list get really long, you'll need to graduate to a scripted popup window that show a list view or a filtered portal. The user the selects the foreign key from the popup window. I've posted a demo of this somewhere on the forum. Search for popup perhaps.

Topic_193120.zip

Posted

Ah Barbara did the same, then lets do it with drop downs and a merge field.

Now this is one of those things very likely to turn wrong in a mixed environment, since windows coerce into fewer font sizes, so a set of layouts for each platform is required ... so bearing this in mind, will explain if you open a messed up layout under windows.

--sd

assigning2.zip

Posted

Soren, I hate popup menus also, although you can change the borders, etc so that it doesn't look 3D. However, I think that layered fields in layouts are a maintenance problem and might confuse a new user.

Truthfully, I never add records to a portal, it's always scripted with a New button and I don't use popup menus for selecting foreign keys (I usually have a popup filtered portal). But without a good foundation, the advanced techniques are difficult to grasp, imho.

Posted

Thanks for that. I think i can see how it works. Bit unusual.

When was this intro'd to FM Pro and is there any docs, cos my v9 was sorely lacking in terms of documentation.

Posted

I've only read one book, Love and Bowers Special Edition Using FM8 (now updated to FM9). Terrific. Geoff Coffey's website at SixFriedRice has lots of great tips/techniques as does Matt Petrowsky's IsoFileMaker Mag. (Link at top of this webpage).

You might want to subscribe to FM Advisor. There are two editions: beginner and advanced.

Posted

I don't use popup menus for selecting foreign keys (I usually have a popup filtered portal).

Neither do I, I'd rather use something in the vicinity of this:

http://www.fmforums.com/forum/showtopic.php?tid/185959/post/247962/#247962

With or without the straining feature!

--sd

Posted

Hi Barbara

I like the sound of "I don't use popup menus for selecting foreign keys (I usually have a popup filtered portal".

Can you help me understand what one of those is and how i make it work.

C ;-)

Posted

Cool trick SD with the dropdown (ID and merge field)

Can you please explain a bit more what you mean below with things turning wrong?

Thanks,

Sully

Now this is one of those things very likely to turn wrong in a mixed environment, since windows coerce into fewer font sizes, so a set of layouts for each platform is required ... so bearing this in mind, will explain if you open a messed up layout under windows.

--sd

Attachment: assigning2.zip (7.85 KB) 2 View(s) [Download]

This topic is 6203 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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