Hi
In the tabSelected method (shown below), I am trying to set focus to a field in the DynamicForm pane called “AddAdd1” (the first item in the dynamic form). Despite using focusInItem(), focus isn’t being set. As the code shows, I have used the actual name of the form (“addForm” - now commented out) and the “tabPane” reference to said form with, unfortunately, no joy.
However, when stepping through the code, at the point that tabSelected fires, the DynamicForm isn’t visible on the tab. It actually becomes visible after tabSelected has exited. It seems reasonable that “focusInItem” needs a visible form so maybe this has something to do with the problem?
I have successfully set focus to the same item in the same dynamic form when not in a tab pane. If you can help me achieve this in the tab, it would be appreciated.
Thanks.
isc.TabSet.create({
ID: "addTabSet",
tabSelected: function(tabNum, tabPane, ID, tab) {
if (ID && ID == "edit") {
//addForm.editRecord(addGrid.getSelectedRecord())
//addForm.focusInItem("AddAdd1");
tabPane.editRecord(addGrid.getSelectedRecord());
tabPane.focusInItem("AddAdd1");
}
},
tabs: [
{
ID: "list",
title: "Addresses",
pane: addGrid
}
,{
ID: "edit",
title: "Edit",
pane: addForm
}]
});
The support in this forum is tremendous, and I also realise that the Isomorphic guys have to attend to higher priority support enquiries that emanate from other paying users.
Whilst I am genuinely interested/eager to obtain some kind of response to my original message in this thread, I am perfectly happy to wait, given my comments above.
However, so I am not waiting in vain :), would I be right to assume that in a case like this where some kind of reply has not been forthcoming in the usual time-frame for this forum, the question may not have an obvious answer and will be considered at an appropriate time, relative to priority?
This is no problem at all, no complaints, I am happy to wait - it’s just that the last time I bumped a thread I was told that there was no need to panic!
(BTW, I wasn’t)
So, it would be cool to understand what processes you may go though in this type of scenario so that I (and “we” on this forum), can avoid “mithering” you about something that is “in the queue” to be considered by ISC and hasn’t just been unwittingly missed or overlooked.
Many thanks.
Hi - “autoFocus” seems to give me exactly what I need. Thanks.
Unable to set focus in 1st field in tab.
Hi,
I am having four tab. when i navigate to third tab and come to 1st tab, the focus should be set to the 1st field of the form in 1st tab.
Kindly help me on setting the focus.
Regards,
Karthick
Unable to set focus in 1st field in tab.
Hi
It worked. Used autoFocus property in dynamic form level.
Regards,
Karthick