Forum Discussion
Hi Skoleva,
that´s a good question! But there are not many samples regarding this one. To be honest, I don´t know a single one.
In regular Forms settings the focus to certain fields is pretty easy. But relationship grids are a bit different.
You are correct that you have to use gridApplet. There are some focus related functions, but I never tried them by myself and don´t know the variables that are required for the functions.
gridApplet should support these two functions:
- "editCell" - moves focus to cell and switch it to the editable mode.
- "requestFocus" - sets input focus to the control.
I don´t have any samples, but I would try something like this:
var g = gridApplet;
g.requestFocus(relationshipID, colIndex);
OR
g.requestFocus(colIndex);
OR
g.editCell(relationshipID, colIndex)
Best regards
Angela