Dynamic Web Dynpro

In my application I need to capture a set of data for every day for as many days as needed, based on information already entered. In other words I do not know how many days I need to capture data for until runtime.
I need to be able to dynamically repeat the same set of data input elements for each day.
Any suggestions would be greatly appreciated.

Hi,
it's possible to generate web dynpro on the fly. You should be able to find some articles or documentation here on SDN. But why don't you use a table? You can use parameter visibleRowCount to avoid paging and disable adding/removing lines from the table. It would be easier than dynamic generation of view elements and binding them.
BTW there is a separate forum dedicated to WebDynpro for ABAP. You would have better chance to get answers for your questions there.
Cheers

Similar Messages

  • Refresh dynamic web dynpro

    hi all,
    i have a dynamic dynpro, whit this similar structur:
    a->
      a1->
            a1.1
                  ->a1.1.1
                  ->a1.1.2
            a1.2
                  ->a1.2.1
                  ->a1.2.2
    b->

    hi,
    The structure could be achieved with Recursive node.
    Can you be more specific for the requirements like what you need to reload?
    Can you provide example?
    What will be there initially and after reload how should be the structure?

  • Dynamic Web Dynpro Project

    Noufal,
    I am working on a WD app wherein I need to dynamically populate dropdownlists, input fields. Dynamic values are contained in an object that has propertiy values such as id, text (could be a value set), read-only flag, labelid flag etc.....
    My issue is depending on the UI element type (dropdownlsit, input field, checkbox etc..) I may have to populate UI element corresponingly. I do not want to yse context nodes to bind values, as I have way too many fields to populate. My question to you is as follows:
    1) How do I know the type of the element ?
    2) How do I populate the dropdown list ?
    3) Show the view manipulation be done only in the wdDoModifyView method only ?
    If you have posted code for some of my questions, please paste in your response once again....
    Thanks,
    Sri

    Armin,
    I reviewed the chapter and found it helpful. However, I am not sure if it addresses the issue of accessing the value of a node, the kind I have talked about. Example is as follows.
    I have the context structure created dynamically, and it is as follows.
    NodeA
    NodeA1
    NodeA11
    Element1
    Element2
    Element3
    NodeA2
    NodeA21
    Element1
    Element2
    Element3
    NodeA3
    NodeA31
    Element1
    Element2
    Element3
    One of the earlier responses to my post, I think it was by Noufal, would work if nodes were created at design time.
    But noes above are created at runtime.
    I have been able to access the node say NodeA11, but still not sure how to access the attribute Element1 or Element2, which ever is the selected element. Keep in mind, these elements are created dynamically, so I cannot access values with statement like
    wdContext.currentNodeA11Element().getElement1();
    Hope I am making sense. Do let me know how.
    Thanks !
    Sri

  • Create dynamic table in web dynpro abap

    Hi Friends,
    I want to create several tables in a web dynpro. For this reason I have created a View, a group1 and a context node.
    Now I want create a table for each characteristic group from cabn in the ui group1.
    For this reason I want to use create_table_from_node and I have to craete dynamicly attributes in the node.
    Is it the propper way  or is there a different approach.
    So in this case
    1. I read the node
    2. craete attribute for each characteristic group in this node
    3. create a UI Table with create_table_from_node for each attribute
    4. bind the data to the UI Table
    Can I do the same without to craete attributes?
    Thank in advance.
    RG. Jimbob

    Hi Jimbob,
    Have you looked at using the row-repeater UI element? You could then have as many tables as per your characteristic groups.
    Although this would be more difficult if the attributes of each table were to also be only known at run-time. (I'm not sure that this is the case though from your description of the issue.)
    so have a context of the form:
    Context Root
    --->node_characteristic_group (0..n)
    >node_char_group_details(0...n) (non-singleton child node)
    then bind your row repeater to node "node_characteristic_group " and bind the table inside the row repeater to node "node_char_group_details".
    Each time you had a new element in the node_characteristic_group you would get a new table...
    Much easier to support that anything dynamically created.
    Cheers,
    Chris

  • Dynamic insertion of MIME object into a web dynpro component

    Hi,
    I want to dynamically insert a MIME object of type JPEG or type GIF into my web dynpro component at runtime.
    I was unable to find the database table which contains the list of MIME objects for a particular web dynpro component.
    Can you please help me out with this?
    Thanks in advance,
    Adithya
    Moderator message: wrong forum, please have a look in the "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on May 23, 2011 9:55 AM

    Hi Muzammil Bichoo ,
                                   when you copy the wda component, it will be copied and will be in active state, once all the components are activated means, windows, views, everything will be available.
    now create application for your component, if you have more than one window(interface view) select the one which you need for the application.
    Regards
    Sarath

  • Adding rows in web dynpro ABAP Dynamic Interactive form.

    Hi Experts,
              I am having problem in web dynpro ABAP Dynamic Interactive form.
    This is my scenario....
    I have a dynamic interactive form that has buttons to add and remove rows in a table. It works fine when I preview it , but when I render, view or save it using ADS, it no longer works. The "add" button actually does instantiate more repeating rows, because I put some trace messages in to count them, but the added rows are not displayed. How do I make them visible?
    In web dynpro java we write some coding in modify view to set the pdf form as dynamic
    IWDInteractiveForm iForm =
    (IWDInteractiveForm)view.getElement("<ID>");
    iForm.setDynamicPDF(true);
    simillarly what we need to write in web dynpro ABAP.
    Please give me solution for the same.
    Thanks,
    Sathish

    hi all,
             expecting reply from u all. pls help me and give some sugesstion.
    regards,
    vinoth.

  • Reading Dynamic Table Values in interactive form (web Dynpro ABAP)

    Hi All,
    I have created a Web Dynpro ABAP application which contains an Interactive Form, That Adobe Interactive Form contains Dynamic table (New rows can be added manually and deleted using a button).
    I am not able to read the Dynamic table values in Web Dynpro u201COn Submitu201D.
    In the Adobe form I have web Dynpro native button (I am using ZCI), while clicking the native button I need to read the dynamic table values.
    How can I resolve this problem.
    Thanks and Regards,
    Boopathi M

    that means, when u add the table instance at runtime, you will also have to add an element to the node that is bound to the table.
    probably addNew() mathos may be useful to you.
    it appends a new record to the record set.
    xfa.sourceSet.dataConnectionName.addNew()
    also when on the exit event of the table field, do the following:
    var i = xfa.parent.index
    $record.rootnodename.tablenodename.data<i>.fieldname = $.rawValue
    xfa.host.messageBox($record.rootnodename.tablenodename.data<i>.fieldname)

  • How to create the Dynamic UI element table in web dynpro in abap

    Hi All,
    Does anybody have reference note or teach me how to create dynamic UI element table in web dynpro in abap ?
    Regards,
    Luke

    HI LukeWong ,
    for creating any UI dynamically you shoul use their runtime class that always start with cl_wd_* ui element name*
    so for the Table UI element the runtime class is CL_WD_TABLE
    now reffer the below code for creating the Table UI dynamically
    METHOD wddomodifyview.
    DATA lr_table TYPE REF TO cl_wd_table.
    DATA lr_flow_data TYPE REF TO cl_wd_flow_data.
    DATA lr_container TYPE REF TO cl_wd_uielement_container.
    DATA lr_column_name TYPE REF TO cl_wd_table_column.
    DATA lr_text_view TYPE REF TO cl_wd_text_view.
    DATA lr_table_header TYPE REF TO cl_wd_caption.
    DATA lr_column_name_header TYPE REF TO cl_wd_caption.
    IF first_time EQ abap_true.
    lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
    lr_table = cl_wd_table=>new_table(
    id = 'TBL_TABLE'
    bind_data_source = 'TABLE'
    design = cl_wd_table=>e_design-alternating
    visible_row_count = 3
    lr_flow_data = cl_wd_flow_data=>new_flow_data( element =
    lr_table ).
    lr_container->add_child( lr_table ).
    lr_column_name = cl_wd_table_column=>new_table_column(
    id = 'TBL_EXAMPLE_NAME'
    lr_table_header ?= cl_wd_caption=>new_caption( text = 'Table UI elem
    ent - example').
    lr_table->add_column( the_column = lr_column_name ).
    lr_table->set_header( lr_table_header ).
    lr_text_view = cl_wd_text_view=>new_text_view(
    id = 'TXV_NAME'
    bind_text = 'TABLE.NAME'
    lr_column_name_header ?= cl_wd_caption=>new_caption( text = 'Name').
    lr_column_name->set_table_cell_editor( the_table_cell_editor = lr_text_view).
    lr_column_name->set_header( lr_column_name_header ).
    ENDIF.
    ENDMETHOD.
    Regards
    Chinnaiya P
    Edited by: chinnaiya pandiyan on Sep 17, 2010 12:01 PM

  • How to put dynamic search help in web dynpro ABAP.

    Hi,
    I have a table element with two columns in my web dynpro ABAP.Both the columns are F4 helps.
    Based on the value of the first column,the F4 help of second column must change dynamically.Kindly tell me how to do this.
    Thanks & Regards,
    Raji.

    Hi ,
    Use this code to dynamically assign search help and to deactivate search helps.
    data lo_nd_info type if_wd_context_node_info.
    lo_nd_info = lo_nd->get_node_info( ).
    CALL METHOD lo_nd_info->set_attribute_value_help
    EXPORTING
    name = 'ATTR1' " Your attribute Name
    value_help_mode = '121' " Valid value help mode
    value_help = 'Z187442'. " Search help name
    The various possible values that you can pass to value_help_mode are as shown below.
    deactivated 101
    automatic 111
    ddic 121
    ovs 131

  • Dynamic selection screen with ABAP web dynpro

    Hi all.
        How can I create dynamic selection screen with ABAP web dynpro? Thank you in advance.

    hi yinglak.....
             this is possible........ all the ui elelments has the property called visible and enabled.... just assign an attribute of type wdui_visibility to the visible property....
    in the wddomodify method..... check for the radio button value and pass the value true or false to this attribute and it gets changed automatically.
    ---regards,
       alex b justin

  • Create a Table Dynamically in WEB Dynpro Java with diferent type of column

    Hi everyone, I have a question if is possible to create a table dynamically in Web Dynpro Java?, depending of the RFC consults create the rows dynamically, ,this table must have diferent type of columns, for example link column (when the user click this link execute an action and show a adobe interactive form in another view), image column (show an image depending of the information)
    Thank you everyone
    Atte Israel

    Hello,Israel.
    Yes , it is possible through dynamic programming in wdModify of the View.
    You can do this ,for example, using cell variants.
    IWDTable tab = (IWDTable) view.getElement("TABLE_NAME");               
    IWDTableStandardCell cellV= (IWDTableStandardCell) view.createElement(IWDTableStandardCell.class,"TableStandardCell"+i); 
    cellV.setVariantKey("NotEditableVariant");
    cellV.setCellDesign((WDTableCellDesign)wdContext.nodeTableDaysTitle().currentTableDaysTitleElement().getAttributeValue("CellDesign"+i));
    IWDTextView textViewi= (IWDTextView) view.createElement(IWDTextView.class,"TextView"+i);  // -- here you control the type of the object that is displayed in the cell
    textViewi.bindText(dayAttrib);
    cellV.setEditor(textViewi);          
    tabColumn.addCellVariant(cellV);
    tab.addGroupedColumn(tabColumn,tab.numberOfGroupedColumns());     
    Using this code you can control even specific cells in the table and not only columns.
    Hope this helps you,
    Constantine

  • Dynamic context in web dynpro abap: recursion node is possible?

    Hi,
    i'm working with web dynpro ABAP and I need to create a dynamic recursion node. Is possible?
    thank you.
    Regards.
    Al

    Hello Saravanan,
    this is my code that creates a context node with recursion node, but supply_method i never called. why? could you help me?
          CALL METHOD lr_root_info->add_new_child_node
            EXPORTING
              name                         = y_name
              is_mandatory                 = abap_false
              is_multiple                  = abap_true
              is_mandatory_selection       = abap_false
              is_multiple_selection        = abap_true
              is_singleton                 = abap_true
              is_initialize_lead_selection = abap_true
              is_static                    = abap_true
              supply_method                = 'SUPPLY_NAV_LIST'
            RECEIVING
              child_node_info              = lr_node_info.
          ls_attribute-name = 'TEXT'.
          ls_attribute-type_name = 'STRING'.
          CALL METHOD lr_node_info->add_attribute
            EXPORTING
              attribute_info = ls_attribute.
          ls_attribute-name = 'ENABLED'.
          ls_attribute-type_name = 'WDY_BOOLEAN'.
          CALL METHOD lr_node_info->add_attribute
            EXPORTING
              attribute_info = ls_attribute.
          lr_node_info->add_recursive_child_node( child_name = y_name_nav child_info = lr_node_info is_static = abap_false ).
    Thank you.
    Al

  • Portal dynamic iView from Web Dynpro ABAP?

    I wish to use a "Dynamic iView" from a Web Dynpro ABAP application, but it appears the API is only available in Web Dynpro Java.  Can this feature be used from Web Dynpro ABAP, or can this be accomplished in another way?
    Scenario: I have two iViews on a page, one Web Dynpro ABAP and another iView whose source I want to change dynamically based on something a user clicks in the Web Dynpro ABAP.
    Dynamic iView:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/a72c155df77038e10000000a422035/frameset.htm

    So you are suggesting the WDA fires an event to a new WDJ that we would need to create that would in turn use the Dynamic iView service mentioned in that help document?

  • Path to (dynamic) image files on the WAS Server - Web Dynpro

    Hello again with a new question ...
    I wrote a Web Dynpro Application, that uploads images from the client and stores them in a directory on the server. In the next step the WD Application reads the contents of that directory (for Example 1.jpg, 2.jpg, 3.jpg) and shall display these pics (dynamically).
    The only thing that does not work is displaying the images. I do not know how to address them; i simply can not see them.
    My application is running on a windows host in path "E:\usr\sap..."
    The Pics are uploaded into the server directory "E:\ZZZ\"
    <b>Following code shows the pics</b>, when i use a browser on the server itself. When i try it from another machine, is doesn't work. Seems as if the supplied path is a local path, not a server path.
    IWDImage image11 = (IWDImage) view.createElement(IWDImage.class, "TestBild" + i);
    image11.setAlt("file:///" + files<i>.toString());
    image11.setSource("file:///" + files<i>.toString());
    // files<i>.toString() contains: \E:ZZZ1.jpg
    theGroup.addChild(image11);
    <b>Thank you !!</b>

    Armin, thank you, just solved the problem
    I found a post telling something about HTTP aliases and this weblog
    /people/renjith.andrews/blog/2005/03/31/creating-an-http-alias-in-was
    So i created an alias (ZZZ for Hard drive directory "E:\ZZZ") and use it in the code for example:
    image11.setAlt("http://netweaver:50000/ZZZ/0000009502_0002000197_2_002.jpg");
    image11.setSource("http://netweaver:50000/ZZZ/0000009502_0002000197_2_002.jpg");
    Now i see the images within my WDView

  • Dynamic Use of web dynpro component

    Hi,
    How can I dynamically use the web dynpro component for display in one component with out using Wdb Dynpro Interface component?
    I want to give user a dash board which is configurable by the user.
    Thanks and regards,
    Pradip

    >
    Pradip R[https://cw.sdn.sap.com/cw/docs/DOC-37733
    > Hi Bhaskar,
    > My components are not in used componenty. In runtime user will search the component in server and shall embedd in my application. So component usage is also dynamic.
    > Any suggestion?
    > Regards,
    > Pradip
    Hi,
    see the link here
    [https://cw.sdn.sap.com/cw/docs/DOC-37733|https://cw.sdn.sap.com/cw/docs/DOC-37733].
    as advised, you create a usage group for dynamic components, add component usages to the group based on your conditions.

Maybe you are looking for

  • Computer not assigning IP to WRT54G

    I just bought a Linksys WRT54G wireless yesterday, replacing my Linksys BEFSR41(wired). I went through the setup wizard and everything went smooth. It detected the router and everything, and I can log into the router page using 192.168.1.1. My proble

  • Missing version filed in response from server when accessing resource

    Hello all, I am getting the following error when trying to do jar version download in webstart. Missing version field in response from server when accessing resource(http://lo alhost:8080/jdc/jnlp/new/SimpleGUI.jar,1.0) I am using Tomcat 5.5. My web.

  • Saving a single page from my iWeb Site

    I have a page that I'd like to save for use later. I can't find any menu options for that. Can it be done? Ty Ford

  • Cost of allocated skype premium higher than offer ...

    I am trying to allocate Skype Premium to some of the users I administer through Skype Manager. When I click on allocate Premium, the price I am quoted is Euro 6.99 per user per month for 12 months. However, if I go to the Skype Premium page directly,

  • Skype quitting 'unexpectedly'

    Skype suddenly started quitting 'unexpectedly' every time as soon as I try to open it. I've followed all of the suggestions on the Skype support site, then completely deleted Skype from my computer and reloaded it, but nothing made any difference. I'