MULTIPANE

hi sir i am learning webdynpro by using NET files so i got an issue with multipane then i searched in forums but i didn't found i want to know all the properties of multipane i did one scenario on multipane but output is improper.
*****COMPONENT CONTROLLER*********
method GET_SALES .
  DATA:LO_ND_NODE TYPE REF TO IF_WD_CONTEXT_NODE,
        LO_ND_REC_NODE TYPE REF TO IF_WD_CONTEXT_NODE,
        LO_EL_ELEMENT TYPE REF TO IF_WD_CONTEXT_ELEMENT,
        IT_SALES TYPE ZNET312_T_VBAK,
        WA_SALES LIKE LINE OF IT_SALES,
        WA LIKE LINE OF IT_SALES,
        LS_SALES TYPE WD_THIS->ELEMENT_SALES,
        LS_SALES_TXT TYPE WD_THIS->ELEMENT_SALES_TXT,
        LT_SALES TYPE WD_THIS->ELEMENTS_SALES,
        LV_KUNNR TYPE WD_THIS->ELEMENT_INPUT-KUNNR,
        V1 TYPE STRING.
  LO_ND_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_SALES_TXT ).
  CALL METHOD ZCL_NET312_SALESORDERS=>GET_DATA
    EXPORTING
      I_KUNNR = LV_KUNNR
    IMPORTING
      ITAB    = IT_SALES.
  LOOP AT IT_SALES INTO WA_SALES.
    WA = WA_SALES.
  AT NEW VBELN.
       CONCATENATE WA-VBELN WA-AUDAT INTO V1 SEPARATED BY space.
      LS_SALES_TXT-TEXT = V1.
      CLEAR V1.
    LO_EL_ELEMENT =  LO_ND_NODE->BIND_STRUCTURE( NEW_ITEM = LS_SALES_TXT  SET_INITIAL_ELEMENTS = ABAP_FALSE ).
    LO_ND_REC_NODE = LO_EL_ELEMENT->GET_CHILD_NODE( NAME = 'SALES_REC_TXT' ).
  ENDAT.
    CONCATENATE WA-POSNR  WA-MEINS  WA-CURR INTO V1 SEPARATED BY space.
       LS_SALES_TXT-TEXT = V1.
       LS_SALES_TXT-ENABLE = ABAP_TRUE.
       CLEAR V1.
    LO_ND_REC_NODE->BIND_STRUCTURE( NEW_ITEM = LS_SALES_TXT  SET_INITIAL_ELEMENTS = ABAP_FALSE ).
    ENDLOOP.
endmethod.
****************MAIN VIEW NORMAL METHOD FOR MULTIPANE PROPERTIES*******
method MULTIPANE .
   DATA:LO_ND_NODE TYPE REF TO IF_WD_CONTEXT_NODE,
         LO_EL_NODE TYPE REF TO IF_WD_CONTEXT_ELEMENT,
         LS_MULTIPANE TYPE WD_THIS->ELEMENT_MULTIPANE_PROPERTIES.
   LO_ND_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_MULTIPANE_PROPERTIES ).
    LS_MULTIPANE-COL_COUNT = '5'.
    LS_MULTIPANE-ENABLED = ABAP_TRUE.
    LS_MULTIPANE-FIRST_ACTUAL_PANE = '1'.
    LS_MULTIPANE-FIRST_VISIBLE_PANE = '1'.
    LS_MULTIPANE-FOOTER_VISIBLE = ABAP_TRUE.
    LS_MULTIPANE-HEIGHT = '100%'.
    LS_MULTIPANE-PANE_COUNT = '27'.
    LS_MULTIPANE-ROW_COUNT = '-1'.
    LS_MULTIPANE-WIDTH = '100%'.
    LO_ND_NODE->BIND_STRUCTURE(
       NEW_ITEM = LS_MULTIPANE
       SET_INITIAL_ELEMENTS = ABAP_FALSE ).
endmethod.
**********************************MAIN VIEW METHOD ONDISPLAY**********
method ONACTIONDISPLAY .
  DATA lo_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .
  lo_COMPONENTCONTROLLER =   wd_this->get_componentcontroller_ctr( ).
    lo_componentcontroller->get_sales(
endmethod.
******************MAIN VIEW HOOK METHOD********************
method WDDOINIT .
    wd_this->multipane(
endmethod.

sir ,
     what u said is right but here i am having two issuses that the paginator is not working and also the first element does not contain data then i changed context now the issue is
plz observe the context (node in node ). text1 for header details which is bound to the caption of group ui element and text2 for  the item details are displayed line by line inside the group
see now i use the wizard to call the SALES_TXT node then
then i got the code inside the method  but it is throwing error on check.

Similar Messages

  • Runtime error for ui element multipane

    hello.
    i have a question.
    i implemented uielement multipane example in wda.
    it worked very well in only first trying, but it occured a runtime error -that is Access via 'NULL' object reference not possible.- from second trying.
    context -
    hd                               <node>
    attribute1            <hd of attribute>
    attribute2            <hd of attribute>         
    item                    <hd of subnode>
    attribute1 <item of attribute>
    attribute2 <item of attribute>
    below is source.
    ==========================================================
      DATA: node_hd        type ref to if_wd_context_node,
                 node_item     type ref to if_wd_context_node,
                 itab_hd        type wd_this->elements_hd,
                 stru_hd        type wd_this->element_hd,
                 itab_item      type wd_this->elements_item,
                 rt_auart type ref to data,
                 rt_vbeln type ref to data.
      field-symbols: <fs_auart> type table,
                           <fs_vbeln> type table.
    retrieve the data from the select option
      rt_auart = wd_this->m_handler->get_range_table_of_sel_field( i_id = 'AUART' ).
    assign it to a field symbol
      assign rt_auart->* to <fs_auart>.
    retrieve the data from the select option
      rt_vbeln = wd_this->m_handler->get_range_table_of_sel_field( i_id = 'VBELN' ).
    assign it to a field symbol
      assign rt_vbeln->* to <fs_vbeln>.
    retrieve that data from the database.
    Normally it is suggested to encapsulate the data retrieval in a separate class.
    For simplicity, the select statement has been implemented here.
      select * into corresponding fields of table itab_hd
      from vbak
      where vbeln in <fs_vbeln>
      and auart in <fs_auart>.
    bind the data to the context
      node_hd = wd_context->get_child_node( name = 'HD' ).
      node_hd->bind_table( itab_hd ).
    bind the data to the context  
      loop at itab_hd into stru_hd.
    retrieve item_node object each sy-tabix
    i could't get item_node object when sy-tabix is 1.
    i hope to know why i can't get item_node object when sy-tabix is 1.  
          node_hd->get_child_node(
            exporting
              index = sy-tabix
              name = 'ITEM'
            receiving
              child_node = node_item ).
          when index = 1
          node_item object is null.
          why node_item object is null?????
          i don't got it.
          can sombody explain about it???
          because of this matter, i can't acess frist node_item to insert value.
          do you have a solving this matter? 
            select * into corresponding fields of table itab_item
            from vbap
            where vbeln = stru_hd-vbeln.
            node_item->bind_table( itab_item ).
      endloop.

    Hi Regina.
    So you say if it is not declared as singleton it is created for each element. But
    when I declare my subnode with cardinality 0..1 I face the same problem.
    This is what I do:
    I bind the elements to the parent node. Afterwards I loop all elements of the parent
    node and try to get the subnode with element->get_child_node( ). If cardinality of
    the sub node is 0..1 or 0..n the reference is NULL. If cardinality is 1..1 or 1..n the
    reference is not initial.
    At what step does the frameowrk create the subnode then?
    Cheers,
    Sascha

  • MultiPane for WD JAVA ?

    Hi!:
    I saw this doc:
    http://help.sap.com/saphelp_nw04s/helpdata/en/df/da8b412bb5b35fe10000000a1550b0/frameset.htm
    and I was wondering if something like Multipane is available for WebDynpro java.
    Thanks a lot!
    Rocio.

    No, it's not available in WD Java. In NW 7.1, a similar element (RowRepeater) is available. Maybe you can use a table instead?
    Armin

  • Rowcount property of Multipane in Component configuration

    Hi All,
    I've created application configuration for the HRRCF_A_STARTPAGE_EXT_CAND wherein I'm configuring the HRRCF_C_PERSONL_DATA_UI component. Using this I have to hide the all fields under Temporary address on screen. The entire address node is under Multipane UI element. To make the Temporary address fields hidden I'll need to change the Row Count property of Multipane to 1.
    I can see this property through se80 however no such property if getting displayed in the Component Configuration mode.
    Any idea how I can get this property displayed in the config mode? or How I can make the Temporary Address fields hidden without making changes to the standard.
    Regards,
    Seema Rane.
    Edited by: Seema Rane on May 6, 2009 12:50 PM

    The online help has quite a bit of details.  I would start there:
    http://help.sap.com/saphelp_nw04s/helpdata/en/94/9cdc40132a8531e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/c5/f4b9422e0fb911e10000000a1550b0/frameset.htm

  • Multipane Control Question

    Hello,
    I will give a simple example of what I am trying to do:
    I have a multipane control with a transparent container containing a textview nested inside.  The context node structure is 1...n with a single attribute of type string; multipane and textview are bound to them respectively.
    I would like, based on the value of the textview, to change a property for that textview.  For example, if the value of the textview is 'ONE', I'd like to change the semantic color to '05'. 
    I am able to access this property of the text view with the following generic code:
    ======================================================================
      FIELD-SYMBOLS <ui_element> TYPE REF TO cl_wd_uielement.
      DATA v_mp   TYPE REF TO cl_wd_multi_pane.
      DATA v_ui   TYPE REF TO cl_wd_uielement.
      DATA v_tc   TYPE REF TO cl_wd_transparent_container.
      DATA v_tv   TYPE REF TO cl_wd_text_view.
      DATA v_tui  TYPE cl_wd_uielement=>tt_uielement.
      DATA v_text TYPE string.
      v_mp ?= view->get_element( id = 'MP' ).
      v_ui = v_mp->get_content( ).
      v_tc ?= v_ui.
      v_tui = v_tc->get_children( ).
      LOOP AT v_tui ASSIGNING <ui_element>.
        v_tv ?= <ui_element>.
        v_text = v_tv->get_text( ).
        IF v_text = 'ONE'.
          v_tv->set_semantic_color( value = '05' ).
        ENDIF.
      ENDLOOP.
    =====================================================================
    The problem is that all of the textviews are taking on the color.  Obviously I am doing this wrong however I am not clear on how to access the individual textview object generated at runtime for each row in the multipane.
    Is it the case that a multipane simply does not support this?
    Any guidance is appreciated.

    If you want this to work correct you are going to have to use context binding for the semantic color property.  You will need to add more attributes to the context that is the data source for your multipane.  You can fill then with logic that tests against your text value.  You then bind the semantic color to the context that is your data source for your multipane just like you did the textView text property.

  • Multipane selected element index

    Hi,
    I am trying to use Multipane UI element which has a 'button' UI element within it. The action should have as a parameter the index of the pane in which it was pressed.
    The multipane is bound to the context node. It is enabled.
    The documentation says that multipane element should change the lead selection of the context node to which it is bound when something is 'used' within an individual pane. But it does not. Is it correct?
    Does anybody know how to get the index of the pane which was 'used'.
    Thank you,
    Helen

    Hi Helen,
    please could you tell us, where you found this information in the docu? I cannot find such thing.
    The Multipane does not change the lead selection. If you have a button inside it, a reference to the context element, which identifies the current multipane part, is passed to the action. Just declare
    CONTEXT_ELEMENT  TYPE REF TO IF_WD_CONTEXT_ELEMENT
    as an importing parameter to the action.
    Regards, Regina

  • Dynamically embed interface view in window

    Hi,
    I am reusing the same WD ALV component in different tabs on the same view
    of my application. The WD framework does not allow to embed the same interface view of the same component usage more than once on the same view -> error message '... is already embedded in your view...'
    So as I don't want to slow down the application and create 5 component usages of the ALV reuse component because of this, I would like to dynamically assign the same
    instance interface view to the currently viewed tab. In each tab, there would be a view
    container to embed the interface view. I tried calling the method below in both wdDoInit and on the plug handler of the default inbound plug, but no success so far
    I implemented the method as far as I understood the saphelp correctly:
    http://aiokeh.wdf.sap.corp:1080/SAPIKS2/contentShow.sap?_CLASS=IWB_EXTHLP&TMP_IWB_TASK=DISPLAY&_LOIO=4C60154219FCE12CE10000000A1550B0&_SLOIO=7C3545415EA6F523E10000000A155106&RELEASE=700&LANGUAGE=EN&_SEQNUM=71&_SCLASS=IWB_STRUCT
    method EMBED_ALV_VIEW .
      data: L_VIEW_CONTROLLER_API type ref to IF_WD_VIEW_CONTROLLER,
      L_VIEW_CONTROLLER_API = WD_THIS->WD_GET_API( ).
    L_VIEW_CONTROLLER_API->PREPARE_DYNAMIC_NAVIGATION(
                  source_window_name          = 'RPM_DASHBOARD_WINDOW'  "embedding app window
                  source_vusage_name          = 'RPM_DASHBOARD_VIEW_USAGE_1' "own local view containing all those tabs
                  source_plug_name            = 'DEFAULT'  " inbound plug for the window above
                  target_component_name       = 'SALV_WD_TABLE' "alv reuse component
                  target_component_usage      = 'SALV_WD_TABLE' "usage name of this component
                  target_view_name            = 'TABLE'  "interface view name of embedded component
                  target_plug_name            = 'DEFAULT' "startup plug for this interface view
                  target_embedding_position   = 'CNT1' ). "own view container on view.
    Thank you for your help!
    CHeers, Robert

    Hi Robert,
    Check out the following:
    In the Wiki they have added a feature about inputfields/dropdownboxes.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdabap/dynamicuseof+Dictionary&
    you can also check the weblogs by Thomas:
    /people/thomas.szcs/blog/2005/12/28/dynamic-programming-in-web-dynpro-abap--introduction-and-part-i-understanding-ui-elements
    /people/thomas.szcs/blog/2006/01/03/dynamic-programming-in-web-dynpro-abap--part-ii-handling-viewelements
    /people/thomas.szcs/blog/2006/02/22/dynamic-programming-in-web-dynpro-abap--part-iii-aggregations-and-ddic-binding-of-viewelements
    You could use MultiPane or RowRepeater. WDR_TEST_EVENTS contains an example for both.
    Hope this will help you.
    Cheers,
    Darshna.

  • Add Embed Interface View of a Componenet instance

    In a WebDynpro project (not DC), we create two webDynpro components WA, WB.
    WB is is declared as Used Web Dynpro Components in WA. When we want to embed the interface view, in the pop-out window, we can see the Component Instances node with a "+" , but we can not open the node to select. This case can be reproduced on some machine, but in another machine it works properly.
    We use NW 2004 with SP11, any one know how to solve the problem?

    Hi Robert,
    Check out the following:
    In the Wiki they have added a feature about inputfields/dropdownboxes.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdabap/dynamicuseof+Dictionary&
    you can also check the weblogs by Thomas:
    /people/thomas.szcs/blog/2005/12/28/dynamic-programming-in-web-dynpro-abap--introduction-and-part-i-understanding-ui-elements
    /people/thomas.szcs/blog/2006/01/03/dynamic-programming-in-web-dynpro-abap--part-ii-handling-viewelements
    /people/thomas.szcs/blog/2006/02/22/dynamic-programming-in-web-dynpro-abap--part-iii-aggregations-and-ddic-binding-of-viewelements
    You could use MultiPane or RowRepeater. WDR_TEST_EVENTS contains an example for both.
    Hope this will help you.
    Cheers,
    Darshna.

  • Want to add Image Dynamically...

    I want to add image dynamically in my output screen..so is there any code that i can use..Please help with this...

    Can you please be more specific about what you want to do dynamically.  Do you just want to dynamically control which image appears in an image UI element (which can be done by data binding a context attribute to the image Source property) or do you want a dynamic number of images (which can be done with a row repeater or multipane UI element and inner Image UI elements).

  • Row repeater use.

    Hi,
    I would like to know how to use Row Repeater, UI Element,  in WD. I want to create a layout for email where recipients can be more than one. so the Input field has to be accordingly set for input from user.
    Regards
    Piyush

    I agree with Silke, for this kind of requirement I prefer the multipane as well.
    Online help for the RowRepeater:
    http://help.sap.com/saphelp_nw70/helpdata/EN/44/93d3792e8c60d6e10000000a114a6b/frameset.htm
    Online help for the Multipane:
    http://help.sap.com/saphelp_nw70/helpdata/EN/df/da8b412bb5b35fe10000000a1550b0/frameset.htm
    I'm afriad that unless you provide us with more specfics on where you are having problems, that is about all the help I can offer.

  • Dynamic Node bind to attribute of type "STRING_TABLE"

    Hi ,
    I want to create dynamic node which is bind to attribute of type "STRING_TABLE'.
    Basically I want to create this node for inserting dynamic "TEXT EDIT' UI elements in my view .
    can sm1 help me in this regard.

    Seems like you should be able to use the API: cl_wd_dynamic_tool=>create_nodeinfo_from_struct.
    The real question is do you really need to create the node dynamically.  Why not just create a node that has the string_table attribute in it. Make the node 1:n or 0:n.  Bind this node to a RowReapter or MultiPane UI element.  Then as a child of the RowReapter/MultiPane you place your textEdit UI element.  This way, you will render dynamically how ever many textEdits as there are elements in your node.  No need for dynamic node creation.

  • Inability to use dsc tags in clusters

    I am looking at implementing an interface to
    a Siemens s5 plc via it's as511 serial driver.
    I purchase Labview dsc for this. However, when
    I create a tag, and try to drag it into a
    cluster, I lose the tag. The current version (6.1)
    does not seem to support having tags within a cluster.
    Yet, this is the only approach I can see given that
    I need to somehow group roughly 500 process elements.
    I don't see how I can have all these elements on
    one main diagram. Am I missing something????
    I was hoping to develop a Labview type multipane
    user environment, but it does not appear to be
    possible at present. If they don't fix this, I may
    have to look elsewhere... ie wincc or intouch.
    thoughts?
    :->
    tb

    tb,
    Maybe, I do not understand you correctly, but I could drag and drop a tag control in a cluster control and as well the same thing in the diagram as constants.
    With unbundle you can get the Tag reference and you can wire that to any VI that require those tags as input.
    If you have a lot of Tags configured in your .scf file you could use the functionality to group some of the tags together in Tag Groups. Some DSC VIs then handle as input those Tag Group Names. This makes writing a DSC application maybe more comfortable.
    LabVIEW itself has the easy fuctionality of using SubVIs and those VIs could pop-up as additional window when you want to display some more information.
    Unfortunately the screen size might be a limiting factor of 17 inches and if yo
    u are lucky of 21". I assume other Software packages could not make the screen bigger
    If I got your question wrong, you could give me maybe more details.
    Hope this helps
    Roland

  • How do I create a new RoboHelp AIR template?

    Hello,
    I am using the Adobe Technical Communication Suite 3.5 and am publishing from FrameMaker 10 out to AIR Help via RoboHelp 9.
    I would like to use a template of my own creation, versus one of the stock templates provided (e.g. Multipane Accordion).
    Can someone direct me on where one would go to make this happen?  I apologize if this is not a RoboHelp 9 specific question, but in a way it is,
    since the AIR template gets invoked from within RoboHelp 9.
    Thanks in advance for your suggestions.
    Regards,
    James

    Hi Peter,
    Yes, it is the same James who sent you a direct reply.  Well, that is certainly not very helpful to me when creating AIR Help in RH9.
    I think I will make a feature request that Adobe allow users to create templates, or at least have MORE control over what goes into the templates, especially around the borders, number of panes and much more.
    What I am getting at, is that the Adobe AIR Help could serve as a sort of Interactive Electronic Technical Manual or IETM, which would probably be
    a great way to further market the Tech Comm Suite or RoboHelp by itself.
    I would have throught that Adobe Flex / Adobe Flash Builder would have allowed you to create a new template.  How was the original sample AIR templates created anyway?  With Flex/Adobe Flash Builder, or by some other product or plain coding?
    What a pity.
    Thanks,
    James

  • Mechanism to filter Image dynamically

    Hi Friends, I am doing my final year project using J2ME which includes showing the city (Mumbai) roads through the mobile interface, as in a user/client can request for a road map for his desired source to destination.
    The only thing i wish to know or rather have a opnion from you gurus is that which would be the best and the fastest technology I should use on the server side where the actuall request will be processed. Also can somebody please suggest me any algorithm or even a mechanism to filter the required image i.e the cells/blocks from the image(if we divide the entire city's map into cells/blocks) which contain the route the user has requested for.
    It will be a great help if I get any solution to my image problem...because I think that the current technique which we are using in the project for giving the final image(i.e the image containing the route) is not the best feasible solution cos it involves a bit of hardcoding in the DB which .....alters the scalability of our entire application. So eagerly, anxiosuly, desperately seeking for some other solution.
    Eagerly waiting for comments and replies also enhancement ideas if any. :) .
    --aXis.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Can you please be more specific about what you want to do dynamically.  Do you just want to dynamically control which image appears in an image UI element (which can be done by data binding a context attribute to the image Source property) or do you want a dynamic number of images (which can be done with a row repeater or multipane UI element and inner Image UI elements).

Maybe you are looking for

  • How do I update my iPad to iOS 6.0?

    Details: Model: iPad 2 WiFi iOS 4.3.5 iTunes Version 10.7 OS X 10.8.1 Problem: after downloading the iOS 6.0 update on iTunes, and verifying with apple, it says preparing iPad for update. Then it gives the following error messsage: The iPad "iPad" co

  • Message control

    Dear Gurus,                  Can any one help me regarding following, System should not save the invoice if there is error in A/C determination or other.At least system should give error message & do not save the invoice.                   How I will

  • Field selection for std Tcode

    Hi MM consultants my client wants only one or two user can view Price in Purchase Order. same i have ristrcted through parameter id (tcode-OMET) , now it is not reflecting in ME23, but while running report ME1P or ME2M etc net price is displaying , i

  • Type size for Palm Desktop

    Why is the newest version of Palm's Desktop software for Windows XP & Vista have such small type size?  It's at least 2 pts. smaller than my older version and very hard to read.  Is there a setting somewhere that I can't find which allows users to cu

  • FM transmitter and Pandora Radio

    I know that the FM transmitter is intended to work with the iPod on the iPhone but will the FM transmitter work with apps such as Pandora Radio so that I may listen in the car without the use of headphones.