Tree node selection lost after returning from called page

Hi
in a default unbound task flow i have a Page1 calling Page2.
Page1 displays a master-detail data using treetable component, while Page2 displays detail data (selected from Page1) as a read-only form.
When coming back from Page2, Page1 tree node selection is lost and tree table is rendered as if was called for a first time (detail data are disclosed).
How can I restore an original selection?
(Jdev 11.1.2.2)
Many thanx

1. before goind to the Page 2, remember somewhere the selected row keys, as follows:
    RowKeySet rks = yourTreeTable.getSelectedRowKeys();2. after returning to the page 1, do as follows:
    Iterator rksIterator = rks.iterator();
    if (rksIterator.hasNext()) {
             List key = (List)rksIterator.next();
             JUCtrlHierBinding treeTableBinding = null;
             treeTableBinding =
                     (JUCtrlHierBinding)((CollectionModel)table.getValue()).getWrappedData();
             JUCtrlHierNodeBinding node =
                 treeTableBinding.findNodeByKeyPath(key);
             RowKeySet newRks = new RowKeySetImpl();
             if (node != null)
                 newRks.add(node.getKeyPath());
             callSelectionListener(yourTreeTable, newRks);
            // refresh your tree table  - ommited here
     // where is:
     protected void callSelectionListener(RichTreeTable table, RowKeySet discRows) {
         SelectionEvent selEv =
             new SelectionEvent(table, new RowKeySetImpl(), discRows);
         JSFUtils.resloveMethodExpression("bindings.YourVO.treeModel.makeCurrent", // <--  of course, adjust this value to the your selectionListener expression
                                          null,
                                          new Class[] { SelectionEvent.class },
                                          new Object[] { selEv });
     } // of makeCurrent()
    public  Object resloveMethodExpression(String expression, Class returnType, Class[] argTypes, Object[] argValues) {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        Application app = facesContext.getApplication();
        ExpressionFactory elFactory = app.getExpressionFactory();
        ELContext elContext = facesContext.getELContext();
        MethodExpression methodExpression = elFactory.createMethodExpression(elContext, expression, returnType, argTypes);
        return methodExpression.invoke(elContext, argValues);
    }

Similar Messages

  • WHEN-TREE-NODE-SELECTED want to return parent_id ?

    Hello all,
    In WHEN-TREE-NODE-SELECTED Trigger
    i want to return the parent_id from the database
    i have already returned the pk as follows:
    DECLARE  
           pk               INSP_EQUIPMENT.EQUIPMENT_ID%TYPE;
          PARENT_PK   INSP_EQUIPMENT.PARENT_ID%TYPE;
    BEGIN 
       IF  :SYSTEM.TRIGGER_NODE_SELECTED  = 'TRUE' THEN   --node selected
        pk := ftree.get_tree_node_property(
            'TREE_BLOCK_TEST.TREE13',
            :system.trigger_node,
            ftree.node_value);
           message('pk: '||pk);  -- works fine
            message('pk: '||pk);
    {code}<br /><br /><br /><br />The Questiuoin is how could i returned the parent_id <br /><br />i used the same code as follows:<br /><br /><br /><br /><br /><br />{code:java}
    BEGIN 
       IF  :SYSTEM.TRIGGER_NODE_SELECTED  = 'TRUE' THEN   --node selected
        PARENT_PK := ftree.get_tree_node_property(
            'TREE_BLOCK_TEST.TREE13',
            :system.trigger_node,
            ftree.node_value);
           message('PARENT_PK : '||PARENT_PK );  -- works Wrond it returns the same pk
            message('PARENT_PK : '||PARENT_PK );
    {code}<br /><br /><br /><br /><br /><br />i tried also tried <br /><br /><br /><br />{code:java}
      PARENT_PK := ftree.Get_Tree_Node_Parent(
            'TREE_BLOCK_TEST.TREE13'
            ftree.node_value);
            message('PARENT_PK: '||PARENT_PK); -- returns rubbish number
            message('PARENT_PK: '||PARENT_PK); 
    {code}<br /><br /><br /><br />Quick Help will be appreciated..<br /><br /><br /><br />Regards,<br /><br /><br /><br />Abdetu..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Thanks Tony for reply,
    Getting the folowing error:
    FRM-47307: Cannot get the properties of the tree root node.Cause:  GET_TREE_NODE_PARENT or GET_TREE_NODE_PROPERTY attempted to obtain information from the root node.
    Action:  Only invoke the built-ins against valid nodes.
    Level:  99
    Type:  ErrorRegards,
    Abdetu..

  • Urgent-How to retain data in main page after returning from personalize pag

    Hi,
    i have a query,
    Like if I have a region 'CertificationRN' when I run the page a link stating “Personalize Table: (CertificationRN)” appears above the Region
    Now when I enter some data in this region, and then click on 'Personalize Table: (CertificationRN)’ link, personalize page appears.
    On personalize page when clicked on “Return to Application’ it returns to the previous page, but the data which I had entered in the region is lost.
    i.e. I get empty Textboxes as they where just after running the page.
    What should I do to retain the data in the region?
    Thanks & Regards
    Shilpa

    Shilpa in that case personlization links should not be shown to business users, using profile option
    1)Personalize Self-service Defn (FND_CUSTOM_OA_DEFINTION)
    2)FND: Personalization Region Link Enabled
    (FND_PERSONALIZATION_REGION_LINK_ENABLED)
    , then where does the question comes of them clicking personalize link.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • My iphone 4S has problem in making and receiving the calls. While making the call , call fails and netwrok disappears. Like wise no voice is heard for incoming calls. This happened after return from the overseas travel.

    My iphone 4S has problem in making and receiving the calls. While making the call , call fails and netwrok disappears. Like wise no voice is heard for incoming calls. This happened after return from the overseas travel.

    Hello SamSax
    Check out the assist page below for troubleshooting call connectivity.
    Calls and connection issues
    http://www.apple.com/support/iphone/assistant/calls/
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Tree item when-tree-node-selected fires differently from 6i to 10g.

    In forms 6i, when you keyboard navigate between tree nodes, the wtns trigger will fire. In 10g it does not. In 10g, it will fire if you press the tab key or mouse click on a node.
    Anyone know if this was done on purpose?
    I ran into this after finally trying my props.fmb in 10g. It works fine in 6i, but not in 10g
    copy of my form is here:
    http://www.tailboom.com/oracle.php
    Forms [32 Bit] Version 6.0.8.18.3 (Production) cleint server
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    I wrote most of the tree handling code for oracle apps APPTREE. This is the code that most if not all tree's in apps uses to build standard tree. So I have a pretty good understanding of the forms tree item. And know the wtns fired for web forms 6i on every node like 6i client server. This is very strange IMO.
    Thanks.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Oleg,
    thanks for the reference. Although the bug you identify deals with when-tree-node-activated, it is possible they fixed the when-tree-node-selected issue at the same time. With my test tree, i can currently duplicate both issues. I tried to download the patch, but it is only available for linux and unix. No windows patch. I don't have my linux env up and running to where I can test yet. So I can not confirm.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to run a form using tree node selection??

    hi...
    i have populated a tree with all the form name.There is a particular id for every form.i want to show a form using tree node selection.What i did...i write a trigger in button's click event when the tree node is selected then i get a id.if id=1 then open_form('test.fmx').when i want to execute this code then it is showing the same form 2 times.Can anyone help me to solve my problem?If so plz tell me what code i have to write to show a form using node selection?.

    I've done the same thing, and i think it works fine.
    Check this code (Sorry for the long post, but i cannot find how to attach files.
    PACKAGE menu_pk IS
    --Initialization of the menu.
    procedure Init;
    --Called from WHEN-TREE-NODE-EXPANDED
    procedure Expanded;
    --Called from WHEN-TREE-NODE-ACTIVATED
    procedure ExecuteCommand;
    END;
    PACKAGE BODY menu_pk IS
    MENU_NAME constant varchar2(30) := 'menu.menu';
    cursor c_menu(pRoot in varchar2) is
    select apm_code, apm_parcode, apm_descr, decode(apm_type, 0, Ftree.EXPANDED_NODE, Ftree.LEAF_NODE) apm_type,
    decode(apm_type, 0, 'menu', 1, 'form', 2, 'report') || '.ico' apm_icon
    from app_menu
    where apm_parcode = pRoot
    order by apm_code asc;
    procedure Init is
         new_node ftree.node;
    begin
         for i in c_menu('root')
         loop
    new_node := Ftree.add_tree_node(MENU_NAME, FTree.ROOT_NODE,
    Ftree.PARENT_OFFSET, Ftree.LAST_CHILD,
    i.apm_type, i.apm_descr, i.apm_icon, i.apm_code);
         end loop;
    end;
    procedure FillNode(pNode in FTree.Node) is
         new_node ftree.node;
    begin
         for i in c_menu(FTree.get_tree_node_property(MENU_NAME, pNode, FTree.NODE_VALUE))
         loop
    new_node := Ftree.add_tree_node(MENU_NAME, pNode,
    Ftree.PARENT_OFFSET, Ftree.LAST_CHILD,
    i.apm_type, i.apm_descr, i.apm_icon, i.apm_code);
         end loop;
    end;
    procedure DeleteNodeChilds is
    node FTree.NODE;
    begin
         loop
    node := FTree.Find_Tree_Node(MENU_NAME, '',
         FTree.FIND_NEXT_CHILD, FTree.NODE_VALUE,
         name_in('system.trigger_node'), name_in('system.trigger_node'));
              exit when Ftree.ID_NULL(node);
              FTree.delete_tree_node(MENU_NAME, node);
         end loop;
    end;
    procedure Expanded is
    begin
         if (FTree.GET_TREE_NODE_PROPERTY(MENU_NAME, :system.trigger_node, FTree.Node_State) = FTree.EXPANDED_NODE) then
         menu_pk.FillNode(name_in('system.trigger_node'));
         else
              menu_pk.DeleteNodeChilds;
         end if;
    end;
    procedure ExecuteCommand is
    cursor c_command(pCode in varchar2) is
    select apm_form, apm_type
    from app_menu
    where apm_code = pCode;
    fCommand c_command%rowtype;
    fMenuCode varchar2(20);
    begin
         -- if it is as menu node then exit.
    if (not FTree.Get_Tree_Node_Property(MENU_NAME, :system.trigger_node, FTree.NODE_STATE) = FTree.LEAF_NODE) then
         return;
    end if;
    fMenuCode := FTree.Get_Tree_Node_Property(MENU_NAME, :system.trigger_node, FTree.NODE_VALUE);
         open c_command(fMenuCode);
         fetch c_command into fCommand;
         close c_command;
         if (fCommand.apm_type = 1) and (fCommand.apm_form is not null) then
              globals.Set_MenuChoice(fMenuCode);
              OPEN_FORM(fCommand.apm_form);--, ACTIVATE, SESSION);
         end if;
    end;
    END;
    The menu table definition follows.
    create table APP_MENU
    APM_CODE VARCHAR2(10) not null,
    APM_PARCODE VARCHAR2(10) not null,
    APM_DESCR VARCHAR2(40) not null,
    APM_TYPE NUMBER(1) not null,
    APM_FORM VARCHAR2(50)
    alter table APP_MENU
    add constraint APP_MENU_PRI primary key (APM_CODE);
    Hope this helps

  • How to automatically actualize UWL after return from WebDYNPRO?

    Hello,
    in the universal worklist (uwl) i have configured a workstep to open a Web Dynpro application instead of the SAP GUI. This works fine and i can process the Workflow.
    But after processing of workstep I returns to the UWL using
    WDPortalNavigation.navigateAbsolute(          "ROLES:portal_content/tm.eop.fd.eop_root/tm.eop.fd.content_root/tmcz.eop.fd.tmcz_root/tmcz.eop.fd.my_workspace/tmcz.eop.ro.my_workspace/my_workspace/tmcz.eop.iv.uwl",          WDPortalNavigationMode.SHOW_INPLACE,
                        (String) null,
                        (String) null,          WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
                        (String) null,
                        (String) null,
                        (String) null);
    In the UWL there is non relevant item (item that was processed in WebDynpro) and it angers users.
    It is possible to actualize UWL automatically after return from WebDYNPRO application? WebDYNPRO is opened in the same window and frame as UWL.
    Thanks for your help.
    Ondrej Lednicky

    Followed what vinay and Timo sugguested:
    One solution is to use a af:dialog in the popup where you define a dialogListener  to catch the outcome of the dialog and if it's OK you call your other method.
    I wrote method code in back bean like this:
        public void refreshBillFromDialog(DialogEvent dialogEvent) {
            // Add event code here...
            if (dialogEvent.equals(false)){
                return;
            AdfFacesContext adfFacesContext;
            adfFacesContext = AdfFacesContext.getCurrentInstance();
            adfFacesContext.addPartialTarget(Bill4NewReceiptPending);
            //actionEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
            BindingContainer bindings2 = getBindings();
            System.out.println(" refreshBillFromDialog:bindings2: "+bindings2);
            OperationBinding operationBinding2 = bindings2.getOperationBinding("ExecuteWithParams");
            Object result = operationBinding2.execute();
            if (!operationBinding2.getErrors().isEmpty()) {
                 return ;
    And it works: the adf table(Bill4NewReceiptPending) in the calling page will be refreshed after the dialog popup was closed!
    Thank you all!
    What's more, I found even if I use bounded workflow calling instead of using popup dialog calling, the  returnListener wasnot executed either.
    And there is still a issue in the popup Dialog: The strange behavior of checkbox selection, see the thread:
    Why the page cannot refresh correctly after making checkbox selection?
    I tried and put aside for some days, and have no idea yet.
    Can anyone give helps?
    Thanks!

  • WHEN-TREE-NODE-SELECTED Action required..!

    Hello all,
    i am using a tree for the first time, i want to reflect the value of the node's id and desc in it's database item where they r inserted.
    The problem is the desc is not displayed NOT.
    But the node id is working just fine..Why ?
    Can anyone help me pls..?
    i am using the following code:
    WHEN-TREE-NODE-SELECTED Trigger:
    :EQUIPMENT_TYPE_D := :SYSTEM.TRIGGER_NODE;
    --The above returns the item_id of the node.
    BEGIN
           SELECT EQUIPMENT_TYPE
           INTO :EQUIPMENT_TYPE
           FROM INSP_EQUIPMENT_TYPE
           WHERE EQUIPMENT_TYPE_D = :EQUIPMENT_TYPE_D ;
    Exception
    When No_Data_Found THEN NULL;
    When Others THEN
                                     Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);
                                     Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);                          
    END;Regards,
    Abdetu..

    The WHEN-TREE-NODE-SELECTED trigger fires twice, it fires when selecting the node and when deselcting the node.
    First make sure that you SQL works in SQL*Plus, Handle your EXCEPTION correctly, remove the NULL from your exception and put a message, maybe your SQL is not returning any rows.
    add the below if condition in your trigger. This will make your code to be executed only when you select the node and not when you deselect it.
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
      ...    --Your execution code
    END IF; If your item name is the node's label itself you can easily do this:
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
      :your_block.your_item  := FTREE.GET_TREE_NODE_PROPERTY(HTREE$, :SYSTEM.TRIGGER_NODE, FTREE.NODE_LABEL);
    END IF; Tony
    Edited by: Tony Garabedian on Sep 11, 2008 12:29 PM

  • Commandtoolbarbutton enabling/disabling based on tree node selection

    i am using the tree tag to generate a set of nodes and every node is a command link.... i have a set of commandtoolbarbuttons on top of the tree... the functionality i am trying to obtain is on press of the tree node( i.e, command link ) the commantoolbarbuttons are enabled or disabled.. on press of link i am able to get the tree node selected in the backing bean, and also i am setting some variables for the "disabled" attribute of commandtoolbarbutton. The problem i am facing here is i have a partialtrigger attribute in the commandtoolbarbutton pointing to the commandlink id. But the partial trigger is unable to identify the command link id outside the tree. And i cannot put the commandtoolbar buttons inside the tree...
    Can anyone please let me know how can i resolve this?? or is there anyother approach??
    The source code is as mentioned below...
    <af:panelGroupLayout layout="horizontal" halign="right">
    <f:facet name="separator">
    <af:spacer width="5px"/>
    </f:facet>
    <af:toolbox id="mainTab_box" >
    <af:toolbar id="mainTab_bar">
    <af:spacer width="80"/>
    <af:commandToolbarButton icon="/resources/images/new_ena.png" partialSubmit="true"
    shortDesc="New" id="ctb1_mainTab" disabled="#{nodeSelectionHandler.createToolbar}" partialTriggers="cl1"/>
    <af:commandToolbarButton icon="/resources/images/update_ena.png" partialSubmit="true"
    shortDesc="Update" id="ctb2_mainTab" disabled="#{nodeSelectionHandler.editToolbar}" partialTriggers="cl1"/>
    <af:commandToolbarButton icon="/resources/images/delete_ena.png" partialSubmit="true"
    shortDesc="Delete" id="ctb3_mainTab" disabled="#{nodeSelectionHandler.cancelToolbar}" partialTriggers="cl1"/>
    <af:commandToolbarButton icon="/resources/images/importIcon.png" partialSubmit="true"
    shortDesc="Import" id="ctb4_mainTab" disabled="#{nodeSelectionHandler.exportToolbar}" partialTriggers="cl1"/>
    <af:commandToolbarButton icon="/resources/images/exportIcon.png" partialSubmit="true"
    shortDesc="Export" id="ctb5_mainTab" disabled="#{nodeSelectionHandler.importToolbar}" partialTriggers="cl1"/>
    </af:toolbar>
    </af:toolbox>
    </af:panelGroupLayout>
    <af:panelGroupLayout layout="scroll">
    <af:tree var="node"
    value="#{browserTreeModel}"
    id="browsertree" inlineStyle="min-width:200px;min-height:400px;width:100%;height:100%"
    rowSelection="single" clientComponent="true" contentDelivery="immediate"
    >
    <f:facet name="nodeStamp">
    <af:panelGroupLayout id="pgl10">
    <af:image id="nodeIcon"
    inlineStyle="margin-right:3px; vertical-align:middle; height:16px; width:16px;"
    shortDesc="directory icon" rendered="#{node.destination != null}"
    source="#{node.destination}"/>
    <af:commandLink text="#{node.text}"
    id="cl1"
    disabled="false" partialSubmit="true"
    actionListener="#{nodeSelectionHandler.selectionPerformed}" >
    <f:attribute name="nodeId" value="#{node.id}"/>
    <f:attribute name="operation" value="#{node.associatedOperation}"/>
    </af:commandLink>
    </af:panelGroupLayout>
    </f:facet>
    </af:tree>
    </af:panelGroupLayout>

    With apologies, you're not aware of ELUtils class devised by Steve Muench:
    package view;
    import javax.faces.context.FacesContext;
    import javax.faces.el.MethodBinding;
    import javax.faces.el.ValueBinding;
    public class ELUtils {
      public static boolean test(String booleanExpr) {
        return Boolean.TRUE.equals(get(booleanExpr));
      public static String getAsStringWithDefault(String expr, String defaultExpr) {
        return (String)getWithDefault(expr, defaultExpr);
      public static String getAsString(String expr) {
        return (String)get(expr);
      public static Integer getAsInteger(String expr) {
        return (Integer)get(expr);
      public static Object get(String expr) {
        FacesContext fc = FacesContext.getCurrentInstance();
        ValueBinding vb = fc.getApplication().createValueBinding(expr);
        return vb.getValue(fc);
      public static Object getWithDefault(String expr, String defaultExpr) {
        Object exprVal = get(expr);
        return exprVal != null ? exprVal : get(defaultExpr);
      public static void set(String expr, String value) {
        Object valToSet = value;
        if (isELExpr(value)) {
          valToSet = get(value);
        set(expr, valToSet);
      public static void set(String expr, Object value) {
        FacesContext fc = FacesContext.getCurrentInstance();
        ValueBinding vb = fc.getApplication().createValueBinding(expr);
        vb.setValue(fc, value);
      private static boolean isELExpr(Object o) {
        if (o instanceof String) {
          String str = (String)o;
          str.trim();
          return str.startsWith("#{") && str.endsWith("}");
        return false;
      public static Object invokeMethod(String expr, Class[] paramTypes, Object[] params) {
        FacesContext fc = FacesContext.getCurrentInstance();
        MethodBinding mb = fc.getApplication().createMethodBinding(expr, paramTypes);
        return mb.invoke(fc, params);
      public static Object invokeMethod(String expr, Class paramType, Object param) {
        return invokeMethod(expr, new Class[] { paramType }, new Object[] { param });
    }Try that.
    CM.

  • WHEN-TREE-NODE-SELECTED

    Hello alllll
    i have a master-detail block besides a tree block
    All i wanna do Simply and logically is to select a tree node then a Master-Detail records related to this tree node is to be retrieved...
    _i have the following code in the WHEN-TREE-NODE-SELECTED Trigger as follow:_
    DECLARE
      htree ITEM;
       node_value VARCHAR2(100);
    BEGIN
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
    -- Find the tree itself.
    htree := FIND_ITEM ('BL_TREE.IT_TREE');
    -- Find the value of the node clicked on.
    NODE_VALUE := FTREE.GET_TREE_NODE_PROPERTY( htree, :SYSTEM.TRIGGER_NODE ,  Ftree.NODE_LABEL );
       GO_BLOCK ('STP_COMPANIES');  
    EXECUTE_QUERY;
        END IF;
    END;The above code retrieved data as a whole
    but i want 2 filter the data selected from the tree node as i said 2 be displayed as filtered by the tree selection.
    so i used the following code as follow:
    GO_BLOCK ('GL_COST_CENTERS');  
       set_block_property('GL_COST_CENTERS', DEFAULT_WHERE, 'COMPANY_ID ='||
       ftree.get_tree_node_property('BL_TREE.IT_TREE', :SYSTEM.TRIGGER_NODE, FTREE.NODE_VALUE));
    EXECUTE_QUERY;Any help will be appreciated...
    Thanks in Advance..
    Regards,
    Abdetu...

    Hello thanks for reply,
    STP_COMPANIES your detail block? no it's the master
    gets the "Label" of the tree node not the value of the selected nodei tried both but nothing retrieved...!
    i thought that the value is the serial of the node and the lable is the text displayed on the tree node no ?
    Is this code in the same When-Tree-Node-Selected trigger or a different trigger?yes WHEN-TREE-NODE-SELECTED as my post titled...
    is GL_COST_CENTERS the master block? no it's the detail ; every company --- has many <- cost centers
    are the tables related? yes
    just query the master table and the detail table will automatically be filter through the relationship?i did and it works filtering through the company_id, But what i wanna do is 2 filter the data displayed in the two block Master-Detail according 2 the selection of the tree
    Say i selected the ....
                               + Assets node
                               |
                               |------ - Furnitures    's node is selected so alll the related details of the furniture is displayed in the Master-BLock
                               |         |
                               |         +----chairs
                               |         |
                               |         +----tables
                               |        
                               +----- LAnds
                               |So the Tree is used 2 Query or retrieved the selected node's data accordingly...
    hope i well explained my issue ..!
    is it possible 2 do that ?!
    Thanks Again..
    Regards,
    Abdetu...

  • Tree Node selected not firing all the time

    I have a tree menu that calls other forms when the user selects a tree branch (see
    When-tree-node-selected trigger below).
    This works fine, but if the user closes the form and want to re-open it, the trigger doesn't fire unless the user clicks off the branch item and back on it. How can I make it work whenever the user clocks the branch item?
    if :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' then null;
    node_value := Ftree.Get_Tree_Node_Property(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE);
    open_a_form(l_form,l_module,l_form_code);
    end if;

    Have you tried setting the node the node to deselected programmatically?

  • Network issues after returning from sleep mode

    I'm noticing this issue on T440, Twists, T420s, whether it's Windows 8, Windows 8.1 or Windows 7.  Sometime around the end of last year and the beginning of this year, my users suddenly started reporting problems with the machines after returning from sleep mode.  The network adapter (whether plugged in or using wifi), would show limited connectivity and would not connect to the internet until the machine is rebooted.
    I've tried updating drivers, using system restores, disabling the network adapters from shutting down to conserve power, OS network diagnosis & network adapter resets, none of which has worked.  Hibernation is disabled on all machines.
    The only fix I have is to reinstall the OS over the top of the system and reinstall all updates.  Looking for help with this issue.
    Thanks!
    Solved!
    Go to Solution.

    Hi Mertz74,
    Thank you for replying us back!
    Please check with uninstalling power manger and reinstall it with latest driver.
    Download chipset driver from Lenovo drivers page and install it.
    Please check with above option to resolve the issue.
    Below is the link to enter the downloads page and download updates accordingly, please click on "Select Product" then in "QUICK PATH" enter the MTM no. select the exact model.
    http://support.lenovo.com/en_US/downloads/default.page#
    Hope this helps. Do post back if issue persists!
    Best regards.
    Hemanth Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How to keep the current http session after returning from external web site

    Hi,
    When I use the response.sendRedirect api to redirect the web page to the external payment site, after payment and return back to the current application, I found that the current http session is lost.
    How to keep the current http session after returning from external web site?
    Thanks

    You should make your sidebar1 and sidebar2 fixed positioned. Make your content DIV fluid.
    This should help you: http://www.glish.com/css/7.asp

  • Unable to refresh parent swing  form components after returning from child

    Hi,
    Not able to refresh the parent swing form components after returning from the child form.
    I am having problem in setting/resettig values to the parant swing form components after returning from child form. In parent form, I am entering values in some of the fields and clicking on Search button in parent form which will open a child window with the search results in JTable. Now selecting a row and writing the selected data to an ArrayList and returning back to the parent. I am able to see the values in the ArrayList, but not able to set any value to any of the parent form components by using the formtextfield.setText("value").
    Thanks
    Yakshak

    create another project
    a frame with a formattedTextfiled and a button
    the button to open a child window
    in the child window use say a JTextField to simulate a search result (type in some dummy data)
    now add the arraylist code that produces the problem
    if this stripped-down version of your program has the same problem, post all of the stripped-down code,
    so we can see what you're doing.

  • OPEN FORM WHEN-TREE-NODE-SELECTED

    hello all...
    i have a tree and i wanna when i click on the node another forms open due to form name
    i have table includes form_if,form_name " as in H.D.D"
    when i present all nodes and i click on the node the form opened and when i click on other node from the tree
    " the last previous selected node also opened and when i close it the new form is opened and so on"
    the code in when-tree-node-selected is
    DECLARE
    node_value varchar2 (100);
    frm_name varchar2 (100);
    path varchar2 (100);
    BEGIN
    node_value := ftree.get_tree_node_property('block33.sub_TREE',:SYSTEM.TRIGGER_NODE, FTREE.NODE_VALUE);
    select FRM_NAME into frm_name
    from forms_list
    where FO_ID = node_value
    path :=(frm_name||'.fmx');
    call_form(path);
    path:=null;
    frm_name:=null;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN NULL;
    END;

    Hi,
    >
    when-tree-node-selected
    >
    Fires when a node is selected or deselected.
    So your code is getting executed for selection and deselection
    use SYSTEM.TRIGGER_NODE_SELECTED to check
    IF SYSTEM.TRIGGER_NODE_SELECTED THENRegards
    Yoonas

Maybe you are looking for