Pio Soto Posted September 6, 2020 Share Posted September 6, 2020 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 More sharing options...
bcooney Posted September 7, 2020 Share Posted September 7, 2020 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 More sharing options...
Pio Soto Posted September 7, 2020 Author Share Posted September 7, 2020 Hi, sorry, yes meant find active customers and the sorts by name This is my OnLayoutEnter script: and this is my customer layout: This is my GTRR: Thank you! Link to comment Share on other sites More sharing options...
Steve Martino Posted September 7, 2020 Share Posted September 7, 2020 In your script, after entering find mode, you shouldn't use both 'Set Field' and Perform Find [Restore]. I'm also confused as to what you want, and what it is doing/not doing. Link to comment Share on other sites More sharing options...
Pio Soto Posted September 7, 2020 Author Share Posted September 7, 2020 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 More sharing options...
Pio Soto Posted September 16, 2020 Author Share Posted September 16, 2020 Sorry, I was not making myself clear, what i need is that my Go to Related Record script cancels or overrules my On Layout Enter Script. Thank you. Link to comment Share on other sites More sharing options...
comment Posted September 16, 2020 Share Posted September 16, 2020 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 More sharing options...
Pio Soto Posted September 17, 2020 Author Share Posted September 17, 2020 Thank you! that works great. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now