I am using a script to auto save a PDF, problem is if cursor is in portal field I get all the records from that table. If I click out of the portal , my script will run the right way. Any ideas would be appreciated...
Either use script step 'commit record' or 'go to field' with no field selected.
Both will act like click on background layout and leave any field.
Is your portal filtered?
otherwise, it shouldn’t make a difference whether the focus is on a given portal row or not.
GTRR, from the active portal row makes that portal record the current record in the found set thus produced in the new window, but all the related records are still in the found set to be sorted and saved as a PDF.
The exception to that is if you set up a portal filter. Then GTRR from the active row gets you a found set of only the records that pass the filter while GTRR from the layout‘s record gets you all related records.
In adfirion to the advice alteady given, you can move the button or trigger to a location outside of the portal.
Thanks Jens, it works.
Plc check any answer as correct.
Retrieving data ...