Hiding a subview called in a main view in WEBDYNPRO Application

Hello Experts,
I have a scenario in which i am calling a subview inside a main view. I have created a main view in which:-
1. List of reportee to the manager logged in is getting displayed in the form of a table.
2. When we select any row of this table ( means selection of any reportee row) and click on a button 'Get Details', then it  should display the detailed personal data of that reportee.
I have successfully called an already created personal data view inside this main view to display the detailed personal data of any selected reportee. But the issue is in the main view:-
1. This view has table containing the list of reportee getting displayed.
2. This view simultaneously also displays the default first row detailed data of the table of reportee.
Our requirement is:-
1. To display only table containing the list of reportee in the first load of main view.
2. Then when any row of this table is selected, then only the detailed data specific to that row should be displayed.
My approach till now is:-
1. I have removed the default first row lead selection for the table of reportee.
2. I have created a node VISIBILITY_DET_DATA and then an attribute IS_VISI BLE under that node of type WDUI_VISIBILITY.
3. In the layout section i have created a group GROUP_DETAIL_DATA and a view container UI element under that to call the detailed data view when any row of table containing the list of reportee is selected.
4. I have created a binding for the VISIBLE  property of the group GROUP_DETAIL_DATA to the attribute IS_VISI BLE created in the context of the component contoller.
5. I have then used the method WDDOINIT of the main view to write code to hide the detailed data view by setting the IS_VISIBLE flag to '02' i.e. NONE.
But this is causing the entire view to be coming as blank view.
I am not sure why this is happening, Can any of you suggest if i am missing anything important which is cauing this analomy.
Rupesh

Hi ,
This is a Webdynpro related question. you would have got many repsonses if you posted in webdynpro forum.
i) I would want to know how to hide Image object or the transparent container which holds the IMAGE object, dynamically through the code inside the MODIFYVIEW method of the view
You can do a post_exit enhancement in the  MODIFYVIEW method. Get the UI element object  from view and There are methods to set the visibility at runtime.
Is there an option to dynamically specify diffent image based on the login language with the IMage container?
i think yes, same procedure as first question's answer. Based on condition you can change the source path of the mime object .

Similar Messages

  • What is the main benefit of webdynpro application regarding portal?

    Hi All,
            can you give me suggestion that what is the main benefit to use webdynpro application in portal whether we can run it without portal.
    regards
    gaurav

    hi
    gaurav jain main benefits of webdynpro application regarding portal is as follows
    Page Reloading     Reloads only particular component
    Browser Independent Capability      
    i                     s   very  high when compare jspdynpage application in portal

  • HOw to start the project for first view in webdynpro application

    Hi,I am having  a problem regarding scenario for customer feedback for portal end user i.e..wen user login to a application for feedback there it check the Id of the user wether it had given the feedback or not by comparing the Id with the database Idu2019s from SQLserver.If the feedback is thr of that Id then a view shud say u hav already given feedback otherwise feedback form shud open ,the user will giv feedback and closes by thanking with other view.My problem is how to openthe  view were it will compare the userlogin Id with the database Id to move further.How shud I handle this scenario for first view.I am creating this application in webdynpro.In this project how shud I manage the viewsu2026

    Hanif,
    you can create a webdynpro application and create an iview and set the height and width to 0 .inside that webdynpro application open a popup that provides the feedback form .and you invoke this popup window in the WDDOINIT() or WDDOMODIFYVIEW() of the webdynpro main view.
    apart from this you need to get the logged user id in main view and get the output from database whether you want to open the feedback form
    check this forum on developing webdynpro application
    Web Dynpro Java
    Thanks
    Bala Duvvuri

  • Calling BRF in Adobe interactive form/Webdynpro application

    Dear Friends,
    I have a requirement that  I need to call BRF in Adobe interactive form.
    I would be great if you coud help me how to call  BRF Event in Adobe interactive form?
    Is it happening through webdynpro application?
    Please share your ideas.
    Thanks.
    Regrds,
    Preethi.

    Hi,
    Can anybody provide document link for BRF/Webdynpro and adobe combination ?
    Thanks.
    Regards,
    Preethi

  • Navigating Between 2 views in webdynpro application

    Hi All,
    I am creating a webdynpro application with 2 views. when i click the next the first view an action would be triggering the next view. Component controller context is being used.
    Component Controller - 2 value attributes are there. These are mapped to view 1 and view2.
    view1 - has these 2 value attributes
    view 2 - has these 2 value attributes and 1 node with some attributes.
    But in view 2 , i am using only that node. When i deploy the application, when i click the button on the first view, another window popups, saying "500 internal error". But the view1 and view2, code is completely free of error. if so, why it is not displaying data of view2?
    Regards,
    Divya

    Divya,
    Go through <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d5c09c90-0201-0010-17a8-c473134632df">link</a> link. This may be very useful as it gives step by step process for navigation from one view to another on firing of an event.
    Let me know if you have any concerns.
    Regards,
    Ankit

  • Call a methode without opening the main view

    Hi,
    I have a function that calls a web dynpro application. The handledefault methode of the window from this web dynproapplication searches for a url of a picture and opens it with my browser.
    This works well.
    But there are two windows open: my picture and the empty web dynpro main view.
    How can I stop this? I just want the window with my picture.
    Thanks,
    Martina.

    Hi Manigandaan,
    I deleted  the empty main view from the webdynpro window.
    But the result is always the same:
    1 empty window and
    1 window with my url
    this is the code in the handledefault (after the data declaration):
    DATA lo_window_manager TYPE REF TO   if_wd_window_manager.
       DATA lo_api_component  TYPE REF TO   if_wd_component.
       DATA lo_window         TYPE REF TO   if_wd_window.
       DATA ld_url            TYPE          string.
       lo_api_component  = wd_comp_controller->wd_get_api( ).
       lo_window_manager = lo_api_component->get_window_manager( ).
    ld_url = lv_doclink.
      data lo_api_controller type ref to if_wd_view_controller.
      data lo_window_ctlr TYPE REF TO if_wd_window_controller.
      lo_api_controller = wd_this->wd_get_api( ).
      lo_window_ctlr = lo_api_controller->GET_EMBEDDING_WINDOW_CTLR( ).
    * get the control for window to be closed
      lo_window = lo_window_ctlr->get_window( ).
    * this will close the window
      lo_window->close( delete_window = abap_true ).
    if the ld_url is i.e. 'http://www.google.com' I get one browser window with google and another
    browser window which is empty. The URL of this empty browser window is the url with which
    i called the web dynpro application. But I don't need this window, how can I avoid this?
    Thank you very much!!!
    Martina

  • Main view window locked on 'one pic at a time'???

    My main view window ... somehow I locked it into displaying only one-pic-at-a-time. Can't seem to get back to the library mode, or whatever it might be called, when I can see all the pics in the folder at the same time. I can't for the life of me figure out how to change the view mode. And the scaling control, bottom right, has disappeared (or I've somehow disappeared it).
    Any help would be most appreciated...
    Ben

    Thank you Ian,
    Aie yie yie. I cycled through the V yesterday ... and somehow never got to that thumbnail view (go figure). But it worked first try this morning. Maybe my Mac was tired yesterday, like me.
    Much appreciated,
    Ben

  • Action reference in the MAIN view for other Views

    Hi Experts,
    I have created a view(MAIN) that contains SUBMIT button and also included four other views(Using ViewContainerUIElement) in the MAIN view itslef. So am calling the respective view based on some certain condition from MAIN view.
    Now my problem is, am using  check_mandatory_attr_on_view() method which is being called on SUBMIT action from MAIN view of WDDOBEFOREACTION. But it is not checking Required Fields from other views. It checks the Required Fields only in the MAIN view.
    I know that I want to call the reference of other views in MAIN view, but how can I do it?
    Please help me, as how I can check the Required fields on action of SUBMIT button in MAIN view for other views.
    BR,
    RAM.

    Hi,
    Though am in MAIN view, If i clicks the submit button it checks the Required fields on both MAIN and Sub views, where still I have not called the Sub view.
    If you didn't call the sub view, the WDDOINIT method of your sub view wouldn't have been triggered and so the sub view reference is not set in the component controller, isn't it.?
    OR you are calling sub view separately in the initial state and get the reference and then in your MAIN view calling the sub view based on condition in the View Container UI..?
    If so, create an attribute in your Main view (say sub_view_name of type string) and then use the below code to get the current sub view name and then pass the corresponding sub view reference:
    DATA:lr_view_controller    type ref to        IF_WD_VIEW_CONTROLLER,
           lr_main_view_usage  type ref to        IF_WD_RR_VIEW_USAGE.
           lr_vc_assignment      type ref to        IF_WD_RR_VIEW_CNT_ASSIGNMENT.
           lr_view_usage           type ref to        IF_WD_RR_VIEW_USAGE.
           lr_t_views                 type                WDRR_VCA_OBJECTS.
           lr_s_view                  like line of        lr_t_views.
           lr_view                     type ref to        if_wd_rr_view.    
          lr_view_controller = wd_this->wd_get_api( ).
        lr_main_view_usage = lr_view_controller->GET_VIEW_USAGE( ).
       lr_t_views  = lr_main_view_usage->GET_VIEW_CNT_ASSIGNMENTS( ). "This will return all the View Container assignments.
    * Now loop over all the View containers and get the reference of embedding view.
       loop at lr_t_views  into lr_s_view .
          lr_vc_assignment = lr_s_view-VIEW_CNT_ASSIGNMENT.
          lr_view_usage  = lr_vc_assignment->GET_DEFAULT_VIEW_USAGE( ). " This will return view usage reference
          lr_view = lr_view_usage->get_view( ). " This will have the meta info of view
          wd_this->sub_view_name = lr_view->get_name( ).   
       endloop.
    Now in onAction submit,
    CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW(
                                  EXPORTING
                                   view_controller =  lr_view_controller " MAin view reference
    case wd_this->sub_view_name.
    when 'SUB_VIEW1'.
    CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW(
                                  EXPORTING
                                   view_controller = wd_comp_controller->gr_emb_view1.
    when 'SUB_VIEW2'.
    CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW(
                                  EXPORTING
                                   view_controller = wd_comp_controller->gr_emb_view2.
    Or, alternatively; create all the nodes(of sub views) in component controller, then map all those to MAIN view, then read the required node attributes and validate manually.
    hope this helps u,
    Regards,
    Kiran

  • Problem in main view

    Hi,
    I have an application which has a main view containing the contextual panel. Then I have 2 other views. When I click on the button on the contextual panel , one view gets opened(FIRST_VIEW). On the FIRST_VIEW  I have a button , on  pressing of which the SECOND_VIEW gets opened. This is working fine. But I am facing a problem , when I start the application , along with the contextual panel , the SECOND_VIEW also gets loaded. Although I want that space to be blank.
    For containing the FIRST_VIEW & SECOND_VIEW , I have created the ViewcontainerUIelement.
    Please let me know how to remove the problem.

    Hi
    when u execute the program your second viewcontainer UI element is also loaded right?
    You want to load the second viewcontainer on click of the first viewcontainer ui elements button say button1 right?.
    go to that button and
    call the attribute which i asked you to create in my trial post
    and comment the importing parameter line in the attribute and change the value = '02'.
    Regards
    Arun.P

  • How to call method of one View into another view?

    Hi Gurus,
    I am having 2 views defined in a main window say view1 & view2 i have method get_data defined in view1 & now want to call it in view2.
    Is this possible?
    Can this is also possible if the 2 views belong to a different window?
    Regards
    Rahul

    Hi.
    what type of sample code do you need? You do already have the method.
    What ever you do in it do it in the component controller.
    when calling it from the view instead of wd_this->get_data call wd_comp_controller->get_data( ).
    What data do you fetch in this method?
    If you just read context data you have to put these nodes in the component controller context also to share it between multiple views.
    If you need more info just paste the code of the get data method and explain what you are doing in it.
    Cheers,
    Sascha

  • Simply way to make sub vi and call it form main vi

    I'm a beginner and have major problems to make a sub vi and call it from main vi. I'm going to do a save dialog where is extra info for my saving and want to call dialog from main vi and after that save info to a file or database. I want that save dialog appears after i press button. I attach sub vi where is no functionality yet.
    Attachments:
    save_dialogsub.vi ‏21 KB

    The first step is to connect the controls and indicators that you want to pass information to and from your main vi.
    You right-click on the icon at the top right corner of the Front Panel and select "Show Connector". Typically put inputs at the left and outputs at the right side of the connector pane. Save it.
    Open the main vi. Go to the block diagram. Click on "Select a vi" inside the Functions Palette. And choose the sub vi you prepared. Then wire it up inside your main vi.
    -JLV-

  • I'm using iPhoto 11, and instead of seeing my images in the main view, I see only outlines. (Had same problem in iPhoto 10 before upgrade to Lion Help!

    I'm using iPhoto 11, and instead of seeing my images in the main view, I see only outlines. (Had same problem in iPhoto 10 before upgrade to Lion Help!
    I'm on a Macbook Pro and all of my software is up-to-date.
    The photos and events, etc. appear to be present in my photo library, but I cannot see the actual images--only an outlined placeholder.

    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to rebuild the thumbnails. This can take 3 or 4 goes to work.

  • Call Event from One View to another View

    Hi All,
    I have 2 views in my Webdynpro application .View 1 has a input field and View2 has a button. When the user enters a value in the input field and clicks on Enter, i want to call the button action in View2.
    I created Navigation link from view1 to view2 using outbound and inbound plugs. I created an action "OnEnter" for the input field. But how do i invoke Button action(View2) from View1?
    Regards,
    Maggie.H

    Hi Maggie,
    You can do in another way, OnClick of view 2's button action you will write some code. Write the same code by creating a method in component controller, and call from wherever you want.
    I Hope it helps and solves your issue.
    Regards
    Nizamudeen SM

  • Open iview url in WDA main view (below some long text)

    Hi Experts,
    My WDA first page is divided into 2 parts top & bottom.
    The top will have some text and bottom will have a display areas to display the portal iview. (Display means open iview directly on opening the first page of the application without any action)
    Eg: when you open the WDA in IE it will display some text in top & google webiste opened below that long text.
    I tried putting the google url in iframe source in main view but it didnt displayed it. only a blank area came displayed which was of iframe size.
    Hope i explained my requirement.
    Regards,
    Nik

    Hi Nikhil,
    Your requirement is clear, but displaying google page where did you write the code.
    Write your code in the View or component controller->WDINIT method, then first this method will display without any action.
    In the Layout you can divide into two parts one is for text another one is for the google site display.
    Let me know if you are not able to fix the issue still...send me the code I will let you know where is an issue.
    Regards,
    Naresh.

  • In Blackberry Z 10 "HUB MANAGEMENTS", automatically changes the items that are included in my main View of the Hub Managements.

    In Blackberry Z 10 “HUB MANAGEMENTS”, automatically changes the items that are included in my main View of the Hub Managements.
    I really don’t know how it happens, “Off or On” thing, without knowing me.  When any Email hits to my device and not shows in my “HUB MANAGEMENTS”, at that point of time I come to know, it’s Off again.
    Then whole process again, I go in “HUB MANAGEMENTS” and switch it on again and again.
    I need Blackberry Z10 OS developers focus on this issue…  

    I can confirm this behaviour and it defeats the purpose of having a hub.
    Could a BBTA confirm that this has been filed or even solved internally?
    Olivier - interfaSys ltd
    Developing for BlackBerry 10 devices using the Sencha Touch framework.

Maybe you are looking for