coffeec Posted August 30, 2005 Posted August 30, 2005 Is there anyway of using a find request to find related records using a current field value? EG. A client can have many products. when on the products layout, I want a button to be clicked to view all the products related to that client only. How can this be accomplished? If I need to use a gloabl field, can you give an explanation as to how because I am a little confused on how to use gloabl fields. Thanks in advance.
sbg2 Posted August 30, 2005 Posted August 30, 2005 A self-join relationship of the Products table where Products::ID_Client = ProductsSelfJoin::ID_Client and a portal showing the needed fields from the ProductsSelfJoin TO. Start from the first TO and define what you want to find in the second TO.... You want to find all Product records that match the current Products field ID_Client. So a self join and portal can be used to show only related records... ie only show records where the ID_Client field equals the current ID_Client.
coffeec Posted August 30, 2005 Author Posted August 30, 2005 I am looking too avoid using a portal here, I just want the found set to be displaye din the current layout, would the process be the same?
sbg2 Posted August 30, 2005 Posted August 30, 2005 The Button should Perform Script and use the ID_Client as the Script Parameter. My find Script = Enter Find Mode Set Field [iD_Client;Get(ScriptParameter)] Perform Find
Recommended Posts
This topic is 7027 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 accountSign in
Already have an account? Sign in here.
Sign In Now