How to give url to an tree element?

I have created a 2 views
        The first view contains a Tree Control like:
MainMenu 1
                      - submenu 1
                      - submenu 2
MainMenu 2
                      - submenu 1
                      - submenu 2
MainMenu 3
                      - submenu 1
                      - submenu 2        and a tranparent container in the right side of tree.
       The second view contain some contents.
      I want to give action for the tree element like if I click the submenu , it should display the second view in the transparent container of the first view.
      Can anyone pls suggest me?
Thanks.

Hi Abdul,
        I guess what you need is a Link To Action table column. You can achieve same by following the below mentioned steps:
1) click on table and try to bind it to the context node
2) change the property "cell editor of table column" to "link to action" of the column/attribute from where you would like to trigger the action.
3) bind the "visible" property of VC to a context attribute of type boolean
4) set this attribute to abap_true in event OnAction__()
this will display your view at that location.
Hope this helps.
Regards,
Anoop

Similar Messages

  • ABAP webdynpro how to give spacing between the UI Elements in a view

    Hi Expert,
    I am very new to webdynproapplication development. I am stuck in changing the look of the ui  elements of the view.
    Cud anyone explain  how  to set the spaces  between the  UI Elements on  a View is there any method ?
    I have set the Layout property  to Matrix layout. But here I am unable to set the spacing between the deffernet elements  as it is taking it automaticaaly  and I am not able to allign  all the  Elements.
    Need your help!.............thank you
    Moderator message: wrong forum, please have a look in the dedicated "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on Apr 15, 2011 10:17 PM

    Hi anushree.,
    If u are using matrix layout:
    In Layout Data select MatrixHeadData to display UI in next line.,
    If u want to give space  between UI elements in the width enter 50, 60, 70 or what ever space u want.
    Also in the vGutter u can select medium ,  large ,  medium with rule  to give space between UI elements.
    n if u want to give space between lines  ., in the height enter 30 40 or whatever spacing between lines u want.,
    Matrix layout is a good layout., and u can play with colspan , hAlign, vAlign, vGutter, width and height options.,
    If u dont like the layout with these options then use Grid layout., where u can give custom spacing., with the help of Left Padding, Right Padding, Top Padding, Bottom Padding.
    reply if u need some more clarifications.,
    Thanks & Regards
    Kiran

  • How to give URL path of image

    Hello Exprts ,
    I have following code to load an image from the table on screen.
    method FILL_PICTURE.
        types PICT_LINE(256) type X.
        data  PICT_TAB type table of PICT_LINE.
        data  URL(255) type C.
        import PICT_TAB = PICT_TAB from database abtree(PI) id 'PICTURE'.
        call function 'DP_CREATE_URL'
             exporting
                  TYPE    = 'IMAGE'
                  SUBTYPE = 'GIF'
             tables
                  DATA    = PICT_TAB
             changing
                  URL     = URL.
        call method PICTURE->LOAD_PICTURE_FROM_URL exporting URL = URL.    call method PICTURE->SET_DISPLAY_MODE
             exporting DISPLAY_MODE = PICTURE->DISPLAY_MODE_FIT_CENTER.
      endmethod.
    Now what I need to do is I need to give a path of the image on DMS, so where should I change this code?
    OR is there any other method to convert the path into URL?
    Please Help!!!!!!

    Somehow this question seems to pop up all the time. I don't blame you for asking it, though. The problem is that there is no easy or general way of doing what you ask for. You can have a look at the following thread to see some suggestions: http://forum.java.sun.com/thread.jsp?forum=31&thread=328939
    (Take a closer look at reply 27 in that thread.)

  • Problem by activating Monitoring Tree Element in NW Administrator

    Hi All,
    I try to activate the monitor tree element in http://<host>:<j2ee port>/nwa but I find not active the entry server and the related entry "applications". The step necessary for my configuration is to select the tab Configuration of the Details pane, select Data Collection from the Show drop-down menu, and activate all monitors of the subtree by selecting the Enable All Children.
    The button [Enable All Children] is in a gray colour as all path starting from the "Server" entry.
    For my configuration I'm following the information in "How to Monitor Exchange Infrastructure.pdf".
    Any suggestion will be well appreciated.
    Many thanks in advance for your support.
    Regards,
    Edited by: GiovanniB on Jul 1, 2009 4:19 PM

    may be below tags would help you
    Re: IT0019 Date of Monitoring TAsk
    How to create a Customizing Monitoring Tree Element(MTE) for CCMS alerts.
    regards
    nag

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • How to get the current tree element (node/childnode/childnode/...) ?

    Hello!
    I'm trying to create a kind of a navigation tree for my application.
    It should represent some elements of an XML structure and some other nodes for other options.
    The binding with the context is not a problem, I can create the tree up to all the levels I want to.
    The problem now is, that I don't know, how to get the "current tree element", when there is any action.
    For example:
    public void onActionSelect(...) {
    String test = wdContext.currentTreeNodeElement().getText();
    wdThis.wdGetContext().currentContextElement().setSelectedElement(test);
    With this method I can get the text of the "first level nodes". If I want to get the "second level node", I can do
    String test = wdContext.currentTreeNodeElement().currentChildElement.getText();
    ..and for the next levels so on.
    Isn't there any general method to get the information of the selected element without knowing before, whether it is a nodeElement or a nodeElement.currentChildElement or a nodeElement.currentChildElement.currentChildElement, ...?
    Greetings,
    Ramó

    Hi,
    if you following that pdf ,
    i think your not implemented the below code in DomodifyView method
    if (firstTime) {
          IWDTreeNodeType treeNode = (IWDTreeNodeType) view.getElement("TheNode");
          /* The following line is necessary to create parameter mapping from parameter "path" to parameter "selectedElement".
    Parameter "path" is of type string and contains the string representation of the tree element (its corresponding context element to be exact)
    that raised the onAction event. Parameter "selectedElement" is of type IWDNodeElement (or extends it) and is defined as parameter in the event handler
    that handles the onAction. The parameter mapping defined here translates the String "path" into the corresponding context element that then can
    be accessed within the event handler
          treeNode.mappingOfOnAction().addSourceMapping("path", "selectedElement");
          /* The following line is necessary to create parameter mapping from parameter "path" to parameter "element".
    Parameter "path" is of type string and contains the string representation of the tree element (its corresponding context element to be exact)
    that raised the onLoadChildren event. Parameter "element" is of type IWDNodeElement (or extends it) and is defined as parameter in the event handler
    that handles the onLoadChildren. The parameter mapping defined here translates the String "path" into the corresponding context element that then can
    be accessed within the event handler
          treeNode.mappingOfOnLoadChildren().addSourceMapping("path", "element");
    please cross check once.
    Thanks,
    Ramesh

  • I have installed Elements 13 on my Mac but can't see how to open it. When I click on the disk icon it takes me to an information page that gives no information about opening Elements 13.

    I have installed Elements 13 on my Mac but can't see how to open it. When I click on the disk icon on the desktop it takes me to an information page that gives no information about opening Elements 13. How do I open the software so that it can be used?

    Unfortunately, when I open applications, adobe photoshop elements 13 folder does not appear in the adobe folder. It appears as a disk on the desktop, only.

  • Tree element: How to make nodes editable

    Is it possible to make the nodes of a Tree element (a design time element visible in the view editor) editable? Or is there a tree component that can be used via "component use" with which to accomplish that?
    I don't want to use a table with embedded TreeByKeyTableColumn or similar!

    Hi Klaus,
    It's not possible for a tree ui element. As you pointed out you could achieve it using a TreeBy* master column of a table. The ByNesting variant uses a similar context structure as a tree. In addition, using a table will enable scrolling - which is not possible for the Tree ui element.
    Best regards,
    Thomas

  • How to display xml sting as tree , using af:tree

    Hi, i need to display a xml string stored in the data base table, as a xml tree in GUI.
    I understand ADF having a component called <af:tree> . It expects input data as "oracle.adf.view.faces.model.TreeModel" type.
    how to convert the string format of xml stored in the database , to the required type " "oracle.adf.view.faces.model.TreeModel"".
    Is there any examples to do this. Thanks .
    ganesh

    Thanks for the post.
    I looked at the link , before posting my question. That;s not i what i want. It says,
    The Oracle ADF Framework includes a Data Control for URL Services (a.k.a URL Service Data Control). The URL Service Data Control provides the ability to access files (CSV, XML) through a URL. You can also utilize this Data Control to access Servlets and JSPs that return simple, textual data such as XML data. In this How To, the URL Service Data Control will be used to access the JDeveloper RSS News feed and present that data within a Rich Client Interface. You will need JDeveloper 11g, available from OTN, to give this a try. Also provided is the Application that is utilized in this How-To.
    But what i want is entirely different than URL data control.
    A table is having xml file as string (The size can go upto 1 mb. )
    In the GUI i need to display it as tree.

  • How to give backgound color

    H All :
    I am using collection in my application for textbox
    HTMLDB_ITEM.TEXT(2,null,30,500,''style="background-color: RED"'')
    i am using this which give me the red in color background effect
    i am using
    HTMLDB_ITEM.DISPLAY_AND_SAVE(2,null,30,500)
    how to give a background or a fore ground color this item
    please suggest
    Thanks
    Sudhir

    It's actually quite easy.
    What you have to do is write a custom tree cell renderer which extends DefaultTreeCellRenderer. In that class, your getTreeCellRenderer() method should do something like the following:
    public Component getTreeCellRendererComponent(
        JTree tree, Object value, boolean selected,
        boolean expanded, boolean leaf, int row, boolean hasFocus )
            Component treeCellRenderer =
                  super.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
            if (selected) {
                setForeground(Color.WHITE);
                setBackground(BACKGROUND_SELECTION_COLOR);
            } else {
                treeCellRenderer.setForeground(Color.RED);
            return treeCellRenderer;
    Then you'll need to make sure that you call myTree.setCellRenderer(new CustomTreeCellRenderer());
    cheers,
    Greg

  • How can I make a palm tree sway?

    How can I make a palm tree sway?
    I have a palm tree that is a tiff file with alpha. I would like the tree trunk to bend a little and a few of the branches to sway as though it’s gently moving in the wind.
    What would be the easiest way to make that happen?
    Should I save the trunk and a few leaves as separate elements, and then animate them in motion.
    Or is there any way to turn my palm tree into a shape in motion, add edit points and key frames to animate it?
    Any advice would be appreciated.
    Thanks

    Down and dirty: highlight the tree's layer, move the anchor point to the base of the tree, add an Oscillate Behaviour to its Shear X axis. Adjust the Amplitude to 5, Speed to 7 or so, depending on how breezy the day is.

  • How to reference LEVEL in a TREE's SQL code

    Is it possible to somehow reference LEVEL in a tree's sql code so that you can use a decode statement to selectively create links on specific levels only i.e. NOT on the root level?
    e.g.
    select "CHILD_ID" id,
    "PARENT_ID" pid,
    "NAME" name,
    decode( LEVEL, 1, null,'f?p=' || :APP_ID || ':43:' || :APP_SESSION || '::::P43_CHILD_ID:' || CHILD_ID) link,
    null a1,
    null a2
    from TREETABLE
    order by name
    one solution I've implemented is to create a DB function e.g.
    create or replace function get_tree_level(v_child_id number) return number
    is
    v_level number(2);
    begin
    select level
    into v_level
    from TREETABLE
    where child_id=v_child_id
    start with child_id=1
    connect by prior child_id= parent_id;
    return v_level;
    end;
    and then use
    decode( get_tree_level(child_id) 1, null,'f?p=' || :APP_ID || ':43:' || :APP_SESSION || '::::P43_CHILD_ID:' || CHILD_ID) link,
    but this is too slow as I have quite a few records in the tree and takes too long to render
    regards
    Paul P

    OK I found a workaround after reading
    How to add URL to tree
    The view my tree is build on is constructed out of 3 unions and 4 "selects" ( the first select creates the ROOT NODE where "1" is also used as a hard coded foreign key (Parent_id), in the company table.)
    I just added a new column called tree_level to the query which is hard coded wrt its level on the hierarchy.
    e.g.
    CREATE OR REPLACE FORCE VIEW COMCONSTUTREE ("CHILD_ID", "PARENT_ID", "NAME","TREE_LEVEL") AS
    select 1 as child_id,to_number(null) as parent_id ,'Company' as name,*1 as tree_level* from dual
    UNION
    select COM_ID, 1, COM_NAME,2
    from company
    UNION
    select CON_ID,CON_COMPANY_ID, substr(con_name,instr(con_name,' ')+1) ||', '||substr(con_name,1,instr(con_name,' ')-1),3
    from contact
    UNION
    select STU_ID,STU_CONTACT_ID, STU_LAST_NAME||', '||STU_FIRST_NAME ,4
    from student;
    the tree code now becomes
    select "CHILD_ID" id,
    "PARENT_ID" pid,
    "NAME" name,
    decode( tree_level,1, null,'f?p=' || :APP_ID || ':43:' || :APP_SESSION || ':TREE:::P43_CHILD_ID:' ||CHILD_ID) link,
    null a1,
    null a2
    from COMCONSTUTREE"
    order by name

  • How to make use of adjacent data elements within the same buffer

    Hi,
             Does anyone know how to make use of adjacent data elements within the same buffer? To make my question clearly, I would like to give you an example. In my application, I set "sample to read" as 10 which means at each loop 10 data samples will be taken into a buffer. Now, what I would like to do is to do some calculations on adjacent data samples in same buffer. I tried to use "shift register" for this, but it seemed to me that it only can deal with the calculation between data from adjacent loops. In other words, it skips 9 data elements and take the 10th one for the calculation.
             Here I also attach my VI showing what I did.
        Thank you very much in advance,
                            Suksun
    Attachments:
    wheel_encoder_1.vi ‏98 KB

    Hi Suksun,
          I hope you'll forgive me for distilling your code - mainly to understand it better.  I tried to duplicate your logic exactly - which required reversing the "derivatives"-array before concatination with the current samples array.  As in your code, the last velocity is being paired with the first position.  If first velocity is really supposed to be paired with first position, just remove the "Reverse 1D Array" node.
    cheers
    Message Edited by Dynamik on 01-07-2006 03:17 AM
    Message Edited by Dynamik on 01-07-2006 03:19 AM
    When they give imbeciles handicap-parking, I won't have so far to walk!
    Attachments:
    encoder2.GIF ‏14 KB
    encoder2.vi ‏102 KB

  • How Do I Delete Disconnected Thumbnails in Elements 11

    How do I delete disconnected thumbnails in Elements 11?
    In previous versions, I could easily do this using Reconnect All Missing Files, but Reconnect no longer has an option to delete thumbnails, that I can see.

    MSExplorer wrote:.Why is Elements creating these thumbnails in the first place?
    Just compare your catalog to the physical catalog book you get for an art museum : you have all sorts of information about the paintings, their authors, descriptions, indexes... and you are shown a small 'thumbnail' for each painting. That is to enable quick identification of the paintings.
    In a catalog, each thumbnail is a very small reduction of the original. All those thumbnails are stored in the catalog folder itself, in a file named thumbs.5.cache.
    Now, about 'disconnected' files.
    There is some ambiguity here : 'disconnected files' are media files for which the path stored in the database is wrong. The reason is generally because the media file has been moved, renamed or deleted. There is still the old path in the database, but it is no longer valid.
    For 'offline' media, that means that the physical drive is disconnected, but the paths stored in the database (catalog) are still correct. You simply have to plug in your external media to give the organizer or editor access to the real media file.

  • How do I create a catalog in elements organizer?

    How do I create a catalog in elements organizer.  I keep getting the error message Catalog could not be opened, an internal programming error has occurred.

    Which operating system are you running on?
    Which version of Photoshop Elements are you using?
    Try Holding down the shift key while to start the organizer - that should bring up the Catalog Manager.
    Click on the New button (top right)
    Give it a name and click ok
    If it still crashes, you may need to re-install the software.
    Brian

Maybe you are looking for

  • I am running a vi that crashes after a period of time with no error message

    I have designed a vi that runs in a for loop. It takes data from the BNC-2110 (using the AI One Scan vi), and then calls a vi to adjust the measurements to a temperature. After this it displays an output on a plot (per input channel). After this prog

  • 24"iMac....adding second monitor...... mirror or extended desktop?

    I have a new 24 inch aluminum iMac. I also have a year old 23 inch Apple Cinema display that I was thinking of adding as a second display. If I did, would that mirror my existing display, or would it allow me to extend the desktop that I already have

  • Reading Queries from within planning functions

    Hi all, Does anyone of you have experience with the following thrilling task: We want to read specific queries from within a BPS function, handing over parameters like company code and profit center, retrieving the query results and writing them into

  • HT5093 What is the file format for 3d files?

    Recently I have downloaded Autofesk Inventor Fusion. I created some 3D models there. Now i want to insert it into iBooks Author. But i cannot find what file format I can use?

  • Customization of va01

    Hi all, I want to customize va01 to display default value in sold-to-party field in selection-screen by using exits. what is the procedure? please answer this question. TKS, Dharani.P