Jump to content

Need help on Portal


Mickdn

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

Recommended Posts

All I wish to do is have a Portal display certain items after a Find. After a week searching, reading and testing I still can't find the right solution, maybe you people can help? I think most of my problem is because I want the Portal on the same layout. File is attached which should explain what I'm after.

Many Thanks

FAQ_File.zip

Link to comment
Share on other sites

Portals display related records, not found sets.

Display found sets in list views. That's what they are designed for.

There are some interestings things that can be done with portals based on relationships that reference global fields: the portal will display any record whose matching key is listed in the global field.

The trick is to get the right key field values into the global, but it's usually not hard though sometimes time consuming, and it has hard limitations on the maximum number of keys that can be listed because the field can contain a maximum 2GB of text.

Link to comment
Share on other sites

My first question is: why not simply use a list instead of a portal?

If you must use a portal, you might script the process along these lines:

1. Find

2. Capture ID's of found set into a global field

With a relationship from the global to the record ID, you'll show the found records in the portal.

Actually now that I think about it, I have another question: why do a Find?

You can simply make a relationship based on Make and Model and show the related records in a portal. No Find or script necessary.

Link to comment
Share on other sites

Thanks on the speedy reply, why not use a list you ask? Simply, I don't want one. I'd like just a nice clean page without, new layouts or windows jumping up everwhere, just fussy I guess. Your suggestion of simply make a relationship to Model and Make is great, problem is, over the last week I've tried every combination of relationships I could think of, except for the right one. Any help in this direction would be great.

Link to comment
Share on other sites

I might be a little late to this discussion, but I'm having a similar problem, but with a slightly more complicated objective than Mickdn.

According to the FMP documentation:

"You can enter find criteria in related fields that are displayed in a portal or directly on a layout."

and

"When you perform a find in a related field, FileMaker Pro displays all the records that have a related record matching the criteria you enter. For example, in an invoice file that is displaying line items as related records in a portal, you could find all invoices listing a computer by typing Computer in the Item field in the portal."

This does not seem to work per the documentation, and for my problem, this seems to be the most straightforward solution...

Major bummer...

Gordie

Link to comment
Share on other sites

Just because YOU cannot get it to work doesn't mean it doesn't work for everybody else. :)

When testing, make sure there are some related records that match the find criteria. Otherwise you'll be doing everythign right but still not get a satisfactory result.

Link to comment
Share on other sites

Uhhh...it certainly would not be the first time I had buffooned something....

In my situation, my portal showed four related records. I searched on words in a particular field that were only in a subset of the related records that were displayed at the time, but all records were returned (not expected). If I searched using a term that was in none of the records, none returned (as would be expected).

I doublechecked the original records to make sure that I wasn't missing something, but could find no reason that a record with "Solution" in the field of interest was found when I searched on "Risk" in that same field.

Maybe I'm just screwing up my understanding of the relationship between related records and found sets such that FMP is not just looking at the actual field on which I'm searching, but actually looking at a record that is related to the related record (kind of a double indirection or something).

I'll tinker some more...

Gordie

Link to comment
Share on other sites

Hmmm, the way that finds in portals work can be confusing.

Take this set of records, wehere each master record has four related records that have a City field in them:

Master 1

Related data = Tokyo; Sydney; Calgary; London

Master 2

Related data = Melbourne; Wellington; Shanghai; London

Master 3

Related data = Sydney; New York; Newcastle; Paris

A search in the portal for "London" will return Master 1 and Master 2 records, because these have a related record with "London" in the City field. But you'll also see other cities in the portals of the master records, and if the portal is small the matching related record might not even be visible.

Link to comment
Share on other sites

I have a file in FMPro v 6.0 that I am trying to get the portal to work. I want to use the portal to "filter" a list of classes based up the year (Number) and season (text) and utilizing global fields to determine what I am filtering.

When I create the relationship I get the dialog: This relationship will not work because the field "::g.year.drill" cannot be indexed. PROCEED ANYWAY?

Of course I click yes. And, of course, it doesn't work.

Is there a workaround?

Link to comment
Share on other sites

This topic is 6191 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.