中将单行视图设置为默认值

中将单行视图设置为默认值

本文介绍了如何在 Oracle APEX 中将单行视图设置为默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个主交互式网格,在侧面提供一个细节交互式网格,它总是只有一行.我希望以单行格式显示这个详细的交互式网格.我已经查看了所有属性并在谷歌上搜索了几个小时,但我很难过.

I have a master interactive grid feeding a detail interactive grid on the side that always has exactly one row.I want this detail interactive grid to be displayed in single row format.I have looked at all the attributes and googled it for hours but I am stumped.

有什么想法吗?

单行视图如下所示:http://prntscr.com/moi8ra

推荐答案

要使交互式网格默认显示在单行视图中(就像在行操作菜单中选择单行视图"一样),输入以下代码进入页面的属性/设置(不是交互式网格),部分 JavaScript > 在页面加载时执行

to make an interactive grid show up in single row view by default (like the selection "Single row view" in the row actions menu), put the following code into the attributes / settings of your PAGE (NOT your interactive grid), section JavaScript > Execute when page loads

var ig$ = apex.region("StaticID").widget();
ig$.interactiveGrid("getActions").invoke("single-row-view");

StaticID 替换为交互式网格的 StaticID.

Replace StaticID with the StaticID of your interactive grid.

我知道这是旧的,但它在我的谷歌搜索结果之上,没有正确回答问题.我有同样的问题,我已经在网上搜索了几个小时来了解如何实现这一点.一旦你找到它,这很容易.;-)

I know that this is old, but it was on top of my google search results, without the question being answered correctly.I had the same question , and I have been searching the web for hours on how to accomplish this. And it's so easy, once you found it. ;-)

亲切的问候,娜丁

这篇关于如何在 Oracle APEX 中将单行视图设置为默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 20:14