Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

I have a relationship of cases to clients.

I have a portal showing related cases to clients.

I need to add a new related case record using a form since there are so many fields.

Any suggestions?

Posted

Hi bluelinuxguy,

Create a script (called New Case) similar to:

Freeze Window

Go To Layout [ Form Layout based upon Cases ]

New Record Request

Set Field [ Cases::ClientID; Get(ScriptParameter)

Commit Records/Requests

Then Insert > Button and select Perform Script (above script) in Specify. In the Option Script Parameter section, click EDIT and select your Clients::ClientID field. Place the button right above your portal. And in your relationship graph, be sure 'Allow Creation of Related' is unchecked.

LaRetta wink.gif

  • Newbies
Posted

Thank you it seems to work fine.

Now if I add another portal say transactions related to cases.

How would I Select a case in portal 2 so I could view the related transactions

in portal 3?

Posted

You need global (text) gCaseID. Create another TO of Transactions. Join Clients::gCaseID to newTransactions::CaseID. Create highlight for your Cases portal so you will know which Case matches the Transaction displayed. Use global container from anywhere, prefilled with swatch of colored rectangle. Then, from within Cases, create calculation (container) with:

If(CaseID = Clients::gCaseID; WhereItIs::gHighlight)

Disallow Entry into this highlight and attach this script with option script parameter of Cases::CaseID:

Set Field [ Clients::gCaseID; Get(ScriptParameter) ]

Make your Cases fields transparent fill and Arrange > Bring (them) To Front of your highlight. I also add Set Field [ gCaseID; "" ] to my nav buttons on that layout as well as the script which takes Users to that Layout. Otherwise, a prior Transaction can remain in the portal while scrolling Clients. By adding this step, the row unhighlights and the Transaction portal clears when moving. Be sure your Transactions portal (and fields) are based upon this newTransactions TO.

Posted

Table Occurrence. Create another copy of Transactions in your graph and use THAT on your Clients form as your portal - instead of your original Transactions TO. I should have been clearer. wink.gif

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