Jump to content

self-join, excluding current item


wald

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

Recommended Posts

I have a layout which is used to track art items that have been ordered by customers. The layout shows a single item, where it is in production, etc.

In this layout, I need to show all of the other items that were ordered with the piece shown. However, I don't want the item shown to appear in that list (that would be confusing to my users).

I easily created a portal with a self-join that shows all of the pieces in the order.

How would I modify the self-join relationship so that it shows all of the other peices in the order, EXCLUDING the currently viewed item?

Thanks.

-wald

Link to comment
Share on other sites

Any ideas how to make such a calculated key?

I tried playing with Status(CurrentRecordID.

I made a field called FM_Static_RecordID to store the RecordID.

Then I made the relationship calculated key:

If( FM_Static_RecordID=Status(CurrentRecordID),"",order_ID)

But this doesn't work.

Any ideas?

Thanks.

-wald

Link to comment
Share on other sites

On the surface, it sounds possible, but I suspect that it's not. At least not without some extremely twisted calculation or some strange programming trick. This reminds me of Groucho Marx's famous remark: "I would never join a club that would have me as a member."

You are trying to do the Filemaker equivalent.

As a workaround, you could use Oceanwest's ValuListItems trick, and use the substitute function to remove the current record data, but it wouldn't be in a portal.

[ November 04, 2001: Message edited by: BobWeaver ]

Link to comment
Share on other sites

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