About Tree Trigger

I have a tree item,in which have two trigger:
1) when-tree-node-selected
/*code*/
message('when-tree-node-selected fire!');
message('when-tree-node-selected fire!');
2) when-tree-node-activated
/*code*/
message('when-tree-node-activated fire!');
then I run it and populated tree.
I doubled a node using mouse.
I found when-tree-node-selected fired,
but when-tree-node-activated not fired.
Then i changed when-tree-node-selected trigger:
/*code*/
message('when-tree-node-selected fire!');
--message('when-tree-node-selected fire!'); /*I remarked it.*/
and when-tree-node-activated would fired!
why?
anybody help me?
thanks!

Hi,
so you are saying that having to messages showing for when-tree-node-selected will prevent the when-tree-node-activated from firing?
Does this also happen when clicking one time onto a tree node?
Frank

Similar Messages

  • A theory about trees (ApEx 4.0) regarding save activated node

    Hallo all!
    Can someone please confirm (or not) my theory about trees regarding save activated node in ApEx 4.0(.1):
    With my first tree I tried to set a varchar2-value for the last selected node ... didn't work. After many tries I was succesful with changing this to a numeric value...
    ...Is this a bug or a feature? ;-)
    Btw.
    Another supposing regarding the source-code of trees is that this can't be longer than 4000 bytes. Is this right?
    And if so ... can I put a Funktion in there that returns the statement (like in classic reports, but with static row-structure)?
    Hope this time someone out there is attends my thread.
    With kind regards...
    ...kc7

    Hi,
    Pre-Apex4 you could make use of the A1 and A2 columns in the tree SQL along with the tree template to conditional set the color of the node text. Does anyone know how to achieve this in Apex4? I've tried using the tree SQL shown below but this displays the HTML (SPAN tags) as text.
    select case when connect_by_isleaf = 1 then 0
                when level = 1             then 1
                else                           -1
           end as status,
           level,
           '<span style="color:red;">'||"ENAME"||'</span>' as title,
           null as icon,
           "EMPNO" as value,
           null as tooltip,
           null as link
    from "#OWNER#"."EMP"
    start with "MGR" is null
    connect by prior "EMPNO" = "MGR"
    order siblings by "ENAME"Any assistance would be appreciated.
    Cheers.

  • Transaction code to learn for sample codes about trees and containers

    trnasaction code to learn for sample codes about trees and containers

    hi check this....,
    REPORT  Ztree_TEST_PGM.
    Type-pools : fibs,stree.
    data : t_node type snodetext.
    data : node_tab like t_node occurs 0 with header line.
    clear : node_tab, node_tab[].
    node_tab-type = 'T'.
    node_tab-name = 'Earth'.
    node_tab-tlevel = '01'.
    node_tab-nlength = '5'.
    node_tab-color = '4'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 3.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'Europe'.
    node_tab-tlevel = '02'.
    node_tab-nlength = '6'.
    node_tab-color = '1'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 4.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'Germany'.
    node_tab-tlevel = '03'.
    node_tab-nlength = '7'.
    node_tab-color = '4'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 4.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'Berlin'.
    node_tab-tlevel = '04'.
    node_tab-nlength = '6'.
    node_tab-color = '4'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 3.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'Asia'.
    node_tab-tlevel = '02'.
    node_tab-nlength = '4'.
    node_tab-color = '1'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 3.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'India'.
    node_tab-tlevel = '03-'.
    node_tab-nlength = '5'.
    node_tab-color = '1'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 3.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'Bombay'.
    node_tab-tlevel = '04-'.
    node_tab-nlength = '6'.
    node_tab-color = '1'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 3.
    append node_tab.
    clear node_tab.
    CALL FUNCTION 'RS_TREE_CONSTRUCT'
      TABLES
        NODETAB                  = node_tab .
      DATA: type_mapping TYPE stree_ctl_type_mapping_tab.
      DATA: wa_type TYPE stree_ctl_type_mapping.
      CLEAR: type_mapping[].
        wa_type-type = 'A'.
        wa_type-icon = '@BL@'.
        APPEND wa_type TO type_mapping.
    CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
    EXPORTING
       USE_CONTROL                     = 'L'.
    A list of other function modules that can also be used to construct tree reports:
    SEUT,                            Hierarchy framework
    RS_TREE_ADD_NODE                 Insert nodes
    RS_TREE_AUTOMATIC_REFRESH
    RS_TREE_COMPRESS                 Hide subtree(s)
    RS_TREE_CONSTRUCT                Construct new hierarchy or insert subtree
    RS_TREE_CONTROL_PREPARE
    RS_TREE_CREATE                   Create hierarchy
    RS_TREE_DELETE_NODE              Delete node with associated sub-tree
    RS_TREE_EXPAND                   Expand subtree
    RS_TREE_GET_CURRENT_LAYOUT       Get layout information for displayed hierarchy
    RS_TREE_GET_CURRENT_NODE         Get node at which cursor is positioned
    RS_TREE_GET_CURRENT_ROOT         Get current root node
    RS_TREE_GET_CURRENT_TREE         Get structure information for displayed hierarchy
    RS_TREE_GET_INPUT                Get entires from input fields
    RS_TREE_GET_MARKED_NODES         Get selected nodes
    RS_TREE_GET_MODIFICATION_LOG     Get change log for hierarchy
    RS_TREE_GET_NODE                 Get nodes for specified ID
    RS_TREE_GET_NODE_BY_NAME         Get node for specified node name
    RS_TREE_GET_PREDECESSOR          Get preceding node
    RS_TREE_GET_SEARCHSTRING         Get last search strinng
    RS_TREE_LIST                     Simulate hierarchy or subtree display
    RS_TREE_LIST_DISPLAY             Display hierarchy
    RS_TREE_LIST_DISPLAY             Display hierarchy
    RS_TREE_MODIFY_NODE
    RS_TREE_MOVE                     Reassign node with subtree
    RS_TREE_POP                      Get hierarchy from the stack and restore
    RS_TREE_PUSH                     Place hierarchy on the stack
    RS_TREE_RESET_LOCK               Deselect node
    RS_TREE_SET_CURRENT_LAYOUT       Set layout with marked cursor position
    RS_TREE_SET_CURRENT_TREE         Set other hierarchy
    RS_TREE_SET_LOCK                 Select node
    RS_TREE_SET_NODE                 Change Nodes
    RS_TREE_SET_SCROLL_POS           Position node at the beginning of the page
    RS_TREE_SLEEP
    RS_TREE_SORT_CHILDREN
    regards,
    venkat.

  • About database trigger

    Suppose I have 2 tables A and B. There are about 40 table
    columns for table A and 30 table column for table B. Table A
    can insert, update and delete the record from table B. Table A
    can insert, update about 15 table columns into table B. I
    create database trigger on table A to insert, update and delete.
    TAble B can update only 1 table columns into table A. Due to
    these 2 tables A and B have update trigger. So it is mutating
    when I try to update the record from table A and also update the
    record in table B. Please if you have any suggestion, let me
    know. I try to work around by creating the package with
    variable field set to boolean. But, somehow it only allows to
    update from B to A, not from A to B. Thanks in advance.
    null

    Long Tran (guest) wrote:
    : Suppose I have 2 tables A and B. There are about 40 table
    : columns for table A and 30 table column for table B. Table A
    : can insert, update and delete the record from table B. Table A
    : can insert, update about 15 table columns into table B. I
    : create database trigger on table A to insert, update and
    delete.
    : TAble B can update only 1 table columns into table A. Due to
    : these 2 tables A and B have update trigger. So it is mutating
    : when I try to update the record from table A and also update
    the
    : record in table B. Please if you have any suggestion, let me
    : know. I try to work around by creating the package with
    : variable field set to boolean. But, somehow it only allows to
    : update from B to A, not from A to B. Thanks in advance.
    Hi, I've had this type of mutating table problem before ....
    Here's a workaround:
    1. Create temporary table to record the changes on the
    database triggers (row triggers). Then on a after statement
    issue the update statement.
    2. Crear package variables at the package specification. Then
    create procedures or functions to set this values accordingly
    (in before and after trigger statement). Finally use after
    statement triggers.
    null

  • Question about pause trigger: multiple triggersources

    Hello,
    I have two digital signals which I want to use as source for pause triggering. The pause triggering is done with a triggernode. The problem I have is that I can add two sources to the node but it won't react on both, just one. So I guess it only accepts one signal. The first triggersignal will start the logging for an unknown period of time. When the first triggersignal drops, the second trigger signal will follow immediately and will continue for 5 seconds. Maybe there is no need to add a second trigger source because the time the signal has to be logged is known and follows directly after the first trigger signal. But I can't seem to find a solution for that.
    Another problem I have is that I'm logging at a rate of 100 Hz but on my excel file I find only 500 samples after 10 seconds of logging. Im logging the signals from 2 NI9237's and a NI9219. The rate from the NI9237 is 2000 Hz but I decimate it to 100 samples per second. The signals from the NI9219 are logged at 100 Hz and are untouched.
    Thank you
    Solved!
    Go to Solution.
    Attachments:
    Prog.7z ‏138 KB

    Thanks for letting us know it is solved. i will close the call at our end.
    Regards,
    Rik Prins, CLD
    Applications Engineering Specialist Northern Europe, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Problem about tree

    Hi,everyone,I am just new to java.And now I got a problem with storing the following expression into a binary tree:
    The expression is like: ((a/b)+((c-d)*e)) in a txt file.
    so,what i want to do is to store variable and operation(+-*/)into a tree.And calculate that by using preorder traversal such as
    +(/(a,b),*(-(c,d),e)).However,i even don't know how to start coding.
    +
    a b - e
    c d
    the data i want to be stored in a tree will be like above.Then,I need to use inorder traversal to display the final formula like ((a/b)+((c-d)*e))
    Please get me some help.Thank you very much from everybody!

    Hi,
    don't have any code to answer your question but here's what I'll suggest:
    1) Define a class whose job will be to represent a simple expression. A simple expression is defined by '<exprX> <operator> <exprY>'. In this class, you must include a way to distinguish expressions from variables.
    With your sample, there would be N expressions:
    expr1 = (a / b)
    expr2 = (c - d)
    expr3 = (expr2 * e)
    expr4 = (expr1 + expr3)
    2) Define a class whose job will be to parse the formula, and create the expressions. The idea would be to find operators, and create expressions on left / right sides of the operators (I agree, it's a little harder than that, but I only have ideas right now...)
    Also you'll have to store some kind of 'level info', perhaps here should be the use of the tree, keeping track of each level of computation (expr4 will be at top level, then expr3 under it, then expr2 and expr1)
    Use of recursion seems evident here (and seems simple to apply to a tree structure):
    - first parse will give expr4 = (expr1 + expr3) (both have to be parsed again)
    - second parse will occur on expr1 = (a / b) and expr3 = (expr2 * e) (then expr3 has to be parsed)
    - third parse will occur on expr2 = (c - d)
    That's my two cents... sorry missing time for more help, try starting with this I'll follow the thread and help more if I can!
    Regards.

  • Simple question about Tree

    This is a simple issue but i don't seem to be able to solve
    it, the thing is i have a Tree component and i don't want any image
    for the the icons (by default they are included), i just want the
    plain text, so i need to remove the leaf, disclosure and the folder
    icon that appear in the Tree component.
    Any ideas on how to do this?
    Thanks

    The attached code helps, but does not get rid of the arrow
    without eliminating the ability to expand the tree.
    Remove the following to see the arrows (maybe that is what
    you want):
    disclosureClosedIcon: ClassReference("classes.EmptyIcon");
    disclosureOpenIcon: ClassReference("classes.EmptyIcon");

  • A problem about tree height

    hi all,
    i have created a tree in my BSP page and i hard code the content of the tree like
    CLEAR wa_tab.
    level 1 - Knowledge and help
    wa_tab-treeid = 'support_application'.
    wa_tab-parentid = ''.
    wa_tab-childid = 'HELP'.
    wa_tab-text = 'Self Help'.
    APPEND wa_tab TO gt_tab.
    but i want to make the size of tree higher, i coding like below
    <htmlb:tree title = "<%= otr(/SPN/SMB/VAR05P01_04) %>"
    showTitle = "true"
    id = "support_application"
    table2 = "<%= gt_tab %>"
    width = "100%"
    height = "120%" />
    but nothing happened ,
    i added a empty line in the tree table but there is a icon before the empty tree node ,
    who can give me a hand ?

    a htmlb:tree occupies as much space as required to render the nodes, if you want it to occupy more space (height) you have to set some nodes expanded. the height property of the tree dosent make any difference
    Regards
    Raja

  • About tree

    Hi,everyone,I am just new to java.And now I got a problem with storing the following expression into a binary tree:
    The expression is like: ((a/b)+((c-d)*e)) in a txt file.
    so,what i want to do is to store variable and operation(+-*/)into a tree.And calculate that by using preorder traversal such as
    +(/(a,b),*(-(c,d),e)).However,i even don't know how to start coding.
    +
    a b - e
    c d
    the data i want to be stored in a tree will be like above.Then,I need to use inorder traversal to display the final formula like ((a/b)+((c-d)*e))
    Please get me some help.Thank you very much from everybody!

    Right. You want to write a parser, that turns that expression into a "parse tree", which is a data structure that represents more explicitly the information expressed in the expression.
    This is a homework assignment, of course.
    Anyway, I'd suggest looking at StringTokenizer to first tokenize the expression into a series of (you guessed it) tokens. The parser then only deals with the series of tokens.

  • About application trigger

    Oracle Forms 9i
    Hai All
    In forms when_button_trigger is a block level or item level trigger and give me some
    Form level trigger,block level trigger, item level trigger
    Thanks & Regards
    Srikkanth.M

    in forms u have 3 level triggers
    Level triggers basically defines the scope of the trigger
    FORM LEVEL : can see all blocks and items in the block
    Block Level : can see only items in its block
    Item level: Works on only item to whom it is attached.
    IF U HAVE SAME WHEN-BUTTON-PRESSED TRIGGER on all levels (FORM, BLOCK, ITEM) then first ITEm level trigger will fire then block then Form
    but u can change the execution of trigger in TRIGGER's property EXECUTION HIERARCHY to Before/after or Overide
    Hope it helps
    Plz mark it correct or helpful
    Baig,
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • About tree link

    Hi,
    working with apex-4.2.
    i have created a tree in oracle apex. i want when i click on tree node control move to apex page. how i can create a tree link. if i click on different tree node control move to different apex page .
    How i can do this?
    Thanks & Regards
    Vedant

    To create tree, you can use (modify) like the below code,
    select case when connect_by_isleaf = 1 then 0
                when level = 1             then 1
                else                           -1
           end as status,
           level,
           "PAGE_NAME" as title,
           null as icon,
           "PAGE_ID" as value,
           "PAGE_NAME" as tooltip,
           'f?p='||'&APP_ID.:'||PAGE_ID||':&SESSION.' as link
    from "APEX_APPLICATION_PAGES"
    WHERE APPLICATION_ID=:APP_ID
    connect by prior PAGE_ID=PAGE_GROUP_IDthe best way is, you can create a table with page details in your DB and use that table to create tree. Make sure that you have to insert into the page details if you create any new page.
    Thanks,
    Lakshmi

  • Questions about trees

    There will be several different trees in an application I will begin developing shortly and I want to understand, if the tree of HTML_DB helps or not. And any help on how I could implement those trees otherwise would be also of help.
    1) Is it possible to make a tree out of different tables? * For one there are main services, that may contain several subservices, which of themselves can be part of any number of main services. So the mapping of subservisces to main services is done in a separate table (not by having the table refer to itself), but the client wants to see them compactly in one tree (so that every main service has its subservices below it, the subservice ight be in a tree more than once).
    * Another problem is that there is a view, where all of the jobs for one main service are shown and there has to be several jobs to be done for each subservice. It would be convenient to show those jobs in a tree as leafs of subservices, so its always seen, which service is completed by a job; you can collapse the services you dont want to see, etc...
    2) Is it possible to expand dynamically one or more 'folders' in a tree, when I link to a page? Sometimes when user goes to tree page, it is already known, where his target node might belong into, so it would be easier for the user to see that category already opened.
    it seems to be all for now, but I am sure, there will be more.

    hi kaja--
    1) so long as you can write view of your services and subservices that has a valid recursive hierarchy in it, you should be fine to base your tree off of that view.
    2) you might already know this, but it's a pretty simple matter to have your tree start from a dynamically set TREE_ROOT value. so you could pretty easily set that root to be whatever category you need. if you want to show a category expanded but not as the root of your tree, i've this semi-hack: if you expand and contract the nodes of any tree in HTML DB, you'll see that fourth value being passed through in the URL is our :REQUEST value (you can read up on our URL syntax in our online doc if you'd like, at http://htmldb.oracle.com/i/doc/mvl_fund005.htm#sthref445 ). anyhow, you can set that value manually (again via the URL, for example) in those cases where you know you want to a specific category to already be opened.
    hope this helps,
    raj

  • Q about tree nodes w. same label (different branches)

    Apparently renderer gets confused if it needs to show two nodes with the same label, even though they may be on different branches of the tree. In the pic below, nodes marked "role-read-only" get expanded/closed together - you click on one, they get expanded/closed simultaneously. You hover a mouse on one, the other one gets highlighted.
    The tree is in the form of ArrayCollections (with children being other ArrayCollections). How to change this behavior? Am I missing a comparator in a tree or a tree nodes (if so - what's the format?)?
    Thanks in advance!

    To all who'd like to know the answer.
    Problem was that I used Proxy to wrap around business object representing a node. So each node was a Proxy. As soon as I changed wrappers to not be Proxy everything worked fine.
    I came to solution after discovering that the described behavior is typical if you use _the_same_ object for two different nodes.
    Apparently flex fails to properly compare two different Proxy objects and thinks they are the same. Or perhaps they ARE the same under the hood.

  • Doubt About Tree

    Hi Experts,
    I have one doubt the SAP Tree How it will looks like
    What is sap Netweaver----->>>>Developer Studio
    >>>>Exchange Infrastructure
    >>>>Enterprise Portal
    >>>>WAS
    What is xApps????
    Please let me know How this Tree looks like What is the relation in between these all.Iam in confussion
    Ragadrs
    khanna

    The Web App Server is the platform to which other SAP products reside on top of.  So it would look something like this:
    Function / Module: SAP XI
    App Server: SAP WAS
    Database: Oracle
    <i>Or</i>
    Function / Module: SAP ECC
    App Server: SAP WAS
    Database: Oracle
    The Developer Studio stands alone and only resides on desktop PCs.  It can be used to write adapters to the SAP software if you want something custom.  For example, if SAP XI doesn't do something that you want it to do then you can write an adapter in the Developer Studio and then deploy it onto the XI server.

  • Question about Tree

    I need to build a dynamic tree based on sql returned from function - is this possible? The only option I see for tree source query is "Dynamic - From SQL Query" there is no option to use PL/SQL function returning SQL query.
    Any suggestions will be appreciated.
    George

    Hi,
    Creating a function that returns a TABLE would probably be the proper way to do this.
    You could, however, create a collection from the string generated by your code using APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY (see: [http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/advnc.htm#sthref2033]) and you could then base your tree on this collection.
    Andy

Maybe you are looking for

  • Can I return my new laptop to lenovo because of its quality problem?

    IBM is one of the best brand as I know, especially showing us not only high quality of products but the service. But now one thing happened to me, if I don't have this case I can't believe. I found there is something with the laptop(T61 Model 7658CTO

  • WARNING:IP: Hardware address '02:bf:0a:d0:00:2a' trying to be our address

    Hi, When my system boots up the following error message is prompted: WARNING:IP: Hardware address '02:bf:0a:d0:00:2a' trying to be our address I perused documentation and it states that this occurrs when the ATM lane device is set to promiscuous mode

  • Secure PDF file problem

    I have a problem with Illustrator when I save my work as a pdf file to send to my clients. The pdf file appears to be OK so I save and close the file. When I open the file again, the file is blank. At first I had a client keep telling me my pdf files

  • Mountain Lion- Power PC App no longer supported

    Just downloaded Mountain Lion.  Got message cannot open Quicken.  Power PC App are not longer supported.  What happened?  Need Quicken.  Please help.

  • Korn Nano Pad and Logic Studio

    I just purchased a Korg NanoPad and after several hours still cannot figure out how to configure it with Logic 9. I want to be able to use the Logic 9 sounds in the (ESX24, Ultrabeat,etc.) on the Nano Pad without having to load each drum sound into t