I’ve red couple post suggesting “parent.document.querySelector(’.knime-step-next-button’)” and trigger event on this object, but for me, this selection fails. Result of it is null/undefined.
Any hints what I am doing wrong would be greatly appreciated
Are you using the new or the old WebPortal? The solution I gave before here in the forum was for the old WebPortal. It also depends on the number of nested components your Generic JS View is in.
Thanks for the your response. It is the new WebPortal, it came with 4.2.2 KNIME update. The Generic JS Views are in the components, in the workflow’s/project’s top layer. I tend to try to avoid nesting …
in that case you can use this:
parent.document.querySelector('.right-button-subcontainer .button.primary').dispatchEvent(new Event('click'));
However, BIG DISCLAIMER! This might change at any time. It queries the button using quite generic CSS classes and in the future there might theoretically be a similar button with the same classes that could be triggered instead. It does work now, but don’t count on it forever.
Thank you, it worked beautifully
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.