I have a hyperlinked method running from within a tabpanel. The method sets a global variable and makes the form jump to another tabindex.
This works OK with one exception: I need to click twice to make it react
The hyperlinked method (inside the tabpanel) is called from inside a global field displaying a htmltable. The method is anchored with the javascript:… anchor tag.
Two problems:
- I need to doubleclick to make it work
- when I want to go back to the tabindex the call initiated from, the method executes again (the second time) placing me back on the programmed tabindex. I click again (going back to the first tabindex) and everything is fine. (except my mental state
)
Any ideas ?
This is the code giving the problem:
globals.ShowThisStatusInschrijving = arguments[0]
forms.projecten_detail.elements.tabs_70.tabIndex = 6
One thought: Have your tried to force a refresh of the tabpanel after jumping?
Odysseus:
I have a hyperlinked method running from within a tabpanel. The method sets a global variable and makes the form jump to another tabindex.
This works OK with one exception: I need to click twice to make it react
The hyperlinked method (inside the tabpanel) is called from inside a global field displaying a htmltable. The method is anchored with the javascript:… anchor tag.
Two problems:
- I need to doubleclick to make it work
If it’l linked to a list view, you need to click twice because the first click place the focus on the record and the second executes the method.
Just guessing…
No, the triggering tabpanel is in record view.
And I thought of this explanation too, but than you can’t explain why going back to the triggering tab automagicly executes the second click (throwing you back on the destination tab ONCE, the second time , I pressume when the second click is “digested”, all is well and I can go back to the triggering tab panel.
To resume: I have to click twice before an inline javascript method is executed (inline in a html formatted global field). Then the method executes (switches to another tabpane - inside the same tabpanel).
When I come back to the triggering tabpane (by clicking on its tab) the second click re-executes the method (putting me back on the other tabpane). When I click for the second time on the tab, everything functions as normal again.
Anymore suggestions, as this is baffling me completely
this really seems to be that something is first selected or must go into edit mode and the second click executes the method.
But for this to fully see i need to see an example solution
Restarting Servoy cured the problem ![Rolling Eyes :roll:]()