- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
基本上是这样的:
每当我在左侧的交互式网格中选择其中一行时,“选择更改 [交互式网格]”动态操作会触发并在右侧的交互式网格中加载一些信息。
我可以在上面添加新行,我希望这样,在我点击“保存”(图中未显示,但它位于“复制”按钮上方)后,页面上会触发一个动态操作加载并选择左侧交互式网格中先前聚焦的行。
我找到了“.closest(selector)”函数来尝试,就像这样:
$(".getRowId").on('click',function()
{
var currentRow = $(this).closest('tr');
alert(currentRow.attr('id'));
}
);
我在页面加载上使用的函数是:
$(document).ready(function()
{
$(currentRow(id)).focus();
}
);
“.getRowId”函数在“选择更改 [交互式网格]”函数中,所以我想知道这是否是它不起作用的原因。我是否应该在“单击时”DA 上使用该功能才能使其正常工作?
最佳答案
我不太明白为什么需要提交页面,我会尝试使用默认按钮来保存(插入和更新)交互式网格。此按钮不提交页面并保留所选值。
如果你需要提交页面,我想你的解决方案应该是这样的:
真正的 Action 是“执行javascript代码”
//set the static id field on your interactive grid and put the value on gridID variable
var gridID = "dept";
var ig$ = apex.region(gridID).widget();
var grid = ig$.interactiveGrid("getViews","grid");
var selectedRecord = grid.getSelectedRecords();
console.log(selectedRecord);
localStorage.setItem('lastSelectedRecord', JSON.stringify(selectedRecord));
真正的 Action 是“执行javascript代码”
//set the static id field on your interactive grid and put the value on gridID variable
var gridID = "dept";
var ig$ = apex.region(gridID).widget();
var grid = ig$.interactiveGrid("getViews","grid");
grid.setSelectedRecords(JSON.parse(localStorage.getItem('lastSelectedRecord')));
在这里测试https://apex.oracle.com/pls/apex/f?p=150297:35点击“Save22”按钮
关于javascript - 页面提交后将焦点设置到 IG 中先前选择的行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53061135/
我的应用将 SceneKit 内容的“页面”与图像和文本交替。当我从图像页面前进到新的 SceneKit 页面时,前一个 SceneKit 页面中的内容会短暂显示,然后被新内容替换。时髦。 我只使用一
我正在尝试处理(在 C# 中)包含一些数字数据的大型数据文件。给定一个整数数组,如何对其进行拆分/分组,以便如果下一个 n(两个或更多)是负数,则前一个 n 元素被分组。例如,在下面的数组中,应该使用
刚接触promises,研究过。所以我的代码和我的理解: sql.connect(config).then(function(connection) { return connection.req
目前我在 if (roobaf) block 中有一些代码,这取决于 foo 和 bar 是否为假。我可以在 block 内再次检查这些条件,但感觉像是不必要的代码重复。 if (foo) {
我是一名优秀的程序员,十分优秀!