I have a button on a main view entity detail form that does some work and when that work is finished I need to automatically navigate to the next record in the current group context. Basically I need to simulate the user clicking the "next" icon on the group navigation control.
Has anyone done this who is willing to share your approach (and code!)?
I think I need to inject some javascript to do this but am having difficulty understanding how and whether I can leverage the groupnavigator library (jscript/Sage/Groups/GroupNavigator.js) to invoke this action. I suppose I could use straight javascript to try to get the "next" navigation button element in the dom and invoke its "click" method, but I have to believe there's a more elegant way to do this.
I'd appreciate any ideas and help with this. |