Dynamic input fields

I need to dynamically generate the input fields based on the results returned from the query. How do I name each input fields differently.
Eg:-)
Say I have 5 rows returned from EMP table. I need to generate 5 input fields to change their names??
How does the XSL script looks like??
null

First one - javascript good.
Second one - take user to another page.
[JavaBean and Servlet are not interchangable, JSP and Servlet are]

Similar Messages

  • Add Dynamic Input field

    Hi...Experts am new in ABAP Webdynpro. Actually my application is Add Dynamic Input Field in webdynpro. Already One lable, one Input field is there and I add one more button. When I click that button Dynamically Adding same like existing lable and inputfield.Can anyone tel me how to resolve my problem.

    Hi..Yugesh
    U will try this,Definitly Ul get Answer.
    For Dynamically creating Attribute
    DATA : rootnode_info TYPE REF TO if_wd_context_node_info,
    dyn_node_info TYPE REF TO if_wd_context_node_info,
    dyn_node TYPE REF TO if_wd_context_node.
    DATA : dyn_attr_info TYPE wdr_context_attribute_info.
    dyn_attr_info-name = 'NAME'. Attribute Name
    dyn_attr_info-DEFAULT_VALUE = 'Prakash'. +Iam Setting Default value of attribute,u can change as per ur requirement +
    dyn_attr_info-type_name = 'ZDE_NAME' . Data Element(CHAR20) ( Type Of Attribute )
    rootnode_info = wd_context->get_node_info( ).
    CALL METHOD rootnode_info->add_attribute
    EXPORTING
    attribute_info = dyn_attr_info.
    This will create a attribute at run time...
    For Dynamically creating Input Field
    DATA lr_container TYPE REF TO cl_wd_uielement_container.
    DATA lr_input TYPE REF TO cl_wd_input_field.
    DATA lr_table TYPE REF TO cl_wd_table.
    DATA lo_nd_sflight TYPE REF TO if_wd_context_node.
    DATA lr_button TYPE REF TO cl_wd_button.
    DATA lr_grid_data TYPE REF TO cl_wd_grid_data.
    DATA lr_flow_data TYPE REF TO cl_wd_flow_data.
    DATA lr_matrix TYPE REF TO cl_wd_matrix_head_data.
    +Note : Before that change the Layout of ROOTUIELEMENTCONTAINER to MATRIX LAYOUT +
    navigate from <CONTEXT> to <SFLIGHT> via lead selection
    lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
    CALL METHOD cl_wd_input_field=>new_input_field
    EXPORTING
    bind_value = 'NAME' + attribute which i created above+
    id = 'INPUT1'
    RECEIVING
    control = lr_input.
    lr_matrix = cl_wd_matrix_head_data=>new_matrix_head_data( lr_input ).
    lr_input->set_layout_data( lr_matrix ).
    CALL METHOD lr_container->add_child
    EXPORTING
    index = 1
    the_child = lr_input.
    ENDIF.
    Code it in WDDOMODIFYVIEW...

  • F4 Help for a dynamic input field( class CL_DD_INPUT_ELEMENT)

    Hi all,
    I am programming a dynamic document which has several input fields on it. I want to program F4 helps for these fields, does anyone have an idea how I can do that?
    I have the idea to program a button(class CL_DD_BUTTON_ELEMENT) next to the input field and manually program an F4 help in the event handler of the button. But I do not know how I can handle pattern entries with '*' etc. in the input field. Is there a function module which could give me an F4 list(F4IF_INT_TABLE_VALUE_REQUEST could not be used, because it needs a dynpro field as a return field, which we do not have in this case).
    Kind Regards,
    Sükrü

    hi
    good
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE node.
    allows you to define further nodes for dynamic selections. If the node has type T, you can use TABLE instead of NODE. The user can then decide at runtime the components of the node for which he or she wants to enter selections. Dynamic selections require special handling in the database program
    F4 HELP->
    AT SELECTION SCREEN ON VALUE REQUEST FOR P_SACHA.
        PERFORM VALUES_SACHA.
    THANKS
    MRUTYUN^

  • Interactive form -Dynamic input fields

    Hi,
    I am working with an interactive form.
    After Userinputs a InputField1 it should populate Inputfield2 dynamically.
    Lets Say if I enter a 01/01/2009 in input field1, second input field should be a week after date 01/07/2009.
    How do we handle this ?
    rgds
    Vara

    Hi,
    Select the InputField1 and goto Script Editor and select the Event type: "Change" and Language as "FormCalc" and in editor write the below code:
    InputField2.rawValue = Num2Date(IsoDate2Num($.rawValue)+7,"DD/MM/YYYY")
    Based on your requirement change the display pattern of both the date fields in the object pallette.
    Note: Make both the fields as Date/Time Fields and not TextFields.
    Regards
    Pradeep Goli

  • Dynamic Input field creation - issue with bindValue in loop

    Hello,
    I am creating context node elements at runtime. My node looks like this -
    LocalNode
      Question
      Answer
    for(int i;i<wdContext.nodeLocalNode.size();i++)
    wdContext.nodeLocalNode().setLeadSelection(i);
      IWDTextView TV1 = (IWDTextView)view.createElement(IWDTextView.class,"TV"+i);
      TV1.setText(wdContext.currentLocalNodeElement().getQuestion());
       mainGrp.addChild(TV1);
       IWDInputField IP1 = (IWDInputField)view.createElement(IWDInputField.class,"TE"+i);                             
      IP1.bindValue("LocalNode.Answer");
       IP1.setValue(wdContext..currentLocalNodeElement().getAnswer());
       mainGrp.addChild(IP1);
    Please note: Question column is the textView and Answer column is the input field
    The output should be as follows-
    Question               Answer
    Header                  None
    How Many             7
    Comments             Maybe valid
    Do you agree        Yes
    Although the text view displays correctly, the input field only shows the last record value and the output currently displays as follows-
    Question               Answer
    Header                   Yes
    How Many             Yes
    Comments              Yes
    Do you agree         Yes
    What am I doing wrong here?
    How can I bind the corresponding values to the input field in a loop?
    Regards,
    Nisha

    Hi,
    Could you please provide the code .
    Regards,
    Sunil.

  • Dynamic input fields for Doc Props in Batch Mode; Acrobat Pro 9

    I'm using Acrobat Pro 9.  I'm looking for a way for Acrobat to automatically fill/replace the Title and Subject fields of the document properties with the file name of the PDF it is processing during batch mode.  Currently I have this step set to interactive and must type the name in for each file as it is processed.  Is there a script I can use? A macro? Heck! A Hack? It would literally take weeks off of my monotonous work load as the file names are long and there are thousnds of them to be processed.
    Thanks,
    Photonogon

    If you want the file name with the path, you could add the following JavaScript:
    title = path;
    subject = path;
    If you just want the file name:
    var filename = path.split("/").pop();
    title = filename;
    subject = filename;

  • Can we do input field readonly and it will takes data only from F4

    Hi  experts,
    I want user only fill data in inputfield by F4, not manualy , can we do somwthing for that.
    Thanks & Regards
    Prashant Gupta

    Hi Prashanth,
       We can handle your requirement. I will give one example and it is working.   
        Address -  Node
         Firtst_Name-    Node  attribute    and this attribute will have DDIC search help.
       Create Input field 'FIRSTNAME' for this attribute in screen with transparent container  'TC' and bind the above context to the UI element.  Now this UI element is Context is 'ADDRESS.FIRSTNAME'.
    Now add the below code in MODIFYVIEW hook method.The below code will add search help with read only input field but for display mode again you have to disable the search help for this field. i have not written code for that.
      DATA: lo_first_name       TYPE REF TO cl_wd_input_field,
            lo_first_name_new   TYPE REF TO cl_wd_input_field,         " New input field
            lo_transp_cont      TYPE REF TO cl_wd_transparent_container. " TC container
            lo_new_container    TYPE REF TO cl_wd_transparent_container.
      DATA: lv_bound_value      TYPE string,
            lv_read_only        TYPE wdy_boolean.
       IF iv_first_time EQ abap_true.
    lo_first_name_input ?= io_view->get_element( id = 'FIRST_NAME' ).
    lo_first_name_input->set_width( '0' ).
    lv_bound_value = lo_first_name_input->bound_value( ).  "ADDRESS.FIRST_NAME"
        Create new dynamic Input Field
          CALL METHOD cl_wd_input_field=>new_input_field
            EXPORTING
              bind_value = lv_bound_value     
              id         = 'FIRST_NAME_NEW'
              read_only  = abap_true
              view       = io_view
            RECEIVING
              control    = lo_first_name_new.
        Create new dynamic Transparent Container
          CALL METHOD cl_wd_transparent_container=>new_transparent_container
            EXPORTING
              id      = 'TC_NEW'    " New container
              view    = io_view
            RECEIVING
              control = lo_new_container.
          " I used flow layout thats why i am using the flow layout
          cl_wd_flow_layout=>new_flow_layout( container = lo_new_container ).
          cl_wd_matrix_data=>new_matrix_data( element = lo_new_container ).
      " Get old field container
       lo_transp_cont ?= io_view->get_element( id = 'TC' ). 
       IF NOT lo_transp_cont IS INITIAL.
        "Using a new Transparent Container both Fields for FIRST_NAME are shown as only one Field
            cl_wd_flow_data=>new_flow_data( element     = lo_first_name_new ).
            lo_new_container->add_child( the_child = lo_first_name_new ).
            " remove the child means old FIRT_NAME
            lo_first_name ?= lo_transp_cont->remove_child( id = 'FIRST_NAME' ).
            cl_wd_flow_data=>new_flow_data( element = lo_first_name ).
            lo_new_container->add_child( the_child = lo_first_name ).
          lo_transp_cont->add_child( index      = 2
                                     the_child  = lo_new_container ).
       ENDIF.
    endif.
    Regards,
    Devi

  • How to get the co-ordinates of a dynamically created input field

    Hello Frn's
    i have created a dynamic text view . but this text view is not appearing at proper position . I want palce it infront of a dynamically created input field . how can i do this ?
    as i am thinking ...i should first of all  get info about the co-ordinates of   dynamaclly creatd input field . and with respect to these co-ordinates ...set the position of  text View .
    Please suggest  your thoughts .
    Thanks and Regards
    Priyank Dixit

    Hi,
    There is no provision in WD for getting screen coordinates and then placing the UI element.
    You to add the UI element to layout editor and based on the layout type it will add the UI element to respective position.
    I would advice not to create dynamic UI elements( instead you can create them statically and then play with visibility status through context binding ). This will be more effective way and less error prone. This is also recommended practice.
    still,For dynamic creation you can refer to following wiki:
    http://wiki.sdn.sap.com/wiki/display/WDABAP/CreatingUIElementsDynamicallyinAbapWebdynpro+Application
    regards
    Manas Dua

  • Editable / Non editable input field CELL (individually) on ALV dynamically

    Hi again,
    I need more help with an issue.
    I have an ALV table with three columns that is necessary put values into input field cell editors, but these cells should be editable or not depending of business logic. I've got make editable or non in entire ROW LEVEL (method set_read_only_fieldname( 'READ_ONLY' )., but ¿how can I set editable or non at individual cells?
    Any idea to do that?
    Regards
    Edited by: vanbelal on Mar 24, 2010 3:33 PM

    Can you paste any example source code?
    I don't know how can I bind enabled property dynamically to individual CELL, I'm setting properties to whole column.
    lt_columns = lr_column_settings->get_columns( ).
      LOOP AT lt_columns INTO ls_columns.
             if ls_columns-id = 'COLUMN1' or 'COLUMN2' or 'COLUMN3'.
              CREATE OBJECT lr_input_field
                EXPORTING
                  value_fieldname = ls_columns-id.
              ls_columns-r_column->set_cell_editor( lr_input_field ).
    Should I put business logic here? how can I set enabled or not on CELL, at this point I'm processing whole column!!
              lr_input_field->set_enabled( abap_true ).
            endif.
      ENDLOOP.
    Edited by: vanbelal on Mar 24, 2010 4:12 PM

  • How to create a dynamic entry list for an input field in VC(ce 7.1)

    Hello all,
    I have an Input field, i need to create a Dynamic Entry List for it in VC(ce 7.1).
    How can this be done.
    Thanks in Advance.
    Thanks and Regards,
    Santhosh Guptha N

    Hi Santhosh,
    You can define Dynamic entry list for Drop down list and combo box but not for input field.
    [Refer this|http://help.sap.com/saphelp_nwce10/helpdata/en/2a/28249060dd4dbc872f6266f4557364/frameset.htm] for defining entry list.
    Let me know if it helped.
    Regards,
    Dharmi

  • Dynamic enabling of input fields via radio btn in report selection screen?

    Hi there!
    I was wondering whether one can dynamically enable/disable input fields on a selection screen of a report-program.
    Or is this only possible for selection screens in dynpro-programs?
    If possible for reports - could you give an example?
    Thanx a lot.
    Andreas

    Hi,
    yes..You can dynamically disable and enable inputs fields in the selection screen..
    Check this ex..If you press the first radio button..The second input will be disabled...And vice versa..
    PARAMETERS: p_r1 RADIOBUTTON GROUP g1 USER-COMMAND usr DEFAULT 'X',
    p_r2 RADIOBUTTON GROUP g1.
    PARAMETERS: p_input1 TYPE matnr MODIF ID m1,
    p_input2 TYPE matnr MODIF ID m2.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF p_r1 = 'X'.
    IF screen-group1 = 'M2'.
    screen-input = '0'.
    ENDIF.
    ELSE.
    IF screen-group1 = 'M1'.
    screen-input = '0'.
    ENDIF.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    Thanks,
    Naren

  • Module pool to create input field dynamically.

    Hi All,
    I have a requirement in module pool programming,
    Where I have one input field,based on the value given in this input I have to get the
    input fields dynamically in the screen.
    Is it possible to achieve this?
    If yes, please do tell me the solution to approach this requirement.
    With Regards,
    S.Asha.

    Hi,
    You can use IMPORT DYNPRO / EXPORT DYNPRO.
    Please check this URL: [Import/Export dynpro not working|Import/Export dynpro not working]
    [EXPORT DYNPRO or GENERATE DYNPRO|EXPORT DYNPRO or GENERATE DYNPRO]
    Cheers,

  • Automatically fill input fields based on selection from dynamic drop down

    Hi All,
    I tried to search before posting, but i cannot find appropriate thread (maybe wrong keyword).
    My scenario:
    1. In my offline interactive form, I have:
        a.  Material Number --> drop down field with "Allow Custom Text Entry" ticked
        b.  1 execution button to call web service
        c.  Material Group - Input Field (Read Only)
    2. User will enter material number with wild card character (eg: ABC*).
        User will then click the execution button.
        Web Service in result will return all materials that match the entered material number.
        Dynamic binding will do the magic to generate the drop down list.
    3. Beside material number, web service will also return material description and material group.
        Below is the illustration:
         Material        Description       Material Group
         ABC              Material ABC               GRP01
         ABCDE        Material ABCDE          GRP02
    --- so far so good ---
    My requirement:
    Every time user select material from the drop down list, i want to auto-populate field "Material Group" (which value is also returned by web service).
    I know i need to put the script on event change of the drop down field.
    But i don't know how to read internal table returned by web service.
    Hope someone can enlighten me.
    Thanks in Advance !!!

    Solved after reading:
    1. /people/juergen.hauser2/blog/2007/09/03/accessing-data-nodes-in-sap-interactive-forms
    2. Chapter 7 of Live Cycle Designer Scripting Basics
    (http://help.adobe.com/en_US/livecycle/9.0/LiveCycle_Designer_Scripting_Basics.pdf)
    Thanks.

  • Dynamic filling of input fields in a table

    Hi,
    There are input fields in a two tables these are to be filled parallely at run time. the no of entries depend on the entires in internal table.
    If internal table has more entries, then a certain entries is filled up; say 9 times the control should be given to a new tables and the remaining entries should be filled in the input fields of other table .
    I appreciate help.

    Hi,
    Actually there is two HTML tables, each table has nine rows. if the no of entries in the internal table exceeds nine then the second table should be filled after the first HTML table has filled with all the nine entries.
    Both tables contains same input fields. How to fill both tables dynamically. I think now it makes sense.

  • Dynamically applying OVS on input field

    Hi,
    I have table with drop DropDownByKey UI element in one column. In all the other columns i have input field. Now based on the value of the DropDownByKey i have to apply the OVS on the input fields of the table column.
    Now my question is how can i apply the OVS dynamically.
    I can not change the properties of attributes, so want to change them dynamically.
    Thanks,
    Reeha Verma.

    Hi,
    You can check the value of context attribute binded to dropdown(KEY) and accordingly formulate the Input structure and output table.
    It seems that you have to do the data declecration in advance for all the possible values of dropdown.
    If you want to avoid the data decleration in advance then i think you have to dynamically create the context node and attribute to acheive the functionality.
    If you have limited values in DropDown then i think you can go with data decleration otherwise please try out with Dynamic context programming.
    Thanks,
    Rahul

Maybe you are looking for

  • Creative Cloud Promotional Offer

    I received msg that I don't qualify for the CC promotional offer because there's no products associated with my AdobeID. But I have a list of products in my profile page under My Products including: Production Premium CS3  Design Standard CS3     The

  • How to create a jdialog with boxlayout

    Hi, I was trying to create a jdialog as simple as plsql login dialog. In attempt to learn how should I proceed I downloaded and modified BoxLayoutDemo.java that is available from java's swing tutorial site: * BoxLayoutDemo.java is a 1.4 application t

  • Rounding Off in DecimalFormat

    Hi, I have the following code - DecimalFormat dnf = new DecimalFormat("0.000E0"); System.out.println(dnf.format(4999888888L)); the output i m getting is 5.000E9 I want the output to be 4.999E9 (i.e. i want do not the rounding off) how can i do this?

  • Logic migration problem

    Migrated from a 17" macbook pro running  OS X 10.5.8 to a Mac Mini running OS X 10.8.2 Logic came up in the tool bar grayed out. When opening I get this message... You can't use this version of the application "Logic Pro.app" with this version of OS

  • Changed activation date - no warning

    I was due to have Infinity1 activated tomorrow but on checking myBT earlier today found that the activation date had been pushed out by 11 days.  I have not had any communication from BT to let me know about the change.  I had a brief Live chat today