using trees - how to get the higher levels

I have create a hierarchical tree based on a couple of tables via a record group, which I create on the fly.

Then I let users attach documents to nodes of the tree. The problem is that the node may not exist in the database but they can build as they go. So I need to insert all archives on tree in table when they attach a document. I don't want to do this before I am only interested when they are attaching documents - rather than storing all data that can never be used.

My problem is when they attach the document I want to find all the levels in this particular tree to insert.

that is, if my tree is as follows

1
-1 b
2
-2B
3
-3B
-3 c

and the attachment of the user against the 3 c I want to insert 3 in the table, and then 3B, then the document against 3 b, so I need to know what its top level in this case is 3.

How is the best way to do this? I have the NODE_DEPTH property - to know its not top level and the VALUE of the NŒUD to know the value and NODE_LABEL for the description, but how can I find my uplevel when its not stored in a table anywhere.

Hello
See the GET_TREE_NODE_PARENT function in the Form Builder Help

Tags: Oracle Development

Similar Questions

  • How to get the battery level and status in the cpp file?

    Hi all

    BatteryInfo class so I can I know how to get the battery level and the State in .cpp class?

    Hi Benecore,

    I have Add method below,

    #include

    But I only variable BatteryInfoPrivate not get variable BatteryInfo. You can also check on your side.

    So let me know how to get batteryInfo instance?

  • using PostDelayedCall how to get the value passed through void * callbackData?

    Can someone tell me how to get the data passed through void * callbackData?

    The following code, panel_ptr has the right address but still contains zero.

    void CVICALLBACK value_changed (void * callbackData)
    {
    int * panel_ptr;
     
    panel_ptr = callbackData;
    calculate_new_value (* panel_ptr);
    }

    int sign;

    Panel = 2;

    PostDelayedCall (value_changed & Panel, 0.2);

    The problem is using the callbackData parameter if it is a pointer, it must be a pointer to something which is still topical at the moment that the callback executes. That is to say, you cannot pass the pointer to a local variable in callbackData as when the callback executes the pointer is no longer valid. You can switch from its value, instead, in this way:

    ... SomeFunction)

    {

    int sign;

    ...

    Panel = 2;

    PostDelayedCall (value_changed, (void *) Panel, 0.2);

    ...

    }

    void CVICALLBACK value_changed (void * callbackData)
    {
    int panel_ptr;
     
    panel_ptr = (int) callbackData;

    calculate_new_value (panel_ptr);

    return;
    }

    There are many discussions on the forums on callbackData parameter that you might want to read.

  • How to get the text level in the long document

    Is there an easy way to put text level (IE on the same horizontal line) when looking across columns, spreads and even throughout a document of long style book?

    Depends on wheter you have paragraphs that use different key values mixed together. If the principal is the same everywhere, the text should align itself automatically.

    If this isn't the case, you probably want to set up a baseline grid. You do this in the preferences. Set the spacing to the value of the line spacing for your body text and add snap to grid for the definition of the style. You probably don't want to use snap to grid with other styles, which the leader is different because the grid willovveride the value of line spacing and you will gradually upward with a wider than expected line spacing. Adding space to something like a cap can help mitigate an extra space between the title and the following text.

  • Qosmio G20: How to get the higher screen resolution on monitor external 22 "

    I have a Qosmio G20 and today I bought a Samsung 226BW the external display. The Samsung has a max resolution / optimal 1680x1050px. The manual SAIS the laptop Toshiba supports a resolution of the external display up to 2048 x 1536...

    I tried now all sorts of settings, but the highest resolution I get on the external monitor is 1440 x 900 (-even as the laptop).
    1440 x 900 display 22 '' is not enough for serious photo editing;. It seems simply blur.

    What I am doing wrong? I deeply appreciate answers/comments; because if 1440 x 900 is all I can get, I have to return to the external monitor to the store...

    If someone is so good!
    Espen.

    Hello

    The available screen resolution depends on the graphics driver. You cannot choose the favorite one from the 1680 x 1050 resolution because it doesn t graphics card driver supports.

    Perhaps an update of the graphics driver could help.

    By the way; an inf file must be provided by the manufacturer of the monitor. You can install this file right-click and choosing install.

    Check also these forum discussions:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=19677

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=19570&MessageID=71767

  • How to get the video intro off my google home screen I already saw it, where is the firefox logo used to be.

    How to get the video intro off my google home screen I already saw it, where is the firefox logo used to be. I started with the last update that I rebooted.

    Hello
    to change the homepage when opening firefox-press 'Alt' and click on tools-> Options.

    Main menu, you can change the URL.

    If the problem persists, you can follow these simple steps:

    Enter about: config in the address bar and press ENTER. Accept the message of 'dragons' to see the Advanced preferences screen. Use the above search box to enter the below pref.

    You can assign an empty string to stop your Firefox to retrieve "extracts" and brandLogo changes the browser.aboutHomeSnippets.updateUrl pref. Right-click this pref and select Edit then clear the value as pref in the box that appears, and then click OK. Who will also disable "snippets" that appear under the container of the research on the default home page.

    Then you must open the folder of your profile, via help > Troubleshooting Information > profile folder > > button view folder. Then close Firefox. Your profile file open with Firefox closed (Firefox '3-bar' menu key > exit/Quit), wait or two minutes, then remove the storage\moz-safe-about + home folder in the Firefox profile folder to remove the brandLogo and stored in IndexedDB code snippets to make Firefox use the default brandLogo and a defined default code snippet.

    If you later change your mind about these changes, you can reset the pref browser.aboutHomeSnippets.updateUrl via the context menu and Reset allows to retrieve the default value using the storage\moz-chest-fort-about + home folder again.

  • How to get the CPU usage in LabWindows using C program

    Hi all

    Please help me...

    How to get the CPU usage and the use of the RAM in LabWindows CVI 12.0 using C.

    Any help with this will be appreciated.

    Thank you in advance


  • How to get the friend list and their IDS in the integration of Facebook using Facebook SDK

    can any body send me the code
    How to get the friend list and their IDS in the integration of Facebook using Facebook SDK
    I did after connection and wall

    Welcome on the support forums.

    Please check the strawberry sample that ships with the SDK

  • How to get the functionality of the Plugin BB10 webworks development using phonegap.

    Hi all

    How to get the functionality of the Plugin BB10 webworks development using phonegap.

    Thank you all

    Here is a link to the documentation specifically: http://docs.phonegap.com/en/2.6.0/guide_plugin-development_index.md.html

    We will update the things little when we adopt a more close relationship with Cordova.

  • How to get the id of the CustomObjectData to a Datacard of elements using api BULK?

    Hello

    I would like to know how to get the id of CustomObjectData (3237 in the sample) for each entry in a data card. I am able to get this information, if I use the REST API. (See below) but I need to be able to get this information using the API as a WHOLE.

    Any ideas?

    URI: https://secure.eloqua.com/Api/rest/2.0/data/customObject/ {identifier}

    Answer:

    {

    "items": [{}

    'type': 'CustomObjectData ',.

    'id': "3237",

    "fieldValues can only be": [{}

    'type': 'FieldValue ',.

    "id': '192."

    'value': "Mr."

    },

    {

    'type': 'FieldValue ',.

    'id': '191 ',.

    'value': '{name} '.

    },

    {

    'type': 'FieldValue ',.

    "id": "190"

    'value': 'Brian '.

    },

    {

    'type': 'FieldValue ',.

    "id': '189."

    'value': '{email} ".

    }]

    .....

    }

    Thank you

    SAI

    Here's how:

    If you use the following statement when you create the export model, you should be able to get the id of the entry of the data card.

    {{Objetpersonnalise [30].}} ID}} instead of {{Objetpersonnalise [30].}} Field [190]}}

    I don't know how to get the date of creation and the date of update information. Any ideas?

    Thank you.

  • How to get the frame number current timeline using jsx?

    How to get the frame number current timeline using jsx?

    Thanks for the link!

    Clarification: I was looking for the current image on the timeline of the video. OP he mentions that he had found how to get that so I searched a bit more and found this thread: Re: can I inpoint in read/write and out-point of the clips in a group of video with scripts? They have the following functions, I have not tried yet, but it seems like it should work.

    function getCurrentFrame() {}

    try {}

    Var ref = new ActionReference();

    ref.putProperty (charIDToTypeID ('Rprp'), stringIDToTypeID ('currentFrame'));

    ref.putClass (stringIDToTypeID ('timeline'));

    var / / desc = new ActionDescriptor();

    desc.putReference (charIDToTypeID ('null'), ref);

    var TC = executeAction (charIDToTypeID ('getd'), desc, DialogModes.NO);

    Return TC.getInteger (stringIDToTypeID ('currentFrame'));

    } catch (e) {return null ;}

    };

  • ADF: How to get the path of the file when you use component InputFile

    Hi all

    I use jdeveloper 11.1.1.5.0 version.

    in my case, I created program Mail Client mail where I used the ADF InputFile component for attach file mail.

    but problem is this return path only component InputFile from the file (only the filename get)

    and in my mailer class DataSource uses the full path name of file access.

    UploadedFile uploadfile=(UploadedFile) actionEvent.getNewValue();
         String fname= uploadfile.getFilename();//this line only get file name.
    

    so, how can I get the full path using adf InputFile component or any other way to respond to my request.

    Thank you

    Manish

    Try this (I did not, so I can't promise it will work):

    MimeBodyPart messageBodyPart = new MimeBodyPart(uploadFile.getInputStream());
    messageBodyPart .setFileName(uploadFile.getFilename());
    messageBodyPart.setContent(multipart);
    

    It does use the inputStream from the downloaded file as the content of the file attached. You shouldn't need a full path, since you're not going to use a file object to provide the content.  And it shouldn't be necessary to define the DataHandler.

    But if that doesn't work, I go back to my first answer.  Use uploadFile.getInputStream () to get the inputStream from the downloaded file, create an outputStream to write the file to the file system of the application server.  Then you have a file with a known path that you can subscribe to the DataHandler.  You can delete the file when you're done with him.

  • How can I contact the high-level support and have an interactive discussion with the SAME person?

    I tried to get a fix for a problem with my account and her affair with an old email address I want dissociated with my account.  I sent a very detailed and clear request to the service the customer and I get the same, I mean exactly, Word for Word response, which is not at all what I wonder.  In addition, I get these email responses and tells me that I can not reply to this message; I wonder to start a conversation.  Believe or not, when I started a conversation and pasted my explanation and asked that the representative has read my message, that person got sent back the same word-for-Word pre-formatted message.  At that time, I wrote a very detailed re-explanation of with the letters "BOLD" and everything, and the guy or the girl still he sends me a sentence canned.  In addition, it is called cat, but it takes 2 person 5 minutes to respond; they read very slowly or watch TV or something.  During the whole cat 30 min, this representative managed to never sending me a message that he or she actually typed. but the entire cat with all pre-formatted responses.  Are these real people or some sort of software experience HAVE?

    If this community of users is not monitored by Adobe personnel, then I know that this message cannot go anywhere that will help me.  But if anyone has a secret formula to get around the wall built the auto-bots on the front line and get to higher level support, I would appreciate a tip.

    Thank you

    Hello

    I sent you a message. Can you please check and answer?

    -Usman

  • The knife tool develops a black line on the objects that I colored using the live paint bucket. How to get the tool knife to stop this and instead of being invisible?

    The knife tool develops a black line on the objects that I colored using the live paint bucket. How to get the tool knife to stop this and instead of being invisible?

    I understand that it is a live paint object you use.

    Try this:

  • How to get the RGB value of a pixel in a psd document using scripting Photoshop

    Hi, guys!    Does anyone know how to get the RGB value of a pixel in a psd document using scripts in Photoshop?  I myself have missed for a long time and could not resolve. I am very happy to hear your voice as soon as possible!

    Here is an example...

    var originalUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    var doc = activeDocument;
    var Colour1 = GetHexColour(eyeDropperRGB(1,doc.height-1));
    var Colour2 = GetHexColour(eyeDropperRGB(20,doc.height-5));
    var Colour3 = GetHexColour(eyeDropperRGB(40,doc.height-14));
    alert("Colour 1 = " +Colour1 + "\rColour 2 = " +Colour2 + "\rColour 3 = " +Colour3);
    var decColour = eyeDropperRGB(40,doc.height-14);
    alert("Red = " +decColour[0] + "\rGreen = " +decColour[1] + "\rBlue = " +decColour[2]);
    app.preferences.rulerUnits = originalUnits;
    function GetHexColour(reqHex){
    var out='';
    for(No in colours = reqHex){
     out = out.concat(zeroPad(d2h(reqHex[No]),2));
     }
    return out;
    };
    function eyeDropperRGB(x,y) {
     var x2 = x + 1;
     var y2 = y + 1;
     var out = new Array(3);
     activeDocument.selection.select([[x,y], [x2,y], [x2,y2], [x, y2]], SelectionType.REPLACE, 0, false);
     for(ch in list = ["Red", "Green", "Blue"]) {
     histogram = activeDocument.channels[list[ch]].histogram;
      for (i = 0; i <= 255; i++) {
       if (histogram[i]) {
        out[ch] = i;
        break;
       }
      }
     }
      return out;
    };
    function d2h(d) {return d.toString(16);}
    function zeroPad(n, s) {
       n = n.toString();
       while (n.length < s)  n = '0' + n;
       return n;
    };
    

Maybe you are looking for