APEX 5 query tree area
Hi all
I am trying to build a region of the tree. I'm not an expert with who. I had the design of table like this:
ID | Name1 | name2 | Name3 | ,name4 |
---|---|---|---|---|
1 | Top_a | Top_b | Top_c | Top_d |
How can I build a tree like these (with any default template that can expand/collapse)?
Top_a
Top_b
Top_c
Top_d
Please share ideas if someone did!
Thank you
Nabila
Thanks for your advice.
In fact, I can't change the structure of the table. I only works at the front end.
By the way, I solved using unpivot to build my as hierarchical query and I also implemented APEX DTree region plugin to add additional columns to show with tree node. My modified query is:
SELECT THE LEVEL,
name_value,
contract,
Recon,
difference
DE)
Select distinct column_name, regexp_substr (Column,'[[: digit:]] + [[: space:]] *') col_level, name_value;
regexp_substr (Column,'[[: digit:]] + [[: space:]] *')-1 p_level
from my_table
UNPIVOT
(
name_value for col_name (name1, name2, Name3, name4, name5, NAME6, Marque7, NAME8, NAME9, NAME10, NAME11, NAME12, NAME13, NAME14, name15)
)
Union of all the
Select 'Difference', ","Difference", 0
of the double
) accounts.
(select recon, contract of)
Select bookvalue, source_data
from my_table
)
Pivot
(
Sum (Bookvalue)
for source_data ("recon" as recon, 'contract' under contract)
)
) reconciliation
START WITH p_level = 0
CONNECT BY PRIOR Col_level = p_level
Tags: Database
Similar Questions
-
The effects of top 3 (flame, frame photo and tree) are grayed out in photoshop CC2015. How can I activate them?
Well, I have a full card on my Mac, I do not have access to the 3D features, so I mounted make flame, frame and tree on my Windows 7 Dell.
First created a new empty file, then 3D > new mesh layer > 3D postcard workspace if requested.
Then I went to the filter > make > Frame and try the command again. Frame, fire and trees is active and is more gray.
Then on the Dell, I went into Photoshop preferences > sync and transferred all settings. (you can install Photoshop on both machines)
On my Mac, I went into Preferences > settings sync and uploaded everything and rendering filters have been activated on the Mac and they work well.
The point is that you should be able to activate the filters of rendering on your Mac. Otherwise install Photoshop CC 2015 2015 on a second computer, activate the filters it and sync the two as explained above.
-
Hello
I use my apex.oracle.com workspace. I am creating a region of the tree using the emp table. I use the typical Wizard but when I run the page in the tree is not displayed.
This is the query that is generated by the apex with the wizard.
Select case when connect_by_isleaf = 1 then 0
When level = 1 then 1
of another-1
end the status,
level,
'ENAME' as the title,
NULL as an icon,
'EMPNO' as value,
NULL as ToolTip,
NULL as link
of ' #OWNER # '. " EMP.
Start by "MGR" is nothing
connect prior "EMPNO" = "MGR".
siblings arrested by 'ENAME '.
http://Apex.Oracle.com/pls/Apex/f?p=41771:3:8143710593092:Run the page: works fine - no errors.
Run SQL workshop:
No data found.
Very well. Then of course the bound data.
select * from emp
16 rows returned
Large.
Connect to start with the clause:
start with "MGR" is null
Oops. No record where "MGR" is null. Not a tree!
-
Hi all
Have a sample like this:
Can I create a query to achieve a similar result a tree, about like thatWITH view1 as ( select 'SPLNMR31S51F241O' col1,'P3' col2, '201068000011' col3, 'VPNE' COL4 from dual union all select 'SPLNMR31S51F241O' col1,'P3' , '201068000015' , 'VPNE' from dual union all select 'SPLNMR31S51F241O' col1,'P3' , '201068000015' , 'EGAS' from dual union all select 'SPLNMR31S51F2411' col1,'P1' , '201068000016' , 'V001' from dual union all select 'SPLNMR31S51F2411' col1,'P1' , '201068000016' , 'VPNE' from dual union all select 'SPLNMR31S51F2411' col1,'P4' , '201068000018' , 'V001' from dual ) select * from view1; SPLNMR31S51F241O P3 201068000011 VPNE SPLNMR31S51F241O P3 201068000015 VPNE SPLNMR31S51F241O P3 201068000015 EGAS SPLNMR31S51F2411 P1 201068000016 V001 SPLNMR31S51F2411 P1 201068000016 VPNE SPLNMR31S51F2411 P4 201068000018 V001
It'sSPLNMR31S51F241O P3 201068000011 VPNE 201068000015 VPNE EGAS SPLNMR31S51F2411 P1 201068000016 V001 VPNE 201068000018 P4 V001
Thanks for any helpCOL1 COL2 COL3 COL4 COL1 COL2 COL3 COL4
Hello
Which produces the results you want unisng GROUP BY:
SELECT CASE 1 WHEN GROUPING (col2) THEN col1 WHEN GROUPING (col3) THEN ' ' || col2 WHEN GROUPING (col4) THEN ' ' || col3 ELSE ' ' || col4 END AS data -- , col1, col2, col3, col4 FROM view1 GROUP BY GROUPING SETS ( (col1, col2, col3, col4) , (col1, col2, col3) , (col1, col2) , (col1) ) ORDER BY col1 , col2 NULLS FIRST , col3 NULLS FIRST , col4 NULLS FIRST ;
This requires that col1, col2, col3 and col4 are never NULL.
To understand the query works, it can help to a comment the last line of the SELECT clause:
, col1, col2, col3, col4
The main problem with your GROUP BY query shown was that you were the CONSOLIDATION OF individual columns, so you have only one exit line to col4 = "VPNE" (for example). But you want a line of separate output for each line where col4 = 'VPNE' if the other columns are different. For example, the correct results have a line 'VPNE' as col3 = 201068000011, another at 201068000015 and another at 201068000016.
Published by: Frank Kulash, July 9, 2010 10:39Published by: Frank Kulash, July 9, 2010 10:46
-
Query 'drivers are supported.
Whenever I boot, I get a query 'Support of drivers' and then he said: Microsoft checks for pilots and he goes. This just started a few weeks ago and I wonder if I messed up something. I looked at the edits, and he says: I'm updating. Why do this? Thank you.
You definitely have malware on your computer. Driver download sites abound. I would advise that you avoid all. There is a risk now installed on your computer. Delete in the normal uninstall program somewhere. Then download and run ADWcleaner to remove the remaining malware.
Microsoft does not check if your drivers. Windows Update will sometimes not propose updated driver, but this is part of the Windows Update process itself.
I recommend you rely primarily on Windows Update for drivers and only go elsewhere when you have a specific problem. Updates in Windows driver updates are usually listed as optional. Therefore, go there to see if there are those who must be installed in your computer.
-
Query components are in the order
The query results cannot be guaranteed without one would ORDER BY. What happens if the query contains several application components. Although the spare parts request return unordered records, are the parties themselves in order?
SELECT 'First' IN UNION double all THE
SELECT 'Second' FROM Dual;
Is guaranteed second come second?
BrianTkatch wrote:
Solomon, is a good example.
However, in both cases, the t2 were returned after t1. The only thing that changed was the order within the query part itself.
Can you show a case where this is not the case?
I mustn't. Just check set operators: set operators combine the results of two queries of component in one result - not to mention what component query results go first. Same topic:
UNION ALL
All of the rows selected by a query including all duplicates
Once again, no metioning order. So if today Oracle returns the results of the first query first, we cannot count on it. Oracle is free to change in future versions.
SY.
-
I have a scenario where I need to create a hierarchical tree with no hierarchical data.
Appreciate your help in this:
Table structure:
TAB_A
=====
col_id Column col_for col_cat
------ -------- -------- -------
A test1 1 CATA
B test1 1 CATB
C CISC 2 test2
Test3 D 2 CTAC
E test4 CATD 2
F test5 CATD 2
G test6 CATE 3
Test7: 4 CATE
The output of tree structure should be like:
(first level of grouping - col_for)
second group level - col_cat
third level of grouping - Column)
===========
1
| _ CATA
| _ test1
| _ CATB
| _ test1
2
| _ CISC
| _ test2
| test3 _____
| _ CATD
| _ test4
| _ test5
3
| _ CATE
| _ test6
4
| _ CATE
| _ test7
Receive your answer on that.
Thanks in advance.
Hello
Here's an example of how you can use the update ROLLUP. I use the table scott.emp, because I don't have a copy of your table. This query:
SELECT deptno, job, ename
FROM scott.emp
ORDER BY deptno, job, ename
;shows the raw data into scott.emp:
DEPTNO EMPLOYMENT ENAME
---------- --------- ----------
10 REGISTRAR MILLER
MANAGER 10 CLARK
10. THE PRESIDENT KING
20 ANALYST FORD
20 ANALYST SCOTT
THE CLERK 20 ADAMS
20 CLERK SMITH
20 MANAGER JONES
JAMES CLERK 30
30 MANAGER BLAKE
ALLEN SALESMAN 30
SELLER 30 MARTIN
30 SELLER TURNER
WARD SALESMAN 30Say we want to display this data as a hierarchy, where deptno is the parent of employment and employment ename parent, like this:
DEPTNO EMPLOYMENT ENAME
---------- --------- ----------
10
CLERK
MILLER
MANAGER
CLARK
PRESIDENT
KING
20
ANALYST
FORD
SCOTT
CLERK
ADAMS
SMITH
MANAGER
JONES
30
CLERK
JAMES
MANAGER
BLAKE
SELLER
ALLEN
MARTIN
TURNER
WARDOne way to do that is:
SELECT THE CHECK BOX
WHEN you GROUP (employment) = 1
THEN deptno
END AS deptno
CASE
WHEN you GROUP (ename) = 1
THEN work
Work AS
ename
FROM scott.emp e
GROUP BY deptno
ROLLUP (job, ename)
ORDER BY e.deptno
, e.job the FIRST NULLS
, e.ename the FIRST NULLS
; -
I have a form with a list of different selection...
I use dynamic action for validation... Here's the code...
The strange part is mtest we see the following result...
--------------------------------------------------------------------------------
claudecocoviloin
xxx1095226
xxx
SQL > spool off
There is data in the other fields in the list... which included official address 2... and start the problem...
These data are not picked by the code... But as the field data: P185_SUBSCRIBE_nO is visible i.e. 1095226.
Why the apex behave this way... Is it a bug pls confirm...
I use apex 4.02 in 11 g xe...
DECLARE
MSI number (10);
BEGIN
MSI: = 0;
SELECT orginal_date FROM MSI of SUBSCRIBERS WHERE SUBSCRIBE_NO =: P185_SUBSCRIBE_nO;
insert into mtest values ("claudecocoviloin" |: P185_start_issue);
insert into mtest values ("xxx" |: P185_SUBSCRIBE_nO);
insert into mtest values ("xxx" |: p185_off_address2);
IF to_number(:p185_start_issue) < = 100 THEN
insertion in mtest values ("enter dragong");
raise_application_error (-20290, ' will raise error isue the problem');
on the other
null;
END IF;
END;
Published by: pauljohny on January 3, 2012 20:37Paul
If you are - you by using a dynamic type "running PL/SQL" action then you are already using AJAX. And it sounds to me that you are from the code you posted is PL/SQL.
One of the parameters to this dynamic action is Put "Page to go" here all elements on the page that you use in you are PL/SQL code. As the name already suggests these will be submitted and there the value in session state.
Nicolette
-
Vista,
Please also contact the developer or team support for the game, if that's not enough:
Some problems with Flash video playback can be resolved by disabling hardware acceleration in Flash Player settings. (See this article for more information on using the Flash plugin in Firefox).To turn off hardware acceleration in Flash Player:
- Go to the Adobe Flash Player help page.
- Right-click on the Flash Player logo on this page.
- Click settings on the shortcut menu. The Adobe Flash Player settings screen opens.
- Click the icon in the lower left of the Adobe Flash Player settings window to open the display panel.
- Remove the enable hardware accelerationcheck box.
- Click close to close the Adobe Flash Player settings window.
- Restart Firefox.
This Flash Player help - display settings page contains more information about the Flash Player hardware acceleration, if you are interested.
Does this solve the problem? Let us know.
-
APEX new documentation of tree - get selected value
Hello
I played for a while with the new tree APEX and also the sample application that I have not found anything at all on this subject. Unfortunately after a few painful hours, I'm not even able to get is of value (at least, I guess it should be possible somehow to get the value of a selected node). The only documentation that I could find was this:
SQL query
Enter the SQL source for this component.
Examples
select case when connect_by_isleaf = 1 then 0 when level = 1 then 1 else -1 end as status, level, ename as title, 'icon-tree-folder' as icon, empno as value, ename as tooltip, null as link from emp start with mgr is null connect by prior empno = mgr order siblings by ename
More information
- Type: SQL statement
- Supported Bind Variables: Application, Page and System Variables
- The minimum column: 7
- The maximum column: 7
So please, any ideas how to get the value of a selected node would be highly appreciated. There is already a similar question here APEX 5.0 tree , but the proposed solution redirects to the same page and sets the item via the link values. I don't want to redirect anywhere, do anything, I just want to read the value of a selected node.
Thank you very much
Pavel
I simplified my previous solution and she calls a underlying $s directly from select function, is not necessary to create a JS function in a header.
So all we need to do are:
(1) create an element on the page P1_SELECTED_EMP
(2) create a region of the tree and as a source of the region use the following select
select case when connect_by_isleaf = 1 then 0 when level = 1 then 1 else -1 end as status, level, "ENAME" as title, 'fa-folder' as icon, empno as value, empno as tooltip, 'javascript:$s(''P1_SELECTED_EMP'', '''||EMPNO||''')' as link from "#OWNER#"."EMP" start with "MGR" is null connect by prior "EMPNO" = "MGR" order siblings by "ENAME"
-
How to write a hierarchical query so that only the child nodes are displayed?
Hi all
I have a hierarchical query that I use in an area of tree demand APEX and there are nodes that have no children and I am trying to find a way to not display these nodes. Essentially if the user does not have to develop a lot of knots to know that nothing exists at the most detailed level.
The data are based on the Oracle Fusion FND tables but for example purposes here is enough data to illustrate my question:
create table APPL_TAXONOMY_HIERARCHY (SOURCE_MODULE_ID varchar2(30), TARGET_MODULE_ID varchar2(30)); create table APPL_TAXONOMY_TL (module_id varchar2(30), description varchar2(100), user_module_name varchar2(30), language varchar2(5)); create table APPL_TAXONOMY (MODULE_ID varchar2(30), MODULE_NAME varchar2(30), MODULE_TYPE varchar2(10), MODULE_KEY varchar2(30)); create table TABLES (table_name varchar2(30), module_key varchar2(30));
insert into APPL_TAXONOMY_TL values ('1', null, 'Oracle Fusion', 'US' ); insert into APPL_TAXONOMY_TL values ('2', null, 'Financials', 'US' ); insert into APPL_TAXONOMY_TL values ('3', null, 'Human Resources', 'US' ); insert into APPL_TAXONOMY_TL values ('20', null, 'Accounts Payable', 'US' ); insert into APPL_TAXONOMY_TL values ('10', null, 'General Ledger', 'US' ); insert into APPL_TAXONOMY_HIERARCHY values ('1', 'DDDDDDDD'); insert into APPL_TAXONOMY_HIERARCHY values ('2', '1'); insert into APPL_TAXONOMY_HIERARCHY values ('3', '1'); insert into APPL_TAXONOMY_HIERARCHY values ('4', '1'); insert into APPL_TAXONOMY_HIERARCHY values ('10', '2'); insert into APPL_TAXONOMY_HIERARCHY values ('20', '2'); insert into APPL_TAXONOMY values ('1', 'Fusion', 'PROD', 'Fusion'); insert into APPL_TAXONOMY values ('2', 'Financials', 'FAMILY', 'FIN'); insert into APPL_TAXONOMY values ('10', 'GL', 'APP', 'GL'); insert into APPL_TAXONOMY values ('3', 'Human Resources', 'FAMILY', 'HR'); insert into APPL_TAXONOMY values ('20', 'AP', 'APP', 'AP'); insert into tables values ('GL_JE_SOURCES_TL','GL'); insert into tables values ('GL_JE_CATEGORIES','GL');
My hierarchical query is as follows:
with MODULES as ( SELECT h.source_module_id, b.user_module_name, h.target_module_id FROM APPL_TAXONOMY_HIERARCHY H, APPL_TAXONOMY_TL B, APPL_TAXONOMY VL where H.source_module_id = b.module_id and b.module_id = vl.module_id and vl.module_type not in ('PAGE', 'LBA') UNION ALL select distinct table_name, table_name, regexp_substr(table_name,'[^_]+',1,1) from TABLES --needed as a link between TABLES and APPL_TAXONOMY union all select module_key as source_module_id, module_name as user_module_name, module_id as target_module_id from appl_taxonomy VL where VL.module_type = 'APP') SELECT case when connect_by_isleaf = 1 then 0 when level = 1 then 1 else -1 end as status, LEVEL, user_module_name as title, null as icon, ltrim(user_module_name, ' ') as value, null as tooltip, null as link FROM MODULES START WITH source_module_id = '1' CONNECT BY PRIOR source_module_id = target_module_id ORDER SIBLINGS BY user_module_name;
In Oracle APEX, this gives a tree with the appropriate data, you can see here:
https://Apex.Oracle.com/pls/Apex/f?p=32581:29 (username: guest, pw: app_1000);
The SQL of the query results are:
STATUS TITLE LEVEL VALUE ---------- ---------- ------------------------------ ------------------------------
1 1 oracle Fusion Oracle Fusion -1 2 financial tables Financials -1 3 accounts payable Accounts payable 0 4 AP AP -1 General Accounting 3 General Accounting -1 4 GL GL 0 5 GL_JE_CATEGORIES GL_JE_CATEGORIES 0 5 GL_JE_SOURCES_TL GL_JE_SOURCES_TL 0 2 human resources Human resources The lowest level is the name of the table to level 5. HR is not any level under level 2, in the same way, "AP" (level 4) has nothing below, i.e. no level 5 and that's why I don't want to show these nodes. Is this possible with the above query?
Thanks in advance for your suggestions!
John
Hello
The following query will include only the nodes of level = 5 and their ancestors (or descendants):
WITH modules LIKE
(
SELECT h.source_module_id
b.user_module_name AS the title
h.target_module_id
To appl_taxonomy_hierarchy:
appl_taxonomy_tl b
appl_taxonomy vl
WHERE h.source_module_id = b.module_id
AND b.module_id = vl.module_id
AND vl.module_type NOT IN ('PAGE', "LBA")
UNION ALL
SELECT DISTINCT
table-name
table_name
, REGEXP_SUBSTR (table_name, ' [^ _] +')
From the tables - required as a link between the TABLES and APPL_TAXONOMY
UNION ALL
SELECT module_key AS source_module_id
AS user_module_name module_name
module_id AS target_module_id
Of appl_taxonomy vl
WHERE vl.module_type = 'APP '.
)
connect_by_results AS
(
SELECT THE CHECK BOX
WHEN CONNECT_BY_ISLEAF = 1 THEN 0
WHEN LEVEL = 1 THEN 1
OF ANOTHER-1
The END as status
LEVEL AS lvl
title
-, NULL AS icon
, LTRIM (title, "") AS the value
-, NULL as ToolTip
-, Link AS NULL
source_module_id
SYS_CONNECT_BY_PATH (source_module_id - or something unique
, ' ~' - or anything else that may occur in the unique key
) || ' ~' AS the path
ROWNUM AS sort_key
Modules
START WITH source_module_id = '1'
CONNECT BY PRIOR Source_module_id = target_module_id
Brothers and SŒURS of ORDER BY title
)
SELECT the status, lvl, title, value
-, icon, tooltip, link
OF connect_by_results m
WHEN THERE IS)
SELECT 1
OF connect_by_results
WHERE the lvl = 5
AND the path AS ' % ~' | m.source_module_id
|| '~%'
)
ORDER BY sort_key
;
You may notice that subqueries modules and the connect_by_results are essentially what you've posted originally. What was the main request is now called connect_by_results, and it has a couple of additional columns that are necessary in the new main request or the EXISTS subquery.
However, I am suspicious of the 'magic number' 5. Could you have a situation where the sheets you are interested in can be a different levels (for example, some level = 5 and then some, into another branch of the tree, at the LEVEL = 6, or 7 or 4)? If so, post an example. You have need of a Query of Yo-Yo, where you do a bottom-up CONNECT BY query to get the universe of interest, and then make a descendant CONNECT BY query on this set of results.
-
Error in apex.widget.tree export JavaScript?
Hi all
I am referring to an older ad
, because it exactly describes my problem.I have a few pages in my app with widgets tree that everything will work perfectly. Until I tried to export and import my request.
Apex (I'm under 4.2.1.00.08) seems to have a problem with the creation of an export file, because it adds additional quotas.
After another assignment Bug: apex.widget.tree: reproducible in apex.oracle.com I learned that I could try to replace single with double quota. I did, and once again my trees are working well.
I tried again to export/import demand and found a very strange effect: the Javascript for collapse_all and expand_all are managed differently. Here's an excerpt from my export file:
p_button_redirect_url = > 'javascript:apex.widget.tree.collapse_all ("tree67120232678212867");',
...
p_button_redirect_url = > ' javascript:apex.widget.tree.expand_all ('tree' | to_char(67120232678212867+wwv_flow_api.g_id_offset) | ") ») ; ",
What happens here? The first button seems to be ok, now, the error is on the second button.
Y at - it a fix for this bug? Or can someone suggest me one solution other than to edit the export file manually?
Any help is appreciated, thanks!
Birgitt
I found a solution, so I answered my question myself:
First Javascripts must be moved from the action of the button (URL redirect) for dynamic action. Placed JavaScripts here seem to be interpreted correctly when you generate the export file.
And: You can't use real ID for export, because in another environment will create another ID for a tree. It is therefore preferable to working with variables, I used bugs report mentioned at the beginning of my ad:
JavaScript:apex.widget.Tree.expand_all ($('#DIV_GRP_TREE'). Find('.) Tree:first').attr('id'));
Here DIV_GRP_TREE is the static ID, I gave to the region of the tree.
It works very well. However, I would be interested to hear about a bugfix in APEX...
Birgitt
-
How to query these data as a tree structure
Hi, how to write a query to manipulate data like tree structure report? The rules for the structure of the tree are: CORE is always a node root (level 1), level 2 is a location any is not have "/" exclude those beginning of slot with PWR. This tree structure can continue to level 3 and so on
POSITION OF SLOT CORE F1 FAN PWR/1 1 2 1/0 1/1 1/2 1/0/0 1/0/1 G1 G4 G4/0 G4/1 Output, * the order of level 2 is not necessary must begin with the F1, it can be any value of level 2
CORE
F1
FAN
PWR/1
1
1/0
1/0/0
1/0/1
1/1
1/2
2
G1
G4
G4/0
G4/1
Hello
If you want to CONNECT BY queries, you need to know the parent of each element. Here's a way to do it:
WITH got_parent AS
(
SELECT slot_position
CASE
WHEN slot_position = 'CORE '.
THEN NULL
WHEN slot_position NOT LIKE "% / %".
OR slot_position LIKE '% PWR '.
THEN THE "HARD CORE".
Of OTHER SUBSTR (slot_position
1
, INSTR (slot_position, ' / ', - 1)-1
)
END AS parent
FROM table_x
)
SELECT LPAD (' ', 4 * (LEVEL - 1))
|| slot_position AS padded_slot_position
OF got_parent
START WITH parent IS NULL
Parent = slot_position PRIOR CONNECTION
;
If you would care to post CREATE TABLE and INSERT instructions for the sample data, and then I could test this.
An alternative to CONNECT BY would generate a string similar to slot_position, but including all ancestors, such as:
CORE
CORE/1
CORE/1/0
CORE, 1, 0, 0
-
Hello
Is it possible to make ajax tree in Apex 4.0 to 'remember' its state between the loading of the page?
Now, he always returned to his State of origin after reloading the page, for example, a case is closed.
TiinaTiina salvation,
If you want to save the State of your tree, to expand the tree until the last selected node, you can use the attribute "Element of Page selected node" of your tree. Change your tree and tree attributes page, define the 'node selected Page Item' to a page element or application that you want to store the value of the selected node for example P21_SELECTED_NODE, such as used in the demonstration of the tree. Then update the link parameter in your query tree to this element the value of the VALUE of your query parameter. e.g EMPNO. Now, when you select a node and return to the page of the tree, the tree will be extended to the last selected node.
You may find it useful to refer to a thread related to this topic: Re: question of tree
Kind regards
Hilary -
How can I integrate my tree using the tree query in combobox
Hi all
I have a request of tree and you want to use the same query tree to put a tree inside a ComboBox as combobox category in this link
http://forums.Oracle.com/forums/search! default.jspa
Can someone help me to do it... I also use my fine navigation tree.
With respect,
Sunil BhatiaHello
LEVEL is not a real column - it's a nickname, so it shouldn't be on your table, because it generates the SQL.
Your statement could be something like:
SELECT LPAD(' ', 2 * (LEVEL-1), '.') || "NAME" d, "PAGE_NO" r FROM APEX_PAGES WHERE PAGE_NO NOT IN (SELECT "PAGE_NO" FROM "#OWNER#"."APEX_USER_PAGES" WHERE "APP_USER" = :APP_USER) START WITH PAGE_NO = 1 CONNECT BY PRIOR PAGE_NO = PARENT_PAGE_NO
I don't know what would be your starting page number - it would be to the top of the tree - so I just put 1 in this example.
Here is a page that I put in place using my example of EMP table, just to show what would be the result: [http://apex.oracle.com/pls/otn/f?p=35917:22]
Andy
Maybe you are looking for
-
Went toolbar, navigation, menu, advance, home button, the button previous and all gone coz I was playing with the removal of the options of this and that... what remains is the Yahoo address pane and the button Zoom-close, nothing to click...
-
Replacing DVD drive on Satellite 1400
I have laptop Satellite 1400-153. Where are the screws for the DVD drive located please?
-
Satellite L30-101 - screen is black
Hello I don't know what is happening here, but at the start of the laptop screen is black the ilight power is on and I can hear the boot HARD drive, but the screen is blank all ideasThank youSarra
-
I tried to cancel a download that happened on its second day, the only thing he said to me, it's the application in place has an estimated time of 1 second.
-
I just tried to install creative cloud, so I could try the trial version of acrobat pro. When I open the creative cloud, I don't see the menu bars in the application. I see only a black screen with the "Cc" logo at the top. When I click on settings