Capture the Node clicked / selected in Toplevel navigation

HI
How to capture the node that is clicked by user  in the generated toplevel navigation from the taglib.
I need to pass the TAB/MENU name selected by user to another JSP using session or request object.
<nav:iterateInitialNavNodes>
       <li class='Level1'><nav:navNodeAnchor navigationMethod="byURL" />
        <%-- check to see if there are level 2 nodes, if so start another <ul> and assign a CSS class --%>
        <nav:ifNavNodeHasChildren>
            <ul>
            <%-- again go through all the nodes in level 2 --%>
            <nav:iterateNavNodeChildren>
       <%-- id l1 is written for second level hover and to set its css properties --%>
                <li class='Level2' id='l1'><nav:navNodeAnchor navigationMethod="byURL" /></li>
            </nav:iterateNavNodeChildren>
            </ul>
        </nav:ifNavNodeHasChildren>
        </li>
    </nav:iterateInitialNavNodes>
Suggestions appreciated.
Thanks in advance.

Hi ,
I got the answer, I am closing this.
Its very simple , the FPN is implemented , the URL of the portal will be appended with "Short Cut" or "Navigation Parameter" with
NavigationTarget
and
NavigationTarget=navurl://abd78e32mkf233nm892
What we need to do is, in the JSP, read this as
request.getParameter("NavigationTarget")
and check whether the user hit the same TAB in the DLN menu with
navurl://
and write the logic as we need.
Thanks for all.

Similar Messages

  • URGENT !! Capture the insert and select on database

    Hi,
    I need to capture the inserts and selects on the database.
    What are the options available on 9i?
    Thanks in advance!

    I don;t know how many times I've had to say this, but since I've had to say it to my boss, it bears repeating here:
    The SPFILE makes absolutely zero, null, nought difference to whether or not something is changeable dynamically or not. Not one bit, one whit or one iota.
    Parameters are as static or as dynamic as they were when init.oras rules the roost. Check in V$PARAMETER: if the thing says ISSYSMODIFIABLE is TRUE, then the parameter can be altered with an alter system command -and that's true whether you're using an init.ora or an spfile. If it says ISSYSMODIFIABLE=FALSE, then the parameter CANNOT be altered with an alter system command, and that's true whether you're using an init.ora or an spfile.
    Now comes the subtlety: if you add SCOPE=SPFILE to your alter system command then you aren't actually altering the system at all. All you're doing is asking the instance to edit the spfile. So an alter system set db_block_size=67238 scope=spfile will work, because you're not actually asking to alter the current block size at all. You're merely asking the instance to do what you would otherwise have done with notepad or gedit to a traditional init.ora.
    Only if you SCOPE=MEMORY is your alter system command actually trying to change the currently running instance.
    Of course, the trouble starts when you miss off a SCOPE clause, because then you get SCOPE=BOTH, which means MEMORY+SPFILE. But try that on a parameter which is SYSMODIFIABLE=FALSE: it won't work, because the MEMORY bit trips over the fact that the parameter is not system (dynamically) modifiable. Which just goes to prove that the existence of an SPFILE changes ABSOLUTELY NOTHING about whether a parameter can be dynamically modified or not.
    So no, the sentence "my database is using spfile and I have option to use alter system command" makes zero sense if, by it, you mean "I'm using an spfile so can I change things dynamically which I wouldn't be allowed to if I was stuck using a boring old init.ora"
    The answer is always and forever, "NO"!
    I blame a certain bouffant-haired so-called expert for first promulgating this myth that all parameters suddenly became dynamic in the presence of an spfile. It was never true when he wrote it. It isn't true now. It never will be true. It just happens to be the case that "alter system..scope=spfile" is Oracle's equivalent of "vi init.ora" as far as spfiles are concerned.

  • How can I capture the event of selecting a listbar page item?

    Is there any way that I can capture the event of clicking/selecting a listbar page item (not just selecting the listbar page) from the listbar activeX control in TestStand 3.0?
    I was able to populate the list bar page with items, now how do I know if a user selects any one of those items?
    Thanks for your time and assistance,
    Mark

    Use the CursorMoved event.

  • How to capture the line clicked

    Hello All,
    My program finds the wrong naming conventions in the program defined on the selection screen, and outputs all the lines and line no with in the program with incorrect naming conventions.
    for eg:
    data: begin of lv_output    25
    end of lv_output               32
    now
    when i click on the line it should goto the line clicked in the program defined on the selection screen.
    for this
    i used event
    AT LINE-SELECTION.
      CALL FUNCTION 'RS_TOOL_ACCESS'
    which is now taking me into the program but not to the line i clicked .
    how can i get this?plz advise
    Thanks

    Hi,
    Refer this basic code for checking the field name and field value on which the user currently clicked.
    TABLES : LFA1, LFB1.
    TYPES : BEGIN OF VENDOR,
            LIFNR LIKE LFA1-LIFNR,
            NAME1 LIKE LFA1-NAME1,
            ORT01 LIKE LFA1-ORT01,
            END OF VENDOR,
            BEGIN OF VENDOR1,
            LIFNR LIKE LFA1-LIFNR,
            LAND1 LIKE LFA1-LAND1,
            BUKRS LIKE LFB1-BUKRS,
            END OF VENDOR1.
    DATA : VENDOR_TAB TYPE STANDARD TABLE OF VENDOR INITIAL SIZE 20 WITH HEADER LINE,
           VENDOR1_TAB TYPE STANDARD TABLE OF VENDOR1 INITIAL SIZE 20 WITH HEADER LINE,
           FLDNAME(25),
           FLDVALUE(25).
    TOP-OF-PAGE DURING LINE-SELECTION.
      WRITE :/ 'SECONDART LIST FOR VENDOR ID:', VENDOR_TAB-LIFNR COLOR 3.
      ULINE.
    START-OF-SELECTION.
      SELECT LIFNR NAME1 ORT01
      FROM LFA1
      INTO CORRESPONDING FIELDS OF TABLE VENDOR_TAB.
    AT LINE-SELECTION.
      GET CURSOR FIELD FLDNAME VALUE FLDVALUE. "<--get the fieldname and fieldvalue
      CASE FLDNAME.
        WHEN 'VENDOR_TAB-LIFNR' OR 'VENDOR_TAB-NAME1' OR 'VENDOR_TAB-ORT01'.
          IF SY-LSIND EQ 1.
            SELECT A~LIFNR A~LAND1 B~BUKRS
              FROM LFA1 AS A
              INNER JOIN LFB1 AS B
              ON A~LIFNR = B~LIFNR
              INTO CORRESPONDING FIELDS OF TABLE VENDOR1_TAB
              WHERE A~LIFNR = VENDOR_TAB-LIFNR.
            WRITE : /1 TEXT-001, 13 TEXT-004, 46 TEXT-005.
            ULINE.
            LOOP AT VENDOR1_TAB.
              WRITE : /1 VENDOR1_TAB-LIFNR, 13 VENDOR1_TAB-LAND1, 46 VENDOR1_TAB-BUKRS.
            ENDLOOP.
            ULINE.
            IF SY-SUBRC <> 0.
              MESSAGE E005.
            ENDIF.
          ENDIF.
        WHEN OTHERS.
          MESSAGE E006.
      ENDCASE.
    END-OF-SELECTION.
      WRITE : /1 TEXT-001, 13 TEXT-002, 46 TEXT-003.
      ULINE.
      FORMAT HOTSPOT.
      LOOP AT VENDOR_TAB.
        WRITE : /1 VENDOR_TAB-LIFNR, 13 VENDOR_TAB-NAME1, 46 VENDOR_TAB-ORT01.
        HIDE : VENDOR_TAB-LIFNR. "<--store the value user clicked
      ENDLOOP.
      ULINE.
    Hope this helps you.
    Regards,
    Tarun

  • F4 on LIFNR fails to capture the values in SELECT statement

    Hi all,
    In the last 3 days Ive faced two issues on F4 Helps and its freaking me out.
    The first issue I chose to ignore because of time-constraints and able to find a work-around.
    On the second issue Ive hit a brick-wall.
    Anyways here are my two issues.
    Issue I:
    I developed a custom report and in that Ive defined a selection-field(among half a dozen others) as follows:
    select-options: s_matnr for ekpo-matnr.
    On execution when I press F4 on matnr field I get the standard F4 Help. And then when i select the Material I want and hit Enter, the selected value fails to reflect in the Input Screen field. I continues to show blank as if Ive not selected anything. Not surprisingly the Report output was fetching the undesired results.
    Later I changed the declared to:
    select-options: s_matnr for mara-matnr.
    And it worked. However because of time constraints I did not dwelve into it anymore.
    This bring me to the Issue II:
    For a different Custom Report Ive defined Select_Options on LIFNR as follows:
    select-options: s_lifnr for lfa1-lifnr.
    Now the issue I face here is slighly different.
    On hitting F4 on the LIFNR field Im getting the standard F4 Help, and on selection Im getting the desired Vendor Number on the input screen.
    But the problem is while executing the report its not fetching me the records relevant to the selected LIFNR. In debugging it does show me that LIFNR contains the value but surprisingly its not returning any values to the Internal Table.
    Im out of ideas at this point of time, trying to figure out whats wrong.
    Any ideas on what could be wrong??
    pk
    PS: Im not using any function modules for the F4 help. Just the straight-forward Standard F4 functionality.

    >
    Eric Cartman wrote:
    > I meant here that you can exclude values in select options, for example you told there are 8 items for the vendor in the Z... table, let's say all these 8 items use the same material number, but (whatever reason) this material number is excluded from the selection in s_matnr (it is just an example, there could be many variations, you have a number of select options)
    What you say makes sense, but firstly I dont have a MATNR in my table and from the looks of it, its not advisable to use any other common field either. A vendor-wise search is of primary importance in this table. So cant really exclude that.
    if Rob's advise was helpful, than it looks like that the domain in the custom table for the field is not lifnr
    Well the Domain has always been LIFNR regardless of which Data Element I used.
    And the domain should probably be changed, but this might cause compatability issues.
    Rob,
    What kind of compatibility issues are you talking about? What I have right now is a custom table with some test data. So I guess its ok to change the Domain and Data Elements as I wish and Adjust the Table. Right?
    @Amit: I will look at your inputs a little more carefully and get back to you. Right now Im a little tied-up with other issues.
    Thanks everyone.
    pk
    Update:
    So... as I said earlier, when I used CONVERSION_EXIT_ALPHA_OUTPUT on LIFNR the selection on LIFNRs worked just fine. But unfortunately the rest of the select-options returned zero results(if I left the LIFNR select-option blank). I found the reason to be that because of the conversion routine the LIFNR values are taken as space. So i guess its looking into the database table for blank values of LIFNR, which is never the case and hence no values returned. Anyways, I found a work-around for this and for the moment its working fine...to some extent.
    Only constraint being that I cannot enter a range of values for LIFNR.
    Heres the code Im using right now. Thought it might be useful for future references or somebody wants to fine-tune it, is welcome to do so.
    if s_lifnr-low = space.
    select * from zpst001 into corresponding fields of table ist_zpst001
           where tno     IN s_tno
           and   ebelp   IN s_ebelp
           and   pspid   IN s_pspid
           and   werks  IN s_werks
           and   pick    IN s_pick
           and   pstatus IN s_status.
    else.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
      EXPORTING
        INPUT         = s_lifnr-low
    IMPORTING
       OUTPUT        = s_lifnr1-low
    select * from zpst001 into corresponding fields of table ist_zpst001
           where tno     IN s_tno
           and   ebelp   IN s_ebelp
           and   pspid   IN s_pspid
           and   lifnr   eq s_lifnr1-low
           and   werks   IN s_werks
           and   pick    IN s_pick
           and   pstatus IN s_status.
    endif.
    pk
    Edited by: prashanth kishan on Nov 20, 2008 5:08 PM

  • Setting the page as selected in detailed navigation

    Hi,
          I have this requirement which i am not able to achieve. The folder structure/ hierarchy looks like this
    Role
    |-- Workset1
           |--Workset2
                 |--Page1
                      |--iView1
                 |--Page2
                      |--iView2
    Now when i click on <b>Workset1</b>, in the content area i want the <b>iView1</b> to get loaded instead of me clicking on <b>Page1</b> explicitly. This was achieved by setting the property "Default Entry for Folder" for <b>Page1</b>.
    But the problem is that <b>Workset2</b> is still the selected object in the Detailed Navigation. But since <b>iView1</b> belonging to <b>Page1</b> is loaded in the content area, i want <b>Page1</b> to be the selected object in the Detailed Navigation.
    Has anybody faced a similar problem? Is there some kind of configuration that needs to be set?
    Thanks, Akhilesh

    Hi Akhilesh,
    this does not work to my knowledge. We also had this issue open, but SAP only implemented "Default Entry for Folder" on a two level hierarchy basis, not deeper.
    As a workaround, you could set an iView (hidden in navigation, but default entry folder) within the upper structure, which just prints out some EPCM.doNavigate JS, navigating to the default page, deeper in the structure. You could set the navTarget static (as property) or you could calculate such a destination dynamically (just go down the PCD tree, looking for the first deep page element).
    I'm unsure if the combination "hidden in navigation, but default entry folder" works, but Robert Briese just tests it and will report, I'm sure.
    Hope it helps
    Detlev

  • While using my iPhone the system behavior changed where I now have to click on the app to select it, then double click to launch it. Same goes for entering in my password to access the phone and entering digits to make a phone. I am also having trouble

    While using my iPhone the system behavior changed where I now have to click on the app to select it, then double click to launch it. Same goes for entering in my password to access the phone and entering digits to make a phone. I am also having trouble swiping the screen to move to the next page. This is no longer working. I did not change any settings, the phone just started behaving this way. Any ideas on how to revert back to the single click selection/launch? Any assistant is greatly appreciated. Thank you!

    Edge has very clear restrictions, one being that you must have 6 months of clean payment history which you don't. Either wait until April 14, or good luck at Sprint.
    I am unsure how it can be determined the payment mix up was the fault of CS, but regardless, the mix up was done. There can be any number of reasons why a payment could be missed without any fault on your part, however you are still the responsible party for the account and must live with the repercussions.

  • Allow right-click selection in a JTree

    Hi everybody! How are today? Fine? I hope so.
    I've got a little question about JTrees: i want to put a right-click popup menu on my JTree, which may not be the same depending on which node of the tree is selected.
    My problem is that i must do a left click selection of the node before doing the right click in order that this one may be effective and correct (i.e the correct popup menu appears).
    So, i want to allow the right click selection in my JTree to select the node and to perform the action linked to the Popup menu.
    I will be very thankfull if someone could help me :)

    Sorry to post twice, but just thought i'd post the code to show you what I mean (forgive me not making this entirely generic):
    ///// Some "global" variables:
         private JPopupMenu               stPopupMenu;
         private TreePath               stPath;
         private String                    stPathComponent;
         private int                         stCount;
         private Object                    selectedNode;
    ///// Attaching the listeners:
    symbolTreeDisplay.addTreeSelectionListener(stHandler);
    symbolTreeDisplay.addMouseListener(stHandler);
    //// The event listener class:
         private class SymbolTreeHandler extends MouseAdapter implements
                   TreeSelectionListener
              public void mouseClicked(java.awt.event.MouseEvent event)
                   try
                        if (event.getModifiers() == event.BUTTON3_MASK)
                        {//right button click on mouse
                             stPopupMenu = new JPopupMenu();
                             // add your logic here, based on selectedNode to add items to the menu
                             stPopupMenu.show(symbolTreeDisplay, event.getX(), event
                                       .getY());
                   catch (Exception e)
              public void valueChanged(TreeSelectionEvent aTreeEvent)
                   try
                        stPath = aTreeEvent.getPath();
                        stCount = stPath.getPathCount();
                        selectedNode = stPath.getPathComponent(stCount - 1);
                   catch (Exception e)
         }

  • Customizations are disabled for the node "ProposedJobVO.xml"

    Hi,
    We are trying to add extensions to a fusion Application. When i have created an Application 'Fusion Customizations Application'.
    In the Role 'Oracle Fusion Applications Administratror Customizations', and in Customizable Archive, Some Business Components are Not customizable while some of them are Customizable.
    getting below error in Log file
    Customizations are disabled for the node "ProposedJobVO.xml" because it is not part of the project contentset.
    Does this mean we cannot modify this VO or we need to do anything else to get these components included in Project Content Set?
    Thanks
    Kaja

    "Customizations are disabled for the node xxxx because it is not part of the project contentset". This warning is logged if you try to open a node for customization in customizaion role IN FA environment from Application Resources->connections->customizable archive ,
    as this node is not a part of project. In order to add it to the project you will have to right click on the node and select customize this will add the node to the virtual content set of project.
    Now this node will be available under project and can be customized.

  • Expanding a JTree Node on selection

    Hi,
    I have a need to expand the node on selection in a JTree. I would like all the children to be recursively expanded and selected.
    I believe the code lies somewhere with in JTree's TreeSelectionListener.
    The code I have is as follows
    tree.addTreeSelectionListener(new TreeSelectionListener()
    public void valueChanged(TreeSelectionEvent evt)
    TreePath[] paths = evt.getPaths();
    for (int i=0; i<paths.length; i++)
    if (evt.isAddedPath(i))
    DataNode node = (DataNode)paths.getLastPathComponent();
    ArrayList aList = node.children();
    if( !aList.isEmpty() )
    for(int j = 0; j<aList.size(); j++)
    TreePath tp = paths[i].pathByAddingChild(aList.get(j));
    System.out.println(tp);
    tree.expandPath(tp);
    }//for
    }//public void ValueChanged
    This does not seem to solve the problem..
    Your comments or help is very much appreciated..
    thanks
    S

    it does work for me (i do it in an action). what doesn't work for you?
    thomas
      public RecursiveExpander() {
        menu = new JPopupMenu();
        JMenuItem expand = new JMenuItem("Expand Recursive");
        expand.addActionListener(this);
        menu.add(expand);
      public void mousePressed(MouseEvent e) {
        theTree = (JTree)e.getSource();
        currentPath = theTree.getPathForLocation(e.getX(), e.getY());
        if ((currentPath != null) &&
            !((TreeNode)currentPath.getLastPathComponent()).isLeaf() &&
            (e.getModifiers() == InputEvent.BUTTON3_MASK)) {
          menu.show(theTree, e.getX(), e.getY());
      public void actionPerformed(ActionEvent ae) {
        new Thread(this).start();
      public void run() {
        theTree.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
        try { expand(currentPath); }
        catch (OutOfMemoryError oom) {
          System.gc();
          System.err.println("RecursiveExpander: " + oom);
          JOptionPane.showMessageDialog(null, "RecursiveExpander: " + oom, "Error", JOptionPane.ERROR_MESSAGE);
        theTree.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
      private void expand(TreePath path) {
        theTree.expandPath(path);
        TreeNode start = (TreeNode)path.getLastPathComponent();
        for (int i = 0; i < start.getChildCount(); i++) {
          TreeNode node = start.getChildAt(i);
          if (!node.isLeaf()) {
            expand(path.pathByAddingChild(node));
    }

  • Adding a BSEG field to the FB03 dynamic selection screen

    Hello,
    We have a requirement wherein we want to add a field from BSEG in the dynamic selection screen of FB03.
    We found that the logical database behind this is BRF.  So we created a u2018CUSu2019 selection view for the logical database and added the field from BSEG to the functional group
    and checked the checkbox u201CPreselectu201D for it to appear automatically in the FB03 screen.
    But we still couldnu2019t see the field in FB03 dynamic selection.
    On analysis, we found that only tables are that are defined in the nodes (Extras  Selection views) can be used to create the dynamic selection and BSEG was not available
    as one of the node.  So we added BSEG as one of the node by adding the below code to the SELECTION of the logical database.
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE BSEG.
    Even after that, we couldnu2019t see the field from BSEG in the dynamic selection.
    Are we missing anything here?
    I see many threads here on similar lines but no one has posted the exact step. Any help is highly appreciated.
    Thanks a lot.
    Regards,
    Suganya

    Hi
    If you want to take the line item details than you can refer these t-codes rather than customizing.
    S_AC0_52000887 - Receivables: Profit Center
    S_AC0_52000888 - Payables: Profit Center
    S_ALR_87012332 - G/L Account Statements
    Here by using the dynamic selection you can get the results. Use object list display and select the layout for more fields.
    Thanks

  • Capturing the Cancel button with Before Print event handler

    I put together a script that is triggered by a beforePrint event handler. Everything works fine but I can't figure out how and where to capture the user clicking on the Cancel button in the Print dialog?
    Any ideas? Thanks, Dan

    Alen,
    My bet is you are using JDeveloper 11.1.1.5. This is a known ADF bug 12551764 in this release, not related to JHeadstart.
    Here are the details:
    http://adfbugs.blogspot.com/2011/05/jdeveloper-11115-serius-bug.html
    I just checked the bug database, it is fixed in patch 12399372. You can go to metalink to download the patch.
    Steven Davelaar,
    JHeadstart Team.

  • Capture URL Link click event in ProcessFormRequest

    Hi All,
    I have requirement to capture the event and do some validation/dialog page whenever a URL Link is clicked on my Page.
    I can handle the button click event in ProcessFormRequest, if I use a Button and sets its destination URI to a URL
    However, if its a standard hyperlink or Image and Destination URI is set. The event is not being captured in ProcessFormRequest.
    Is there any other alternative, apart from changing the Image to Button. Thats the restriction. Its has to be Image.
    Or how to capture that event, when the URL is clicked.
    Rgds
    Rakesh

    Hi
    Many thanks for the update.
    The page I am working on is the standard Oracle Page ( Receiving Home Page in iProcurement). This page has table of Requisitions which can be Received.
    Express Receive image is present corresponding to each Requisition in the tablelayout.
    Once the express receive is clicked ( Destination URI property is set to OAFunc= Final Review Page Parameter= Req Header ID), the Review page is displayed with Submit button.
    So as to change the ActionType of the Express Receive Image, I need to then customize the page and also extend the standard Controller code.
    Instead just extending the COntroller to capture the URL click event
    I guess, the URL click event cannot be captured in Controller. Hence the Property has to be changed and handled by code.
    What i am worryin for this solution is that, whether the specific Requisition Header ID which is passed on the URL link, can be passed similiarly while writing the code for the Action Type of the Express Image. Or the code would though take to Review Page but miss out the specific Req Header ID against which it was clicked.
    Pls advise
    Thanks
    Rakesh

  • How is highlighted item in the toplevel navigation bar chosen?

    Hi,
    I have an Iview (containing a BSP froma CRM backend system) in the Portal (EP6) which contains a hyperlink, which contains this:
    http://xxx.com:80/SAPPortal?NavigationTarget=%2Fglobal%2Fservices%2Finstalled%2Fcom.sap.pct.crm.UrlDispatcher.default%3F.... etc.
    When I click the hyperlink, a new Portal window opens with another backend iView. Here is the strange thing: for some people the highlighted toplevel navigation item is correct (matches what the new iView is actually showing), but for other people the very first (leftmost) item in the toplevel navigation is highlighted instead. In this case it seems that some selection of the highlighted item has failed and the Portal simply picks the very first one to be the highlighted item. The difference is in the persons Roles. The hyperlink is identical, but the resulting screen is different (and the URL visible in the new window is identical as well!).
    When I bring this problem to the Portal developers at my company, they tell me it is probably a backend application error. However, the BSP always creates the same hyperlink, and once clicked the backend CRM system is not utilized in any way I can think of.
    So, can anyone out there a) think of some possible ways in which the different EP Roles can affect this, so I can suggest things that the Portal developers can look for, and b) what kinds of traces can I run so that I can then show a difference to the Portal developers.
    Or could it REALLY be a backend application problem? I am not a Portal person so I just need some ammunition to get the Portal guys working on the problem.

    OK - here's the official answer from SAP... the users for which it was not working had manager profiles. There are two sets of profiles, one in EP, one in CRM. The CRM database table that links them is CRMC_PRT_ROLE_MO. This table looks at the CRM Roles, picks the one with highest priority, and assigns a string to the hyperlink. The string is passed to the Portal where it is interpreted according to the EP Role.
    Our solution (from SAP): create a manager role in CRM, assign a special string to that Role, and give it a higher priority than the regular role.

  • How to calculate the last selected item in a tree node where we can customize the list to the node.

    Hi,
    I'm new to the Flex field. I got a task where i have a tree (TREE is the id) with X and Y as nodes. In X i have got a list of pages(dataprovider is array collection) added dynamically(means User can configure the pages).On selecting last item(last page) in the list of X node, the  view will be presented with a component say Xlast on the right side which is in view stack. In that component , there is button called NEXT which has to be greyed out for the last page. I tried by calling the below code on viewChange event
    if(viewstack.selectedchild == XlastpageId)
    Nextbtn.enabled = false;
    but this will work only when we know XlastpageId is the lastpage for the tree. but how to implement this when we dont know which is the last page of the X node in a Tree.
    I also tried by calculating the children of the tree on tree click event which is
    if (Tree.selectedItem == TREE.numChildren - 1)
    Nextbtn.enabled = false;
    i know this is wrong because we have 2 children for the tree( X and Y) so it is showing 2-1 and the button is greyed out for the first click.
    Please help me out.
    Thanks in Advance,
    Sw

    Hi,
    According to your post, my understanding is that you want to monitor the last login user’s details.
    There is no out of the box way to achieve it in SharePoint.
    We can use cookie to be a flag for checking whether there is an user just log in. After the page loaded, if the cookie is null, it suggests that there is an user just log in our site, then we
    can get this user’s information using JavaScript Object Model and add the information into a custom list. With this list, we can monitor user’s login details.
    Refer to the following link:
    https://social.technet.microsoft.com/Forums/en-US/0cd4d531-cb61-4d90-aa70-413267f4a735/how-to-know-login-and-logout-details-of-a-user-in-sharepoint-online-2013?forum=sharepointdevelopment
    Besides, here are two similar posts for your reference:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/1a35283e-0f2a-49b8-b330-801a3cfcd890/programatically-get-all-current-logged-in-users-list-for-a-sharepoint-site?forum=sharepointdevelopmentprevious
    https://social.technet.microsoft.com/Forums/en-US/10953be3-cb1c-40c7-9454-545c8338b551/how-to-know-login-users-count-and-their-details-in-sharepoint-2010-web-application?forum=sharepointgeneralprevious
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

Maybe you are looking for

  • How do I Delete an Email Address from Auto Complete in iPad iOS mail

    How can I remove old/unwanted/incorrect email addresses, (which have never been in my contacts list or which have been superseded because they were wrong)? Every time I start writing an email address I get this list of suggestions of any similar addr

  • Error while adding property values

    Hi Experts, I have a dimension named PRODUCT with almost 19,000 rows of members. Now, I'm adding a property named CATEGORY to tag each product to their corresponding product category. While processing the dimension I'm encountering the error below:  

  • How to find out who's texting you from an iCloud email address?

    how to find out who's texting you from an icloud email address?

  • Problem installing external hard drive

    I'm trying to install a Acomdata external hard drive on my new Macbook (Mac OS X version 10.5.1). Despite following the directions and completing the installation accordingly, and after restarting the computer, when I click on the desktop icon, "Secu

  • Link to open on new page

    Is there a way to have links from a web page to open on a new page? Right now my links open on the same page so I need to go back to see the original page where the link is. Thank you.