How to set single row view as default in Oracle APEX

时光怂恿深爱的人放手 提交于 2021-02-11 15:45:20

问题


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.

Any ideas?

Single row view looks like this: http://prntscr.com/moi8ra


回答1:


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");

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. ;-)

Kind Regards, Nadine



来源:https://stackoverflow.com/questions/54810442/how-to-set-single-row-view-as-default-in-oracle-apex

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!