Expanding Tray

Hi all,
My WD application dynamically creates tray ui elements and fill them with children at runtime (this is all done in the wdDoModifyView() method). When the view comes up the tray should appear collapsed not expanded. But if I set the expanded property (which is bind to a context element) of the tray to false a strange server error occured on deploying. Here the stacktrace:
<i>java.lang.NullPointerException
    at com.sap.tc.webdynpro.progmodel.context.Node.getDataNode(Node.java:1687)
    at com.sap.tc.webdynpro.progmodel.context.Node.resetChanged(Node.java:1052)
    at com.sap.tc.webdynpro.progmodel.context.Node.resetChanged(Node.java:1063)
    at com.sap.tc.webdynpro.progmodel.context.Node.resetChanged(Node.java:1063)
    at com.sap.tc.webdynpro.progmodel.context.Context.resetChanged(Context.java:168)</i>
If the property is set true everthing works fine.
Does anyone know what went wrong here?
Thanks in advance for all answers,
Torben

Hi,
Are there any value nodes which you have used here ?
Set the tray to false directly, instead of using a variable and see if the same error occurs.
This error might be because of some node related error.
Can you post the whole code here.
You can also try debugging the application.
Regards
Bharathwaj

Similar Messages

  • Programmatically Collapse and Expand Trays in WDA View

    I have 2 trays in my ABAP Web Dynpro View.  First tray is a filter selection tray and the second tray is a content tray where I will display the results based on the filter criteria user selected in the first tray.  When the user clicks OK in the filter selection tray, I want to automatically collapse the tray to make more rooms for the content tray.  Does anyone know how to collapse and expand the tray programatically?
    Your help will be really appreciated.
    Thanks!
    Pat Hong

    I made it work by adding the following code in WDDOMODIFYVIEW method:
      DATA lr_tray TYPE REF TO cl_wd_tray.
      lr_tray ?= view->get_element( 'TRAY_NAME' ).
          CALL METHOD lr_tray->set_expanded
            EXPORTING
              value = abap_false.
    Pat

  • How to change default text in Tray UI ?

    Hi:
    The default text at the icon to collapse and expand tray are "Collapse Tray" and "Expand Tray" I want to change it, How can I do it?
    I read the API    and I can't find it. If you see the API's page it will be the icon's text next to "Item 1".
    Thanks a lot for your time on this thread.
    Rocío.

    Hi Armin, thanks for your answer.
    So, it's not possible to custom HTML renderer....am I right?
    Thanks again.
    Rocío.

  • Display of Tray Menu options.

    Hi Experts,
    In Portals we have the expand tray option where we get options like "Refresh, Personalise,Details,Remove from page".
    I would like to know as how the dropdown of tray option works ????
    If i want to see the code for display of Iview tray options, where shall i find it
    Is it in a .par file if yes then which par file ??
    Points would be awarded for helpful answers.
    Regards,
    Sanjyoti.
    Edited by: sanjyoti lengare on Apr 18, 2008 5:56 PM

    Hi,
    Check the class com.sapportals.portal.pb.layout.taglib.ContainerWithLayoutTag.
    The method responsible for building the tray with all options is:
    private Tray buildIViewTray(IiViewStorage iViewStorage)
    The class is available in com.sap.portal.pagebuilder\lib\com.sap.portal.pagebuilder_api.jar
    Regards,
    Praveen Gudapati

  • Iviews not visible in SAP PLM 7.0 portal.

    Good morning,
    When i navigate to 'Product engineering' tab in the portal, there are a set of iviews available in the content area.
    These are :-
    1. Work environment.
    2. Search
    3. My contexts.
    4. My objects..
    These iview headers are visible with the title but no content of these iviews are visible/accessible.
    On clicking on the expand tray/collapse tray icon there is no action. (All i could make out is that there is a thin line added when i click on the expand tray icon).
    There is no way i can access these iviews.
    Is there something i am missing out ?
    Request some pointers/inputs here.
    regards,
    abhishek
    P.S : I am not sure if this issue with iviews has anything to do with the version of java installed (mine is  1.6.0_16)

    HI  Abhishek
    i understand u are using EP for hosting the SAP PLM 7.0 module. have u tried using the netweaver business client ?
    Can u send in detail the procedure u have adopted for Installation of PLM 7.0 & hosting in EP?
    Also what function have u activated apart from teh WEB-UI?
    Or is ur issue resolved ?
    pls share ur inputs..
    thanks
    john

  • Remove collapse and expand icons from tray header

    Hi all
    Is it possible in any way to remove the collapse and expand icons from the tray header, and have the menu icon aligned with the end of the underline?
    Uploading a transparent gif does'n help, because the collaps and expand icon has the same width and heigh as the menu icon. Thus if I upload a transparent gif, and the width of the icons is set to 14px, the menu icon is not aligned with the line which underlines the whole header. There is 14px of blank / transparent.
    Removing the menu icon is easy, all I have to do is deselect all the 'show xxx' options in the iView editor.
    It should be possible to remove the collaps and expand icons, and still be able make it look good.
    Has anyone else had this problem??

    Amit,
    Thank you for replying twice, much appreciated.
    I am sorry for my late response. Thank you for the tip, but as far as I can see this is related to SP 15. We are currently on SP13. I should have of course have mentioned which SP in my problemdescription, and had we been on SP 15 I would have tried this solution.
    Anyway, points rewarded for being helpful.
    Markus,
    I did not find a solution for our problem. However during this summer our customers have decided that it was not very important to remove this icon, so I have left it. I hope the suggestions from Amit and Prem can give you some tips if you have a similar problem.
    Prem,
    as far as I understand you are suggesting to override the jsp for the iViews-trays, like you suggested for the detailed navigation? Anyway, it sounds like a good idea, and worth a try. But, as I mentioned above, we have deceided not to remove the icon. However, it sounds interesting, and I would like to investigate these possibilities when I have the time. points rewarded for being helpful
    Kind regards,
    Reidun
    Message was edited by: Reidun Mongstad

  • Trays within web template expanded automatically on server roundtrip

    Hi Folks!
    We have a problem with our web templates. Our templates were built with the Web Application Designer (WAD) and they contain trays which should be closed (collapsed) by default.
    Our Problem:
    Since the system was patched to SAPKW70018 the trays within the web application are rendered in expanded state automatically whenever an action is called that requires a server roundtrip.
    For example: When one tray is being expanded (and it's update type is not set to passive) all other trays are expanded as well. Closing a tray leaves the other ones open. Closing another tray reopens the tray that has been closed before. Performing some action within the analysis item opens the trays as well, since most of them require roundtrips.
    This behaviour only occurs under the Internet Explorer. Firefox and WebKit Browsers seem to perform well.
    In hope for help and thanks in advance !
    - Tim Brückner

    Hello,
    You can add a HTML button and use JavaScript on the click event.
    [ABWR-Tool Users Guide syskoplan Automated BW Reporting (ABWR) Tool |http://www.competence-site.de/discussion.nsf/D772EC1F31613AE6C1256D0A00304246/$File/ABWR-Tool%20Users%20Guide_V04.doc]
    [Six Steps to Creating Great-Looking PDF Reports in BW|http://www.bw-biexpertonline.com/archive/Volume_02_(2004)/Issue_05_(May)/V2I5A1.cfm?session=]
    Thanks
    Chandran

  • How to Expand/Collapse Select Option Tray

    Hi,
    I have a View in which I have dynamically created a select-option Tray and then added select-options within the Tray using:
    DATA lr_cost_ctr            TYPE REF TO data.
    DATA lr_interfacecontroller TYPE REF TO iwci_wdr_select_options.
    DATA lr_select_options      TYPE REF TO if_wd_select_options.
    * Initialise the selection screen.
      lr_interfacecontroller = wd_this->wd_cpifc_select_options_search( ).
      lr_select_options =
               lr_interfacecontroller->init_selection_screen( ).
    * Add a tray.
      lr_select_options->add_block(
        i_id           = 'TRY_ACCT_***'
        i_block_type   = if_wd_select_options=>mc_block_type_tray
        i_title        = 'Account Assignment' ).
    * Add a Select Option.
      lr_cost_ctr = lr_select_options->create_range_table( 'KOSTL' ).
      lr_select_options->add_selection_field(
        i_id              = 'COST_CTR'
        i_within_block    = 'TRY_ACCT_***'
        it_result         = lr_cost_ctr ).
    This works fine, but how do I dynamically expand and collapse the select-option Tray ?  There are plenty of examples for expanding/collapsing normal Trays by binding the "expanded" attribute at design time or dynamically.  But with a Tray created as a select-option block I do not have a reference to the Tray.
    I have searched high and low but cannot find how to do this.
    I don't want to create the Tray at design time because there will be select-options above and within the Tray.
    Any help will be appreciated.
    Thanks & regards,
    Grogan

    Hi,
    My Approch is:
    ---Initially set the webBean property in processReq
    Hgrid.setAutoQuery(false);
    ---On Button click navigate to the same page n set the webBean properties..
    put var in session.
    pageContext.forwardImmediatelyToCurrentPage(null, true, null);
    ---in process req get teh value of var from session.
    if(pageContext.getSessionValue(var)!= null)
    Hgrid.setAutoQuery(true);
    Hope it will helps..:)
    Note:
    ---We cant modify the webBean properties in processformReq and processformdata.
    Regards
    Meher Irk

  • Show 'Expand'/'Collapse' Icon in Tray

    Hi All,
              I have done the following configuration in the portal and the result is confusing, can you please help me understand why?
    1. I have created 2 pages, first is a standard portal page and second a webdynpro page in a test folder
    2. copied a standard SAP iView to the test folder and added it to both the pages as a delta link
    3. opened the iview property from the std. page and set the "Show u2018Expandu2019/u2019Collapseu2019 Icon in Tray" property to NO
    4. opened the iview property from the webdynpro page and set the "Show u2018Expandu2019/u2019Collapseu2019 Icon in Tray" property to NO
    When i preview the standard page the iView appears without the "Expand/Collapse" icon, but when i preview the webdynpro page the iview appears with the "Expand/Collapse" icon.
    Thanks,
    Anand

    Hi Raghu,
                   Our portal version is 7.01 SPS15.
    Hi All,
             Any suggestions?
    Edited by: Kirupanand Venkatapathi on Oct 4, 2010 11:32 AM

  • Remove Collapse/expand icons from the tray for all user except administrato

    Hi,
    My requirement is to remove the expand/collapse icons from the overview page for all the user but administrator can have those available.
    I have set the show tray property to NO , this has made the complete tray invisible for all including the administartor as well.
    I want the only icons to be inviisble and not for administrator.
    Please provide your valuable inputs.
    Thanks
    Pooja

    Hi
    The best practice in Portal is to create 2 different design, one for users, one for administrators. I mean design : Desktop, Framework Page, Theme ...and so on.
    This allows you to manage two ways of displaying or not informations, for sure user view should be different of administrator view.
    And you also in your case you should have tow different "overview" iViews, one for users one for administrators.
    The "show tray" property should be yes (otherwise you won't see anyting ), but the property "Show Expand/Collapse icon in tray" to NO.
    I hope it will help
    Best regards
    johann

  • Tray Expand button not working

    Dear Expert,
    After the SPS upgrade of SP 21 for java stack, I am facing a issue of Expand button of the tray is not working for the iviews which contain dynamic information such as BI reports etc., Please help me out in this issue
    Regards
    Noel

    Hi Noel,
    The expand button / the tray UI element can be a Webdyn Pro Java Component.
    This does not have to be a iview tray.
    Are you using the BI iView in a separate Portal or are you using Portal Federation ?
    If you have 2 portals, what is the second portal version ?
    Regards,
    Kai

  • Link in tray header to expand/collapse it.

    Hi All,
    How can i place a link in the tray header .
    <htmlb:tray id = "tray_addr"
                 title    = "If the item is to be delivered to a different address, you enter the new address here."
                 tooltip  = "Enter the shipping address here"
                 width = "945"/>
    In the title i need to make the word here a link , which when clicked , expands the tray.
    Thanks,
    Anubhav.

    Hi Raja,
    I did it as follows:
    <htmlb:tray id          = "tray_addr"
                              tooltip     = "Enter the shipping address here"
                              width       = "935"
                              isCollapsed = "<%= iscollapsed %>"
                              design      = "BORDERLESS"
                              title       = "If the item is to be delivered to a different address , you enter the new address <a h r e f='ja v a script: c h eckL i n k();' id = ' mylink ' > here< / a>" >
    fu n c tion che c k Li n k( )
               d o c u ment. g e t Ele m e n t B yI d ( 'b l a nk _a dd r ' ).c li c k ( );
    <%-- -Blank image to triger server event- --%>
    <htmlb:image id      = "blank_addr"
                                       s r c     = "1X1.GIF"
                                       o n C l i c k  = "link_click" />
                        </htmlb:gridLayoutCell>
    In Oninputprocessing:
    IF event IS NOT INITIAL AND event->event_name = htmlb_events=>image.
    CASE event->event_server_name.
    when 'link_click'.
    my ABAP code.
    ENDCASE.
    ENDIF.
    Set a flag in oninput processing , check it in layout and use the attribute isCollapsed of the tray .
    Just thought the idea might help someone.
    Thanks for the help.
    Regards,
    Anubhav.

  • Dynamically expand a Web Dynpro TRAY

    Hi Guys,
    Do you know how to expand a Tray Dynamically.
    I like to start with a unexpanded TRAY and after the SEARCH, I like to expand the TRAY dynamically.
    Thanks,
    Ridouan.

    Hi Ridouan,
    Could you please tell me how you resolved your query?
    Thanks,
    Ajay

  • How can I choose my printer's rear tray on my MacBook?

    Hello everyone,
    I have something strange going on on my MacBook when it comes to printing...
    I would love to be able to print address labels, photos etc. on actual labels and photo paper using the rear tray of my printer (Canon MG5150). The weird thing is that I cannot for the life of me find the option to choose the rear tray. I have expanded the print dialogue to show all possible options, but there's absolutely no way to choose my printer's paper source. So I'm stuck with the standard cassette, which I do not dare use for anything thicker than normal printing/copying paper. Everything else printer-wise works fine from the MacBook, I just can't select the paper source (regardless which programme I'm working in on the MacBook).
    Something else I've tried is downloading the latest printer driver from Canon. No joy there though, doesn't make a blind bit of difference. I've also tried opening programmes using Rosetta just in case, but that doesn't seem to change anything either.
    My iMac never presented me with this problem; it always let me print from whichever paper source I wanted (using the same Canon printer). Some background info: my MacBook has Mac OS 10.6.8 on it, my iMac Mac OS 10.4. Could it have something to do with the operating system? They are both Intel, aren't they, so why would the options be there on one Mac, but not the other?
    So, where could my menu options have disappeared to?? Have Apple changed their printing dialogues for the worse or something? It seems such a shame I can't use my MacBook to its full potential and have to resort to roundabout ways of being able to do what I want. I'm hoping it's something really obvious, and that someone can help me.
    Thanks for any advice!
    Kind regards,
    Esther

    Hello-
    You can restore network defaults on the printer.
    Press the Setup icon. Then go to Network Menu, scroll down to "restore network defaults".
    This should clear any "Admin" settings that were set.
    Then you can turn radio on and run the wireless wizard to get back on network.
    I hope this helps.
    Also, remember a click on the Kudos star to the left is a quick "Thanks" for a helpful post.
    Please select the "Accept as Solution" button on the post that best answers your question.
    I appreciate your input !
    Thank You,
    Donald

  • How to create a Tray dynamically

    Hi All
    I have tried to develop a method where I can create a tray dynamically.  I have embedded this code in the method WDDOINIT of my View called 'MAIN_VIEW'.   My longer term plan is to create x number of trays where x is dictated by the number of entires in an Internal Table.
    The code I have written compiles, but nothing appears where I thought it would.  Can anyone spot what I have so fundementally missed?
    Assistance is sincerely appreciated.
    Regards
    Tony
    create object wd_this->all_in_one_util.
    data: node_input  type REF TO if_wd_context_node,
          elem_input  TYPE REF TO if_wd_context_element,
          stru_input type if_main_view=>element_input.
    data: lr_view                type ref to cl_wdr_view,
          lr_tray   type REF TO CL_WD_TRAY,
          tray_id  type string,
          lr_caption             type ref to cl_wd_caption,
          caption_id             type string,
          lr_grid_data           type ref to cl_wd_grid_data,
          lr_grid_layout         type ref to cl_wd_grid_layout.
    *Navigate from <CONTEXT> to <INPUT> via lead selection
    node_input = wd_context->get_child_node( name = if_main_view=>wdctx_input ).
    lr_tray = cl_wd_tray=>new_tray(
        EXPANDED                 = ABAP_TRUE
        ID                       = tray_id
        VIEW                     = lr_view  "'MAIN_VIEW'
        WIDTH                    = '100%'
            set the caption of the tray
              concatenate lr_tray->id '_HEADER' into caption_id.
              lr_caption = cl_wd_caption=>new_caption(
                             id   = caption_id
                             text = 'text goes here'
                             view = lr_view ).
              lr_tray->set_header( lr_caption ).
            create the grid layout data for tray
              lr_grid_data = cl_wd_grid_data=>new_grid_data( lr_tray ).
            assign the layout data to the tray
              lr_tray->set_layout_data( lr_grid_data ).
            create a new grid layout for the content of the tray
              lr_grid_layout = cl_wd_grid_layout=>new_grid_layout( lr_tray ).
            assign the grid layout to the tray
              lr_tray->set_layout( lr_grid_layout ).

    Hi Tony,
    If we have to do any dynamic programming in webdynpro( creating UIelements dynamically ), WDDOMODIFYVIEW is the method where we need to code the logic for creating the tray.
    But you have done the coding of creating tray in WDDOINIT thats why it is not working fine. Just the have the same code in WDDODMODIFYVIEW and you need to have below code to add this tray to view's ROOTUICONTAINER.
    data:  lr_container TYPE REF TO cl_wd_uielement_container.
    lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
      " View is import parameter of wddomodifyview method.
    lr_container->add_child( '' pass the tray that is created ' ).
    This is the way to create dynamic UIelements in webdynpro using wddodmodifyview
    For more information on dynamic programming have at following information
    <a href="http://help.sap.com/saphelp_crm50/helpdata/en/44/2d9a41ed79a009e10000000a155106/frameset.htm">http://help.sap.com/saphelp_crm50/helpdata/en/44/2d9a41ed79a009e10000000a155106/frameset.htm</a>
    Thanks,
    Prashanth Kumar B

Maybe you are looking for

  • Why are there dozens of "web process" pop ups after wipe and load of 10.6.8 on Mac Mini by Genius Bar?

    I just had my Mac Mini (early 2009) in at the Genius Bar as it was running very slow.  They did a multi hour scan of the harddrive, etc.  Did not find any hardware problems.  They did a wipe and loaded 10.6.8 on the Mini.  The Apple folks were great

  • Adobe form with BPM integration

    hi all, I am new to BPM, I am doing some demo so for that i created Adobe Offline form in Adobe Livecycle designer(not in NWDS), I have sample purchase order XSD file by using it i did the data connection in Adobe, and then i created the process in B

  • How to create workflow for this scenerio

    HI Gurus, I am new to workflow. I have to create a workflow. But I have a problem what the object type I have to choose. It may be simple but i dont know do it. Scenerio of the workflow given is... This workflow gets pernr and benefit plan informatio

  • Word and excel documents in iphone

    I cannot use wireless connection to download documents to my iphone, as I am not allowed on the organization's network via iphone. Is there an application that I can use to make the iphone visable on the pc screen so I can drag and drop my documents?

  • Code Example connection to MS Exchange

    Hi Has anyone got a link to a code example showing how to log into an account on MS Exchange server I am trying to log in and read emails from my student account that is on a ms exchange server but am having little luck. Could someone give me a coupl