Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

IG grid gotoCell with edit mode, user still has to click once before seeing input focus

seanzh78 minutes ago — edited 76 minutes ago

Hi,

Our Apex is 24.2.10

I have a master-detail IG grids, please see screen shot. GotoCell falls a little bit short, I still have to use mouseclick to get the cell in truly focus mode.. Any suggestion I can bypass MouseClick here to get the field in keyboard focus mode? Thank you!

var grid = apex.region("CART_IG_ID").widget().interactiveGrid("getViews", "grid");
var records = apex.region("CART_IG_ID").call("getSelectedRecords");
var model = grid.model;
var recordId = model.getRecordId(records[0]);
apex.region("CART_IG_ID").widget().interactiveGrid("getActions").set("edit", true);
// Use gotoCell to set focus to the desired cell
grid.view$.grid("gotoCell", recordId,"SKU");
var sku=document.getElementById("SKU_ID");
sku.click();// NOT working

gotocell.png

Comments
Post Details
Added 78 minutes ago
1 comment
15 views