Jump to content

Go to Related Record Issue


Pio Soto

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

Recommended Posts

Hi,

My issue is that my customer layout has a script trigger on LayOutEnter that sorts my customers portal list by "Active" customers,

but when I do a go to related record from another table say from quotes or any other the customer layout does not load that customer

or show my related customer because the OnLayoutEnter script trigger changes it, I would like it to go to the related customer and also sort it by "Active"

on the list.

Hope someone can help me with this.

Thanks,

Pio

Link to comment
Share on other sites

If your customer list has an OnLayoutEnter sort, that should not affect the found set. When you say “sort,“ do you instead mean find active?
 

also, gtrr from quote to customer would typically end on a customer form view. The trigger for active wouldn’t make sense on a form layout. 

Link to comment
Share on other sites

What I need is that when I go to related record it shows active customers only and it goes to the related record on my customer layout, but if I go into my customer layout from the navigation bar I wanted to have my customer list show only active customers and scroll to the first record.

 

Link to comment
Share on other sites

  • 2 weeks later...

If you like, you could make your Go to Related Record script do something like:

Set Variable [ $$disableTriggers; Value: 1 ]
Go to Related Record [ ... ]
Set Variable [ $$disableTriggers; Value: "" ]

and then wrap your OnLayoutEnter script in an If statement:

If [ not $$disableTriggers ]
# DO THE ACTION
End If

Personally, I would prefer to script the navigation so that a script trigger would not be required.

 

Link to comment
Share on other sites

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