【发布时间】:2020-02-17 23:23:13
【问题描述】:
这是 5 天前发布的“APEX 行选择器”的后续内容。
问题是从交互式网格中收集多个值。从提供的优秀链接到提供的帖子,我能够实现这一点。但是,项目的下一部分是打开一个编辑对话框页面并更新多个值。
我将这段代码添加到交互式网格的属性中:
function (config)
{
var $ = apex.jQuery,
toolbarData = $.apex.interactiveGrid.copyDefaultToolbar(),
toolbarGroup = toolbarData.toolbarFind("actions3");
toolbarGroup.controls.push(
{
type: "BUTTON",
action: "updateCar",
label: "Edit Selected Cars",
hot: true,
});
config.toolbarData = toolbarData;
config.initActions = function (actions)
{
// Defining the action for activate button
actions.add(
{
name: "updateCar",
label: "Edit Selected Cars",
action: updateCar
});
}
function updateCar(event, focusElement)
{
var i, records, model, record,
view = apex.region("ig_car").widget().interactiveGrid("getCurrentView");
var vid = "";
model = view.model;
records = view.getSelectedRecords();
if (records.length > 0)
{
for (i = 0; i < records.length; i++)
{
record = records[i];
alert("Under Development " + record[1]);
vid = vid + record[1] + "||";
apex.item("P18_CAR").setValue(vid);
// need to open next page here and pass parameters
}
}
}
return config;
}
我需要知道如何打开一个表单并将参数值传递给 oracle 更新脚本。
感谢您提供的任何帮助。我确实找到了一些帖子,但我真的需要一个很好的例子。我已经尝试了一切都无济于事。
【问题讨论】:
标签: oracle-apex