How to get parents given a sheet in a recursive table

I want to get a list of all parents associated with a sheet in a data table.

The table has 3 rows id, description, parent.

If I have the id of one of the Articles I want to get all of his parents, is there a way to get it with a select or connect before?

Maybe

Select substr (sys_connect_by_path (to_char (empno), ','), 2) parant_chain

WCP

where connect_by_isleaf = 1

Start by empno = 7369

connect by empno = mgr prior

PARANT_CHAIN
7369,7902,7566,7839

Concerning

Etbin

Tags: Database

Similar Questions

  • How to get the name constraintlist and column in a table?

    Hello


    can someone please tell me how to get the type of constraint, and it is imposed on the names of columns in a table.




    Thank you
    Nico

    Hello

    Use the two tables:

    select * from all_constraints
    
    select * from ALL_CONS_COLUMNS
    

    Sorry SY, you were faster than me...

    Published by: user11268895 on August 19, 2010 13:27

  • Plan of cloud photography creative-how you get? Given no instructions.

    Now 6 days there is no instructions. How can I access it? Obviously I'm not a person of English computer please.

    For more information: CC help | Download, install, update or uninstall applications

    -Atul

  • How to get rownum of the last line in a table?

    Hello

    I need to add a line slot-shaped table with the dynamic value.

    I add a line slot-shaped table with existing lines so I need to get a rownum of the last row of tabular presentation.

    I'm using a process like this:

    Declare

    l_value varchar2 (200);

    number of rownum_value;

    Begin

    l_value: = wwv_flow.g_x01;

    rownum_value : = wwv_flow.g_x02;

    HTP.p ("< class td =" child"> ');

    HTP.p (APEX_ITEM. DISPLAY_AND_SAVE (p_idx = > 3,

    p_value = > l_value,

    p_item_id = > 'f03_000 ' | ROWNUM_VALUE - here is Rownum value

    ));

    HTP.p ("< table > '");

    HTP.p ("< class td =" child"> ');

    HTP.p (to_date (sysdate));

    HTP.p ("< table > '");

    HTP.p ("< class td =" child"> ');

    HTP.p (APEX_ITEM. CHECKBOX2 (p_idx = > 5, p_value = > 'Y', p_item_id = > 'f05_000' |) ROWNUM_VALUE -here is Rownum value

                             ));

    HTP.p ("< table > '");

    And I use the dynamic action with Ajax to pass values to the process:

    (function () {}

    get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is ADD_VALUE', $v ('pFlowStepId'));

    get.addParam ('x 01', $v ('P2_VALUE'));

    get.addParam ('x 02',SOME_ROWNUM_VALUE);  Here, I need to get the value of Rownum

    gReturn = get.get ();

    get = null;

    gReturn = (! gReturn)? ' null': gReturn;

    var table1 = document.getElementById ('tabform_TABLE');

    Table2 = table1.getElementsByClassName ("uReport") var [0];

    TBODY var = table2.tBodies [0];

    var row = document.createElement ("TR");

    row.innerHTML = gReturn;

    tbody.appendChild (row);

    })();

    How can I get a value of rownum in the last row of my tabular form?

    I prefer to use JavaScript, but any other solution would be much appreciated.

    I'm on Apex 4.2

    Thanks to you all.

    There are a few options

    Base Oracle: Number count of rows returned in the report of the APEX

    for example:

    $('#report_emp td[headers="ENAME"]').length

  • jQuery - how to get the id of the item in a table

    Hi all

    I have a following problem:

    I have LOV in my tabular presentation. I created a dynamic action when the user clicks on the button "link arrow" of LOV.

    jQuery selector:
    td[headers='PLANTCODE'] a
    Now, I would get a LOV element id for example f09_0001. But due to the lack of knowledge of jQuery, I do not know how to do it. Code below does not work: /.
    alert(jQuery(this.triggeringElement).attr('id'));
    Could someone help me?

    Thanks in advance!

    Jiri

    Jiri N. says:
    Hi all

    I have a following problem:

    I have LOV in my tabular presentation. I created a dynamic action when the user clicks on the button "link arrow" of LOV.

    jQuery selector:

    td[headers='PLANTCODE'] a
    

    Now, I would get a LOV element id for example f09_0001. But due to the lack of knowledge of jQuery, I do not know how to do it. Code below does not work: /.

    alert(jQuery(this.triggeringElement).attr('id'));
    

    Could someone help me?

    Thanks in advance!

    Jiri

    Hello

    How your code does not work?
    Error messages?
    What is your version of the APEX?

    Your code, try alert anchor tag ID that you use as a jQuery selector.
    Try

    alert( $(this.triggeringElement).prev("input").attr('id') );
    

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How to get the values of the modified line of table of the ADF?

    JDev 11.

    I have a table that is filled with bean data.
    I need to save changes after the user makes changes in any table cell. InputText is defined for the table column component.
    I've defined ValueChangeListener for inputText field and AutoSubmit = true. So when the user change the value field inputText, the method is called:

    public void SaveMaterial (ValueChangeEvent valueChangeEvent) {}
    getSelectedRow();
    SaveMaterial (material);
    }

    This method must call getSelectedRow that take values of the selected table row and save them in object:

    private line {} getSelectedRow()

    Table richeTableau = this.getMaterialTable ();
    Selection of the iterator = table.getSelectedRowKeys () .iterator ();
    While (selection.hasNext ())
    {
    Key of the object = next ();
    table.setRowKey (key);
    Object o = table.getRowData ();
    material = o (HARDWARE);
    }
    System.out.println ("selected hardware Desc =" + material.getEnumb ());
    Returns a null value.
    }

    Problem is that getSelectedRow method is not new (edited) values, old values are still used.

    I tried to use ActiveButton with the same method and it works very well in this case. New values are inserted and active line in the object selected.

    JSF:

    < af:table var = 'row' rowSelection = "single" columnSelection = "unique."
    value = "#{ManageWO.Material}" binding = "#{ManageWO.materialTable}" > "

    < af:column sortable = "false" headerText = "E-number" >
    "< af:inputText value =" #{row.enumb} "valueChangeListener =" #{ManageWO.SaveMaterial} "autoSubmit ="true"/ >
    < / af:column >

    < af:column sortable = "false" headerText = "Description" >
    "< af:inputText value =" #{row.desc} "valueChangeListener =" #{ManageWO.SaveMaterial} "autoSubmit ="true"/ >
    < / af:column >
    ......
    < / af:table >

    < af:activeCommandToolbarButton text = "Save" action = "#{ManageWO.EditData}" / >


    What is a good place where Save method must be called to get the new values (edited) table of the ADF?

    Thank you.

    Have you looked into the valueChangeEvent?

    There oldValue and newValue attributes.

    public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
    Object oldVal = valueChangeEvent.getOldValue();
    Object newVal = valueChangeEvent.getNewValue();
    // check if you see what you are looking for.....
    getSelectedRow();
    SaveMaterial(material);
    }
    

    Timo

  • How to get the number of lines of an af:table

    Hello

    I use JDeveloper 11.1.2.4.

    I have a table (t1) that is contained in a panelCollection. On the toolbar of this collection of Panel section, I placed an output text to display the number of rows in the table. I use below EL from there to achieve.

    < af:outputText value = "#{bindings." RtnVwOddShoesVO1Iterator.estimatedRowCount}"id ="ot11.

    partialTriggers = "t1" / >

    his shows the number of rows in the table when initially rendering. However, when none of the lines changes based on a condition, it is not be updated.

    Please can you advise if Miss me something?

    Thank you

    Bind the outputText property of bean of support, I say the pair of methods getOt11 () / setOt11 ().

    Then you can say:

    AdfFacesContext.getCurrentInstance () .addPartialTarget (getOt11 ());

    If it works, can you say thanks @Timo ;-)

  • How to get the script to a table or view in SQL Developer?

    Dear friends/expert,

    Could you tell me how to get the script from a view or a table easily in SQL Developer as pressing F4 in TOAD?

    I found that I can press SHIFT + F4 to view in SQL Developer and get the script of the view in the Details tab. But how to move the script to the SQL worksheet to change? It is very easy to do in TOAD.

    And I have not found a way to get the script for a table up to now. Is it possible to do?

    Thanks in advance.

    Best regards
    Ning

    There are people a lot better out there to answer on this point than I am - but here's how I do it.

    I'm just in the browser/browser for interest table, choose the script on the right side tab (which shows all the SQL for the table) and then cut and paste what I want or need in my editor window.

  • How to get the last day of a month for every 2 months for a given period?

    Hello

    Can is it some please let me know how to get the last day, last day of the week, the weekend last day, last Monday, one month for every 2 months for a given period?

    Thanks in advance.

    Try the below

    SELECT LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2))) lastday.

    BOX WHEN TO_CHAR (LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2))), 'DY') = 'SAT '.

    SO LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2)))-1

    WHERE TO_CHAR (LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2))), 'DY') = 'Sun '.

    THEN LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2)))-2

    Of OTHER LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2)))

    END as lastweekday,

    BOX WHEN TO_CHAR (LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2))), 'DY') IN ('Sam', 'SUN')

    THEN LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2)))

    Of OTHER LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2)))

    -(TO_NUMBER (TO_CHAR (LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2))),' from)) - 1).

    END as lastweekendday,

    BOX WHEN TO_CHAR (LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2))), 'DY') = 'MY

    THEN LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2)))

    Of OTHER NEXT_DAY (LAST_DAY (ADD_MONTHS (TRUNC(startdate,'MM'), ((LEVEL*2)-2))), "LUN")-7

    END AS lastmonday

    FROM (SELECT SYSDATE startdate,

    SYSDATE + 300 enddate

    THE DOUBLE)

    CONNECT BY LEVEL<=>

  • How to get the second Monday of each month in a given date range?

    In Oracle forms, how to get the second Monday of each month in a given date range?

    I tried below using the query WITH the Clause, but it seems that WITH Clause does not work in Oracle forms. So is there another way to do this in Oracle forms?

    WITH month_range AS

    (

    SELECT TO_DATE ('Dec 2013', 'Mon YYYY') AS first_month

    , TO_DATE ('Mar 2014', 'Mon YYYY') AS last_month

    OF the double

    )

    SELECT NEXT_DAY (6 + ADD_MONTHS (first_month

    , LEVEL - 1

    )

    , 'MONDAY '.

    ) AS second_monday

    OF month_range

    CONNECTION OF LEVEL < = 1 + MONTHS_BETWEEN (last_month, first_month)

    ;

    Thanks in advance.

    Good fishing, when the first day of the month is Thursday... So I changed the query accordingly... Try the below

    SELECT CASE WHEN TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'game '.

    THEN NEXT_DAY (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'THU')

    Of OTHER NEXT_DAY (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'Game') + 7

    END AS second_day

    FROM (SELECT SYSDATE startdate,

    SYSDATE + 300 enddate

    THE DOUBLE)

    CONNECT BY LEVEL<=>

  • How to get the text block, given anchor (~ a)

    I need to dynamically position anchored with anchor text blocks (but the relative position will be different for each anchor). If I grep ~ i can get the anchor marker - how to get the text block once I got this marker?

    Thank you

    The marker "anchor" is a character of "simple".

    So you can do the following if you have identified the character (and in this example selected it):

    //Start with an "Anchor Marker" selected:
    var myCharacter = app.selection[0];
    
    if (myCharacter.texts[0].textFrames.length == 1){
    
    var myAnchoredTextFrame = myCharacter.texts[0].textFrames[0];
        //do something with the anchored text frame:
        myAnchoredTextFrame.fillColor = "Yellow";
    
        };
    

    You can set the myCharacter variable differently, if you know the index of the character according to his history of parent.

    Or if you have found the character as part of a search GREP or TEXT by ExtendScript (JavaScript).

    Uwe

  • my standard drawing tools in a given paper seem to be stuck in some kind of preset isometric drawing. someone knows how to get back to 'normal '. my cursor has a cross and an arrow pointing to the left.

    Hoping that this is easy. my standard drawing tools in a given paper seem to be stuck in some kind of preset isometric drawing. someone knows how to get back to 'normal '. my cursor has a cross and an arrow pointing to the left.

    disable the perspective grid. Shift + ctrl + I

  • How to get the channels spot given colors and spot channels length

    File is CMYK format... channel spot color is CMYK we as a spot channel color is c100m50y20k5
    How to get the channel spot color data using javascript? c = ? m = ? y = ? k = ?
    howv to get your channel length n (not the CMYK channel) use javascript?  such as CMYK + spot n-channel 7 = 7

    Please help me

    #target photoshop

    var myDoc = activeDocument;

    var channel = myDoc.channels;

    var number = 0;

    for (var m = 0; m< channels.length;="" m++)="">

    If (channels [m] .kind == ChannelType.SPOTCOLOR) {the number ++}

    };

    Alert (the number + "spotchannels");

  • JavaScript how to get / change the field (object) TYPE (no access or mandatory)?

    Hello

    I would like to change or at least to get the TYPE of a field/object field

    Reason: I have a function in my script object that needs some things if the given parameter is a text field or button

    {myFunction (Object)}

    If (type is button)...

    ClassName is relative to any use. He always comes = field

    Could someone provide a code please?

    Hello

    This script could help show how to get the type of field.  I'm reasonably show that he originally site of Stefan Cameron, http://forms.stefcameron.com/, but can not find it now.  Basically if you have a 'field' then ui.oneOfChild.className will give you the type of field.

    I don't think you'll have a chance to change the field type.  I think that you need to have all the field types you want on the form and that they are visible when necessary.

    function listAllFields (node)
    {
    If (node.className == 'exclGroup' | node.className == "subform" | node.className == 'subformSet' | node.className == 'region')
    {
    for (var i = 0; i)< node.nodes.length;="">
    {
    If (node.name! = "ErrorIconSubform")
    {
    childNode var = node.nodes.item (i);
    listAllFields (childNode);
    }
    }
    }
    Else if (node.className == "field")
    {
    Switch (node.ui.oneOfChild.className)
    {
    case "button":
    Console.println ("button:" + node.somExpression);
    break;

    case "checkButton":
    If (node.parent.className is "exclGroup")
    Console.println ("RadioButtonList:" + node.somExpression);
    on the other
    Console.println ("checkbox:" + node.somExpression);
    break;

    case "choiceList":
    var oUITypeNode = node.ui.resolveNode ("#choiceList");
    If (oUITypeNode.open is "userControl")
    Console.println ("DropDownList:" + node.somExpression);
    on the other
    Console.println ("ListBox:" + node.somExpression);
    break;
      
    case "dateTimeEdit":
    Console.println ("DateTime:" + node.somExpression);
    break;

    case "imageEdit":
    Console.println ("Image:" + node.somExpression);
    break;

    case "numericEdit":
    Console.println ("digital:" + node.somExpression);
    break;

    case "passwordEdit":
    Console.println ("password:" + node.somExpression);
    break;

    case "textEdit":
    Console.println ("Text:" + node.somExpression);
    break;

    case "signature":
    Console.println ("Signature:" + node.somExpression);
    break;

    case 'barcode ':
    Console.println ("bar code:" + node.somExpression);
    break;

    by default:
    unknown field type
    break;
    }
    }
    }

  • someone has any idea how to get Apple to allow apps that EFFECTIVELY controls the use of the children?

    I'm just frustrated.

    I have a child of 12 years and a house full of i-products.   The problem arises because I want to allow him to use a planning application and some other apps education during school time, but not the games and the wifi and so on.     We got the House and I would continue to allow the use of the i-device to school, but it doesn't seem to be an app that will enough allow me to the things of the lock upwards.    I don't have the time to constantly monitor, it's ridiculous.

    Sometimes there are ideas as to the allow him to use educational applications and its music from itunes, but not anything about wifi, or any other games or Web sites.    There are other times where I'd like it to be allowed to use iMessage and not much else.

    The problem is that there is something out there that allows this level of control.    Apple has rolled out their "our Pact" that does not come close, but it's a start.     And no other control parental app or program allows control level "app." they will allow you to lock all applications (which are not integrated in the iOS) or not, but I can not choose.     Restrictions are unnecessary and won't allow me to lock the wifi or not to allow the addition of new locations of wifi.

    It's to the point that they I need to new devices, I'll phase out home iOS devices, unless I can get a control.

    Someone at - it a have a way around this?    Someone has any idea how to get Apple to listen to?

    For an application to the time-, you can use guided access

    Use access guided with iPhone, iPad and iPod touch - Apple

Maybe you are looking for