Scenario: I have button and I assigned some actions to it using the add button from action tab, e.g., first action "Go To A Page View" and second action "Execute A Menu Item".
Actually, it's not that difficult to do... But it depends on what you want to achieve, exactly.
Do you just want to jump to a page, or do you want to show an exact point on it? And what menu item do you want to execute?
Mostly it was general question.
But for now. I have pdf portfolio with several pdf files.
I'm not sure this kind of action is going to be possible. You can always try closing the file, though. That might take you back to the parent Portfolio file.
The problem with file closing is that the Cover page is not automatically displayed. So extra clicks are necessary from the menu. Also it is not very user friendly for people not familiar with portfolios.
I tried to add document level script as above for Document Will Close, but it does not work which make sence because in document view the portfolio menu is not available and the script is executed before close and not after close.
For what I need this script works. It extracts the name of the parent file.
var nm = path.split("/").pop();
nm = nm.substring(0, nm.indexOf("|"));