Find the node of a tree leaf in oracle apex 5
Hello
I use TREE in oracle apex 5.0. I created a tree and an IR.
For example, when the user clicks on the evolution of the event tree leaf node will occur and data of the selected node will be displayed in IR (on the change event of DA).
Right now I am able to show that one of the values of node root.
SQL OF THE TREE:
Select case when connect_by_isleaf = 1 then 0
When level = 1 then 1
else -1
end the status,
level,
"PRODUCT_GROUP_NAME" as the title,
NULL as an icon,
"PRODUCT_GROUP_ID" as a value.
NULL as ToolTip,
' javascript:nodefunction('''||) PRODUCT_GROUP_ID | " ') ; "as link
of ' #OWNER # '. " OMS_PRODUCT_GROUP ".
start with 'PRODUCT_GROUP_ID' = (select product_group_id from the OMS_product_group where parent_id = 0)
connect prior "PRODUCT_GROUP_ID" = "PARENT_ID".
siblings arrested by 'PARENT_ID '.
IR SQL:
SELECT
op.product_id_dump,
op.product_name,
OPG.product_group_name "Prodcut group."
op. Description,
op.unit_price
Op OMS_PRODUCT, OMS_PRODUCT_GROUP opg
WHERE op.product_group_id = opg.product_group_id
AND opg.product_group_id = TO_NUMBER(:P53_SELECTED_NODE)
Hi Dominique,.
Try this query in your report,
SELECT
op.product_id_dump,
op.product_name,
OPG.product_group_name "Prodcut group."
op. Description,
op.unit_price
Op OMS_PRODUCT, OMS_PRODUCT_GROUP opg
WHERE op.product_group_id = opg.product_group_id
AND op.product_group_id = TO_NUMBER(:P53_SELECTED_NODE)
Union
SELECT
op.product_id_dump,
op.product_name,
OPG.product_group_name "Prodcut group."
op. Description,
op.unit_price
Op OMS_PRODUCT, OMS_PRODUCT_GROUP opg
WHERE op.product_group_id = opg.product_group_id
AND op.product_group_id in (select product_group_id from the OMS_PRODUCT_GROUP where parent_id = TO_NUMBER (:P53_SELECTED_NODE))
hope it works for you,
Kind regards
Jitendra
Tags: Database
Similar Questions
-
How to change the icon of the node in a tree when the node collapse or expand?
How to change the icon of the node in a tree when the node collapse or expand?Hello
You may need to use the custom for this skin.
Arun-
-
How to find the ANGLE b/w two edges in Oracle Spatial
How to find the ANGLE b/w two edges on Oracle Spatial. I have two edge connected on the same node. I wanted to know the angle betwwn them. Can someone help me?Ok. My first example is an approximation. Further you get North or South of the Ecuador, gets the more vague.
This one should do the trick with some degree of precision.declare PI constant number := 3.14159265358979; g1 sdo_geometry; g2 sdo_geometry; g3 sdo_geometry; angle1 number; angle2 number; FUNCTION POINT(P_LAT IN number ,P_LONG IN number) RETURN MDSYS.SDO_GEOMETRY IS BEGIN -- we load both the ordinate array and the point type because some spatial functions show inconsistent behavior -- it is not important for this example, just something to be aware of return(mdsys.sdo_geometry(2001,8307 -- WGS84 ,mdsys.sdo_point_type(p_long,p_lat,null) ,mdsys.sdo_elem_info_array(1,2,1) ,mdsys.sdo_ordinate_array(p_long,p_lat))); END; begin -- For the example, project in WGS84 -- g1,g2,g3 could also come straight out of the database as sdo_geometry g1 := point(50, 7); -- Point A g2 := point(51, 7); -- Point B g3 := point(50,10); -- Point C angle1 := atan2(g2.sdo_point.x - g1.sdo_point.x, g2.sdo_point.y - g1.sdo_point.y); angle2 := atan2(g3.sdo_point.x - g1.sdo_point.x, g3.sdo_point.y - g1.sdo_point.y); -- depending on rotation and where we are on the planet, adjustments may be needed if angle1 < 0 then angle1 := angle1 + 2 * PI; end if; if angle2 < 0 then angle2 := angle2 + 2 * PI; end if; if angle2 < angle1 then angle2 := angle2 + 2 * PI; end if; dbms_output.put_line('Angle between the lines A-B and A-C: '|| round(sdo_util.convert_unit(angle2-angle1,'Radian','Degree'),1)); end;
Angle between the lines A-B and A-C: 90
-
Context: Target cannot find the node with id 33
Hello
In my qml file, I used the spreadsheet component. When you click the button, I tried to call the RPC function that calls the web service and according to the response from the service web I have to redirect to special qml. But while qml opening of the CPP, I get the following errors.
libpng warning: iCCP: known incorrect sRGB profile Context: Failed to find target node with id 33
For a moment, I am able to redirect to special qml but control returned to previous qml.
I am not able to understand why this error came? When I run my application a day before it was working fine. When I reset the device and upgrade the operating system 10.2 I get this error.
Here is my code in the PRC:
QmlDocument *qml = QmlDocument::create("asset:///backgroundProcessImageFile.qml"); qml->setContextProperty("RoamAssist", this); AbstractPane *root = qml->createRootObject
(); globalApp->setScene(root); Hey... my problem is solved...
Insted to create the user interface using the sheet I just create new page and open it using NavigationPane.
I still don't know if this issue is due to the component of the roadmap or due to the os version upgradation.
-
Expand all the nodes in a tree table
Hello
I have a tree table in my JSPX, which needs to expand all its nodes when the page is loaded. Also mis the data control is a POJO data contrl where I have a collection (ArrayList), which serves to make this table from the tree. Tree table is displayed as expected with it of the child nodes.
I was referring rare item such as these... https://blogs.oracle.com/jdevotnharvest/entry/how_to_programmatically_disclose_a to expand all nodes. But I get an exception of cast of class on the piece of code following
Code:
CollectionModel model = (CollectionModel) your_af_tree_reference.getValue();
Exception:
javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel cannot be cast to oracle.adf.view.rich.model.CollectionModel at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
......................
I use Jdev 11.1.1.4
Let me know if you need more details to achieve this please.
Refer to this:
You can download the sample code from:
http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/index-101235.html
Search for number 078.
-
Hi, I am using the tree of components in form 10 g, and I need that the nodes have different colors. Is it possible to change the color of the text of each node in the tree?
Thank youNo, you can't change the icon attached to the node.
François
-
Find the minimum distance between two SDO_GEOMETRY in Oracle Spatial?
A circle (SDO_GEOMETRY)
B - polygon (SDO_GEOMETRY)CASE:
B contains A (or)
The Interior of B.How to find the minimum distance between A and B in Oracle Spatial
Hello guuid nameless person.
What is
my_answer := MDSYS.SDO_GEOM.SDO_DISTANCE( my_circle_geometry ,MDSYS.SDO_UTIL.POLYGONTOLINE(my_outer_polygon) ,my_tolerance );
Now, you may need to pay attention to the holes in your polygon, would you the distance and an inner ring if it was closer to you?
If the measure is only to outer rings, so something like
my_answer := MDSYS.SDO_GEOM.SDO_DISTANCE( my_circle_geometry ,MDSYS.SDO_UTIL.POLYGONTOLINE( MDSYS.SDO_UTIL.EXTRACT(my_outer_polygon,1,1) ) ,my_tolerance );
And then also beware of the multipolygons as the foregoing only measured against the first polygon in the MultiPolygon. You need to loop through the polygons of tests just the outer ring in this case.
See you soon,.
Paul
-
Hi all
I was instructed to install 11.2.0.4 32 and 64-bit clients to Server Windows 2012.
I can't find the download page for the latter.
States that, fortunately, we can now use 11.2.0.4 32/64 bit client with 2012 (but does not tell us where!)
So will OTN...
http://www.Oracle.com/technetwork/database/Enterprise-Edition/downloads/index.html
I don't see anything for 11.2.0.4 it - only 11.2.0.1, but 11.2.0.1 is not supported in Windows 2012
Please, if anyone can direct me to the right page, I would be really grateful.
DA
-
How to find the ID of a submit button in oracle seeded pages
Hello
I tried downloading the page locally and I try to open using jdev, but "oa:popup" is not valid message is coming.
So I can not open this page so not able to see the ID of the button.
Can you tell me how to find the ID in another way.Hello
If your cannot open page in jdev, then copy the page (xml file) from the server and save to anywhere on your local computer, which opened in Notepad, here you can find the ID of your button required. However, the norm is to open the page in jdev
Haroon. -
1. I'm a bit confused about the use of the descriptions of a bookmark.
For what I use it after I filled something?
Intend to open the booksmark property to see what I filled a long time ago?
Maybe I could be useful to add this to the ToolTip of bookmarks?2. I have several bookmarks in several subfolders.
But sometimes I can't find a bookmark. So I try to find above the bar-great and I find.
Is it possible to see in the awesome-bar/SearchFunktionInBookmarkLibrary where I have the bookmark in my Bookmarktree?3. I synchronize my favorites for a second PC. Is it possible to load all the favicons this device?
- The description field provides additional information on a bookmark. From what I see, it is visible in the library. The field is filled in automatically when you to bookmark a page that contains a description, for example
- The following modules facilitate the location of the bookmarks in the library and the sidebar.
- You can try the add-on Favicon Reloader to reload site icons missing.
- The description field provides additional information on a bookmark. From what I see, it is visible in the library. The field is filled in automatically when you to bookmark a page that contains a description, for example
-
How to access the nodes created recently in a DOM
Hello
I use:
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
AMT for 64-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
I create a XSL dynamically and I need to check if a node has already been created. My problem is not GETCHILDRENBYTAGNAME or SELECTSINGLENODE seem to find the nodes recently added to the document. For example, with this snippet of my code:
SET SERVEROUTPUT ON
DECLARE
DOC DBMS_XMLDOM. DOMDOCUMENT;
ROOT DBMS_XMLDOM. DOMELEMENT.
ELEM DBMS_XMLDOM. DOMElement.
NŒUD DBMS_XMLDOM. DOMNODE;
ELEMN DBMS_XMLDOM. DOMNODE;
TO THE VARCHAR2 (8 CHAR);
DBMS_XMLDOM ATTR. DOMATTR;
LIST DBMS_XMLDOM. DOMNODELIST;
CLOB TMPCLOB;
BEGIN
-Create DOM document with < xsl: template mode = 'content' match = "xxx" / >
DOC: = DBMS_XMLDOM. NEWDOMDOCUMENT (SYS. XMLTYPE ("< xsl: stylesheet version ="1.0"xmlns: xsl ="http://www.w3.org/1999/XSL/Transform">")
((< xsl: template mode = "content"match ="xxx" / > < / xsl: stylesheet > '));
ROOT: IS DBMS_XMLDOM. GETDOCUMENTELEMENT (DOC);
-Add new item < xsl: template mode = 'content' match = "yyy" / >
ELEM: = DBMS_XMLDOM. CREATEELEMENT (DOC, ' xsl: template ',' xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" ');
ELEMN: = DBMS_XMLDOM. APPENDCHILD (DBMS_XMLDOM. MAKENODE (ROOT), DBMS_XMLDOM. MAKENODE (ELEM));
ATTR: = DBMS_XMLDOM. CREATEATTRIBUTE (DOC, 'name');
DBMS_XMLDOM. SETVALUE (ATTR, "content");
ATTR: = DBMS_XMLDOM. SETATTRIBUTENODE (DBMS_XMLDOM. MAkeELement (ELEMN), ATTR);
ATTR: = DBMS_XMLDOM. CREATEATTRIBUTE (DOC, 'match');
DBMS_XMLDOM. SETVALUE (ATTR, 'yyy');
ATTR: = DBMS_XMLDOM. SETATTRIBUTENODE (DBMS_XMLDOM. MAkeELement (ELEMN), ATTR);
[- Check if / / xsl:template[@mode='content' and @match = 'yyy'] exists (it should because I just added it)
To THE: = 'yyy ';
NŒUD: = DBMS_XSLPROCESSOR. SELECTSINGLENODE (DBMS_XMLDOM. MAKENODE (DOC),'/ / xsl: template [@mode = "content"and @match ="' |] TO THE | '] ',' xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" ');
IF DBMS_XMLDOM. ISNULL (NODE) THEN
DBMS_OUTPUT. PUT_LINE(ÀLES||) "There is NO');
ON THE OTHER
DBMS_OUTPUT. PUT_LINE(ÀLES ||) "Exists");
END IF;
[- Check if / / xsl:template[@mode='content' and @match = 'xxx'] exists (it should because I was in the original scanned document)
To THE: = "xxx";
NŒUD: = DBMS_XSLPROCESSOR. SELECTSINGLENODE (DBMS_XMLDOM. MAKENODE (DOC),'/ / xsl: template [@mode = "content"and @match ="' |] TO THE | '] ',' xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" ');
IF DBMS_XMLDOM. ISNULL (NODE) THEN
DBMS_OUTPUT. PUT_LINE(ÀLES ||) "There is NO');
ON THE OTHER
DBMS_OUTPUT. PUT_LINE(ÀLES ||) "Exists");
END IF;
-Try with GETELEMENTSBYTAGNAME
LIST: = DBMS_XMLDOM. GETELEMENTSBYTAGNAME (ROOT, 'template', ' xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" ');
DBMS_OUTPUT. PUT_LINE (DBMS_XMLDOM. GETLENGTH (List) | 'Node (s)');
-Try with SELECTNODES
LIST: = DBMS_XSLPROCESSOR. SELECTNODES (DBMS_XMLDOM. MAKENODE (root), ' / / xsl: template ',' xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" ');
DBMS_OUTPUT. PUT_LINE (DBMS_XMLDOM. GETLENGTH (LIST) | 'Node (s)');
DBMS_LOB. CREATETEMPORARY (TMPCLOB, TRUE);
DBMS_XMLDOM. WRITETOCLOB (DOC, TMPCLOB);
DBMS_OUTPUT. PUT_LINE (TMPCLOB);
DBMS_LOB. FREETEMPORARY (TMPCLOB);
DBMS_XMLDOM. FREEDOCUMENT (DOC);
END;
/
anonymous block filled
YYY IS NOT Exists
XXX exists
1 node (s)
1 node (s)
< xsl: stylesheet version = "1.0" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" >
< xsl: template mode = 'content' match = "xxx" / >
< xsl: template name = "content" match = "yyy" / >
< / xsl: stylesheet >
[[Why SELECTSINGLENODE can't find ' / / xsl:template[@mode='content' and @match = 'yyy']' node that was dynamically added to the document, but he finds ' / / xsl:template[@mode='content' and @match = "xxx"]' which was originally in the parsed document?
Y at - it an explanation or I do something wrong? "How can I check if I already added a xsl: template ' to avoid duplication?
Thanks for your help
Kind regards
Ramón GarcíaPlease read the FAQ link under your name on how to use the tag {code} (without the space) to keep the formatting of the code.
If you look carefully at the XML output and what you are looking for, you can see the issue.
Look at your attribute names. One is called the mode and the other name. Looking for your XPath
@mode = "content"
that does not exist on the node where match = "yyy". That's why your code can't find the match, since he's looking for something different than what you have built
ATTR: = DBMS_XMLDOM. CREATEATTRIBUTE (DOC, 'name');
-
Unable to find the component with an absolute reference
Hello
I have an RESP search page that has an LOV attached to the name of responsibility search column.
The page works fine on my Jdev, when I transfer the files on the server and click on the page I get error below.
«oracle.apps.fnd.framework.OAException: oracle.adf.mds.exception.MDSRuntimeException: unable to find the component with an absolute reference = / win/oracle/apps/win/respmap/lov/webui/RespNameVORN, XML Path = null.» Please check that the reference is valid and the definition of the component exists on the file system or in the MDS repository. »
The LOV RN xml is present in the location on the server. The page has been imported successfully, verified using jdr_utiils.print_document.
I was impossible to import LOV RN xml using XML importing, throwing below error.
< row 2, column 45 >: XML-20112: Error (fatal error) opening external DTD 'jbo_03_01.dtd '.
WARNING: Could not find the level of customization of document value ' / victory/oracle/apps/victory/respmap/lov/Server/RespNamesVO.
No Protocol: jbo_03_01.dtd
The Oracle note Doc ID 848851.1 said you should not import the xml of region LOV separately, it is imported with page.
Please help me to solve this error.
Thank you
Kalai
Kalai,
km1612 wrote:
Command used with import error.
---------
$ oracle.jrad.tools.xml.importer.XMLImporter java /DEVL/apps/comn/java/classes/win/oracle/apps/win/respmap/lov/server/RespNamesVO.xml - username *-password *-dbconnection "(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = *)(PORT=***)) (CONNECT_DATA = (SID = DEVL)))" rootdir - / DEVL/apps/comn/java/classes-rootdir/DEVL/apps/comn/java/classes
----
Your LovRN file is /win/oracle/apps/win/respmap/lov/webui/RespNameVORN.xml
Not /win/oracle/apps/win/respmap/lov/server/RespNamesVO.xml
If please change the XMLImporter with the correct file and try again.
See you soon
AJ
-
Where we can find the attachment data type short text
Hello
file type attachments are store at fnd_lob.
Where we can find the attachment data type short text in oracle apps.
Concerning
Hello
Thanks, that's useful.
-
How to find the forces in FACT form
Hi all
I am new in Oracle EBS, I just add FDF format but could not find the name in FACT of this screen (Misc Transaction inventory). Can you please help me find the de FACTO forces in screen.
Thank youHello
Pl.Visit suite of links.
http://alloracletechnical.blogspot.in/2009/08/how-to-find-DFF-name.html
How to find the name of de FACTO Standard in oracle appsHTH
Sanjay -
How to find the port # OEM?
How to find the port # in the Oracle enterprise Manager URL (http://mydatabase:xxxx / em /). I installed the Oracle long back do not write the URL. How to find the number XXXX in this case?
Oracle 10g R2.
Thank you
Smithemctl status dbconsole
It's probably in 1158 or 5500 (according to the version)
Kind regards
Uwehttp://uhesse.WordPress.com
Maybe you are looking for
-
videos are displayed in the form of a grey box
When I view the web page that contains videos, I show only a gray box. And example of this is the page I receive when I select "Help" from the Firefox Menu. I have a screenshot, but I see no way to fix it right now. Thank you
-
DVP7-7000: reset password startup
Last year, I added a startup password, works fine, but I want to remove this feature and can't seem to remember the bios password. What can I do to reset the bios password and delete the startup?
-
Problem: Power management is disabled - Lenovo 3000 Y400
-
HP mini computer: cnu9377xyt
password check failed Fatal error... System stopped. cnu9377xyt
-
T61p: Enough memory Ram and good?
Equals any brand? I bought 2 GB of ram for my t61p 6460-D8G and score windows experience base doesn't change almost... How will I know if I get a good RAM? Is there a difference between them? Just, I went into a store and get, without any question. M