Populating a Field depending on the selection of a dropdownlist in adobe fo

Hi,
I am not able to populate a Text Field based on the selection of a dropdownlist in Adobe forms in WebDynPro.
Pls let me know how to do it????
Thanks in Advance,
Sameer

Hi Sameer,
There is one way to achieve this.
You can write some javascript on event of selecting value in dropdown.
Open your PDF form.Then goto menu "palettes" and then choose "script editor".
Now, select your dropdwon element.
It will show some line of scripting in Javascript of Formcalc.
Here, you can write your JAVA script for displaying values in textview.
If it helps then don't forget to award points
Regards,
Bhavik

Similar Messages

  • ALV GRID WITH SUMMATORIES DEPEND OF THE SELECTION

    Hi Experts.
    I have a form, in which depend of the selection, I show to user a fieldcatalog with the data (query) that the user want to see in that moment ...
    The problem is that the user want to see one field (amount, sum total (money) ...etc) with summatories, group by date, person...or other depend of the selection he has done in the select dynpro.
    How can I do it when I show the ALV??... The user don't want to use the option to make a lot of select dispositions in the ALV..., he want to see the disposition of the data depend the selection he do in the select dynpro.
    I see when I create the fieldcatalog to the ALV GRID, there is a field ... do_sum, I have marked it, in the field which I want to do a summatory but don't do anything in the ALV when display.... and don't find how indicate in the fieldcatalog the field which I wan't group by...
    Other options, that I have thought it's to make a lot of dispositions in ALV, and when display de ALV try to get the disposition that I want ... but I haven't did it.
    Thanks.

    Hi all,
    it is maybe too late to answer this question but I hope it can serve someone who bumps into this problem in the future.
    I managed to activate the functions with the following code:
    DATA alv       TYPE REF TO cl_salv_table.
    DATA: lo_functions TYPE REF TO cl_salv_functions_list.
    DATA: lo_funcs TYPE salv_t_ui_func.
    DATA: lo_func TYPE salv_s_ui_func.
      cl_salv_table=>factory(
           IMPORTING r_salv_table = alv
           CHANGING  t_table      = <fs> ).
    *   Default Functions
         lo_functions = alv->get_functions( ).
         lo_funcs = lo_functions->get_functions( ).
    * loop through all functions and enable them and set them visible.
    * here u can also activate separate functions if you check the name with the method from r_function (CL_SALV_FUNCTION->GET_NAME)
         LOOP AT lo_funcs INTO lo_func.
           lo_func-r_function->set_enable( value = 'X' ).
           lo_func-r_function->set_visible( value = 'X' ).
         ENDLOOP.
         alv->display( ).
    Cheers,
    Ilina

  • Problem in populating 2nd combo box depending upon the selection of 1st

    Hi all,
    I have 2 combo boxes on my jsp page ,say continent and country . obviously the data in 2nd box is dependant on selection made in the 1st . I'm using MySQL with tomcat 5.0.7 . and JSP.
    The first combo box in one form and the 2nd in another. After submitting first i 'm populating the second combo also.
    But the problem is after submitting the first form the page gets refreshing and i can't see the selected continent in the first combo box.
    The javascript code used follows:
    function callCapture(form)
    var item = continent.cmbContinent.selectedIndex;
    document.country.hidContId.value=continent.cmbContinent.options[item].value;
    document.continent.action="country.jsp?hidContId="+document.country.hidContId.value+"&buttName="+document.country.buttName.value+"";
    document.continent.target="_self";
    document.continent.submit();
    some one pls help me asap !

    Hi Reegz,
    that's what i'm also doing and i'm successfull till populating the second combo box but how do I keep the previous inputs on the page and reload the page based on the change of a selection box?
    Is their any mistake in the javascript code:
    Here is the code:
    function callCapture(form)
    var item = continent.cmbContinent.selectedIndex;
    document.country.hidContId.value=continent.cmbContinent.options[item].value;
    document.continent.action="country.jsp?hidContId="+document.country.hidContId.value+"&buttName="+document.country.buttName.value+"";
    document.continent.target="_self";
    document.continent.submit();
    Pls help me...

  • How to pass the text from a table to the field label on the selection scre

    hi guru's
      i have requirement were in i have to pass the text from a table as field label for
       a input field on the selection screen.
      EX:    selection screen  
                (xxxxxxx )  __________   
                field label    
      please help 
    regards,
    vara

    hi all,
    can you please check the code, and suggest am i doing wrong any were.
    types: xtab(200).
    data : ttab type table of xtab,
    w_so type xtab.
    data: routine(32) value 'TEMP_ROUTINE',
    program(8),
    message(128),
    line type i.
    AT SELECTION-SCREEN OUTPUT.
    select field text DATA_ELEMENT from zauthgrptxt into table t_fieldlabel where STARALLOWED EQ c_asteriks.
    DESCRIBE TABLE t_fieldlabel LINES N.
    w_so = 'REPORT ZTEMP_PROGRAM.'.
    append w_so to ttab.
    w_so = 'FORM TEMP_ROUTINE.'.
    append w_so to ttab.
    loop at t_fieldlabel.
    w_field = t_fieldlabel-field.
    CONCATENATE 'SELECT-OPTIONS: ' ' P_' w_field zspace ' FOR ' ' T_FIELDLABEL-' w_field ' NO INTERVALS NO-EXTENTION.' INTO w_so.
    append w_so to ttab.
    endloop.
    w_so = 'ENDFORM.'.
    append w_so to ttab.
    generate subroutine pool ttab name program
    message message
    line line.
    if sy-subrc = 0.
    perform (routine) in program (program).
    else.
    write:/ Message.
    endif.
    The sy-subrc = 4. nothing is coming into 'program' at generate subroutine pool
    very urgent requirement please help
    thanks,
    vara

  • Fields sequence in the select statement

    experts, help needed
    itab has following fields,
    vbeln posnr erdat erzet vkorg vtweg
    kunnr posnr matnr bmeng status.
    i have written like this
    SELECT avbeln aerdat aerzet avkorg a~vtweg
    akunnr bposnr b~matnr
    FROM vbak AS a INNER JOIN vbap AS b
    ON avbeln = bvbeln
    INTO TABLE itab1
    FOR ALL ENTRIES IN itab
    WHERE a~vbeln = itab-vbeln.
    endif.
    but my internal table fields sequence are different. so i changed the posnr field in the select query to the second place.
    SELECT avbeln  bposnr  aerdat aerzet avkorg avtweg
    akunnr bmatnr
    FROM vbak AS a INNER JOIN vbap AS b
    ON avbeln = bvbeln
    INTO TABLE itab1
    FOR ALL ENTRIES IN itab
    WHERE a~vbeln = itab-vbeln.
    endif.
    so in above two select statements which one is right , according to coding standards,?
    in this case do i need to use the into corresponding fields addition because i am not selecting bmeng , status fields into the itab?

    Hi,
    Of the two select statements,
    SELECT a~vbeln b~posnr a~erdat a~erzet a~vkorg a~vtweg
    a~kunnr b~matnr
    FROM vbak AS a INNER JOIN vbap AS b
    ON a~vbeln = b~vbeln
    INTO TABLE itab1
    FOR ALL ENTRIES IN itab
    WHERE a~vbeln = itab-vbeln.
    is the better one. I,e specifyiig the field sequence exactly as you have in the internal table. Even according to standards, this is better.
    If you are chaning the sequence of select fields, then you have to use the INTO CORRESPONDING FILEDS OF TABLE addition, so that the system itself finds the relevant order of fields and fill them automatically.
    This is a additional work which has to be performed by the compiler.
    Thus its better to use INTO CORRESPONDING FILEDS OF TABLE only when you are using select * , or when you are not sure of the field sequence inthe table.
    Regards,
    Vik

  • How do I populate form fields depending on the value of a list box?

    Hi,
    Can anybody help me out here?
    I'm creating a form where I'm needing to populate a number of fields (first name & last name) based on the value of a list box (values are 1,2,3,4,5,6) ie: if 3 is selected 3 sets of the first name and last name fields populate on the page for the user to fill out.
    At this stage it is just a prototype site and there is no database running behind it.
    Thanks
    Hayden

    This can only be solved if you have javascript coding skills.  Without knowing more about what you want to do and why, I can only show you a skeleton of how your code should look, but consider this form select field -
    <select onchange="populateForm()">
    When a value is selected from that list, the "onchange" event will fire, and will call the javascript function called populateForm().  You need to define a function by that name somewhere on the page -
    <script type="text/javascript">
    //<![CDATA[
    function populateForm(value) {
         if value >0 { document.getElementById("fieldID").style.display='block' }
         if value >1 { .... }
         etc.
    //]]>
    </script>
    The page itself would need to have ALL the fields already in the form, but with those that are to be revealed set to a style of display:none.
    Obviously, this is a skinny skeleton.  Each test in the function would reveal a new field on the page by changing its display style from "none" (which is how they should be set in the code) to "block".  You would need a separate function for each type of field that might need to be chosen.
    If this is well over your head, then I'm afraid you will be out of luck for this particular approach....

  • Activate input for a field depending on the input in another field

    Hy gurus,
    A have a report with select option.
    In the select option I'd like to have the following:
    I have a checkbox ,if it is flagged the input for another field should be made possible.
    The problem is,to activate it right after I flag the checkbox (without having to press ENTER)
    Do you have suggestions?
    Thanks,Christian

    Hi Christian
    It's the same, check my sample in the last my answer.
    If you want to protect a SELECT-OPTION or more than one parameter it should use the group.
    SELECT-OPTIONS: S1 FOR SY-DATUM MODIF ID AAA,
                    S2 FOR SY-UNAME MODIF ID BBB
    PARAMETERS: p1  MODIF ID AAA,
                p2  MODIF ID BBB.
    PARAMETERS: p_ck AS CHECKBOX USER-COMMAND aaa.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_ck = 'X'.
          IF screen-group1 = 'AAA'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ELSE.
          IF screen-group1 = 'BBB'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    Max

  • Translation of field name at the selection screen

    Hi,
    I need to translate one field at the selection srcreen.
    Now apperas only technical name of that field.
    I tried in Se63, se38, se41, se80

    Hi,
    In SE38 follow
    GOTO -> Text elements -> Selection texts.
    Here you can set the desired names.
    Thanks,
    Sri.
    Edited by: Sri on Jul 9, 2009 4:59 PM

  • How to disable field based on the selected value

    Hi everyone,
    I have "employee" table,
    it contains the following field,
    emp_name
    emp_designation
    Category
    YearsHere the "category" is the select list value which has the following values in select list,
    Fresher
    Experienced,
    when the value :Fresher" is selected for "category" then the "Years" field should be disabled.
    I tried the following dynamic action ,
    Name:Disable_year
    sequence:20
    Event:Change     
    Selection Type:Item
    Item(s):Category
    Condition:equal to
    value:Fresher
    Fire When Event Result Is:TRUE
    selection type:P1_YEARBut it doesnt work.
    can anyone give alternate solution?
    Thank you.
    Regards,
    gurujothi

    Name:Disable_year
    sequence:20
    Event:Change     
    Selection Type:Item
    Item(s):Category
    Condition:equal to
    value:FresherTry return value instead of this display value(Fresher) of select list
    Fire When Event Result Is:TRUE
    selection type:P1_YEARIn your above dynamic action, where is the disable action?

  • How to populate the second combo box by depending on the selection in 1st?

    I have two combo boxes, both of data in the lists come from the database. The list in the second will be changed when the selection is changed in the first one. I am trying to do query again in the ActionPerform function, unfortunately the list in second one doesn't change.
    I am learning Swing now, I really appreciate for any suggestions!
    Thanks

    camickr,
    I have another question for the tab pane. Now I have to remove the tab and add tab for updating the tab pane. I wonder if there is other way to do it. I really appreciate your help!
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import org.hibernate.Session;
    import org.hibernate.SessionFactory;
    import org.hibernate.Transaction;
    import org.hibernate.cfg.Configuration;
    import java.net.URL;
    import java.util.Iterator;
    import java.util.List;
    import java.util.StringTokenizer;
    public class test_tabpane extends JPanel implements ActionListener {
         private JPanel MainPane;
         private JComboBox combobox2;
         private JTabbedPane TabbedPane;
         private JComponent panel1;
         private JComponent panel2;
         private String [] resources ={"ZZAA", "ZZAB", "ZZAC", "ZZAD"};
         private String selected_resource = "";
         public test_tabpane() {
              MainPane = new JPanel();
            MainPane.setOpaque(true);
            MainPane.setPreferredSize(new Dimension(600, 70));
            MainPane.setBorder(BorderFactory.createRaisedBevelBorder());
            combobox2 = new JComboBox(resources);
            combobox2.addActionListener(this);
            MainPane.add(combobox2);
            add(MainPane);
            UIManager.put("TabbedPane.tabInsets", new Insets(5,5,5,5));
            TabbedPane = new JTabbedPane();
            panel1 = makeTextPanel(resources[0]);
            TabbedPane.addTab("Language/Notes", panel1);
            panel2= makeTextPanel(resources[0]);
            TabbedPane.addTab("Relations/Coverage", panel2);
            TabbedPane.setPreferredSize(new Dimension(600, 340));
            TabbedPane.setFont(new Font("ariel", Font.BOLD, 11));
            TabbedPane.setSize(600, 340);
            add(TabbedPane);
         protected JComponent makeTextPanel(String text) {
            JPanel panel = new JPanel(false);
            JLabel filler = new JLabel(text);
            filler.setHorizontalAlignment(JLabel.CENTER);
        //    panel.setLayout(new GridLayout(1, 1));
            panel.add(filler);
            return panel;
         public void actionPerformed(ActionEvent e) {
                   JComboBox cb = (JComboBox)e.getSource();
                   if ("comboBoxChanged".equals(e.getActionCommand()))
                   //   if ("comboBoxEdited".equals(e.getActionCommand()))
                   //     System.out.println("in action:" + (String)cb.getSelectedItem());
                        String selected_string = (String)cb.getSelectedItem();
                        StringTokenizer st = new StringTokenizer(selected_string, "|");
                        selected_resource = st.nextToken();
                        updateTabbedPanes(selected_resource);
        protected void updateTabbedPanes(String selected_string) {
             panel1 = makeTextPanel(selected_string + " in Language/Notes");
             int index = TabbedPane.indexOfTab("Language/Notes");
             TabbedPane.remove(index);
             TabbedPane.insertTab("Language/Notes", null, panel1, "", index);
             panel2 = makeTextPanel(selected_string + " in Relations/Coverage");
             index = TabbedPane.indexOfTab("Relations/Coverage");
             TabbedPane.remove(index);
             TabbedPane.insertTab("Relations/Coverage", null, panel2, "", index);
        * Create the GUI and show it.  For thread safety,
        * this method should be invoked from the
        * event-dispatching thread.
       private static void createAndShowGUI() {
               JFrame.setDefaultLookAndFeelDecorated(false);
           //Create and set up the window.
             JFrame frame = new JFrame("test");
           frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
           //Create and set up the content pane.
           JComponent ContentPane = new test_tabpane();
           ContentPane.setOpaque(true); //content panes must be opaque
           frame.setContentPane(ContentPane);
           //centers a frame onscreen // it is a problem for wide screen
           //   frame.setLocationRelativeTo(null);
           frame.setLocation(300, 120);
           frame.setSize(1024, 768);
           frame.setExtendedState(java.awt.Frame.MAXIMIZED_BOTH);
           //Display the window.
          frame.pack();
           frame.setVisible(true);
          * @param args
          * This is main function.
         public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

  • How to mask a particular field depending on the user for a protected pdf?

    Hi,
    I have a requirement of showing a particular fiels data to only one user and to hide that critical data to others. For example, suppose I have two users viz, Primary user and Secondary user. I have a field named UID in my protected pdf form which has some critical data. I want only my Primary user enter and view the information entered in the UID field. When the Secondary user opens the document using his credentials, he should not be able to view the data in the UID field. It should be displayed in astrix as in a password field. Can anyone help me how to acheive this for a protected document?
    Thanks and Regards,
    Maria Johni

    It is possible. You should be having a field in your XSD schema for the username. Bind the username to a hidden field in your form.
    In the designer, in form initialize event,
    write the code: if hiddenfield.rawValue == "person A"
                                 subform1.presence = "hidden";
                           if hiddenfield.rawValue == "person B"
                                 subform2.presence = "hidden";
                                 subform1.presence = "visible"   }
    In your process, when your moving from one step to other step, update the uname accordingly and the form will respond according to the username.
    Regards,
    Chaitany

  • Radio button field issue in the selection screen

    Hi Folks,
    I am using an LDB(Logical Data Base) of 'PNP' in my custom report and the LDB has a selection screen with different parameters .
    My concern is, the selection screen has 6 Radio buttons from which if I select one from the first 5 Radio buttons the Dates highlighted should clear off, and when I click on Radio Button 'Other Period' the dates should display as shown .
    Note: I am using the ECC 4.6C
    Please suggest any solution to achieve this functionality .
    Thanks,
    Sujay.V

    Hi,
    Consider your radio buttons looks like below:
    PARAMETERS: RADIO1 RADIOBUTTON GROUP R1 MODIF ID RA1, "Today
                               RADIO2 RADIOBUTTON GROUP R1 MODIF ID RA2, "Current Month
                               RADIO3 RADIOBUTTON GROUP R1 MODIF ID RA3, "Current Year
                               RADIO4 RADIOBUTTON GROUP R1 MODIF ID RA4, " Up to today
                               RADIO5 RADIOBUTTON GROUP R1 MODIF ID RA5, "From today
                               RADIO6 RADIOBUTTON GROUP R1 MODIF ID RA6. "Other period
    AT SELECTION-SCREEN.
    IF RADIO1 EQ 'X' OR RADIO2 EQ 'X' OR RADIO3 EQ 'X'
        OR RADIO4 EQ 'X' OR RADIO5 EQ 'X'.
         CLEAR: "Add your date variables here
    ELSEIF RADIO6 EQ 'X'
         ADD Logic for your date variable here
    ENDIF.
    Hope this will help you .
    regards,
    Rajesh Sadula.

  • Automatically update text field depending on the in select list value

    I have got 2 tables. Table A (Employee Personal Detail), Table B (Employee Academic detail). Employee no is common field between two tables).
    I have created interactive report with form on table b using in-built templates. I have added text box on form to display employee name which is stored in table A. I want to automatically display employee name depending upon value in employee no field on form. I know I can write query to get value in employee name field. It gives me error when employee no is blank. How to handle error?

    Sagar,
    For the employee name value to change according to the emp_no, your page needs to get submitted. can you use a select list with submit for emp_no? And then use the PL/SQL mentioned above to run on page submit?
    I'm not sure but I guess you can also achieve this in Ajax. May be someone expert in that could help.

  • Create a form that can either end in "Submit" or "Process Payment" depending on the selected fields

    I have designed a Golf Tournament Registration form that includes a multiple choice field with 4 payment options
    1) Pay Online
    2) Mail a Check
    3) Direct Deposit
    4) Other
    When Option 1 is selected, the form should redirect the registee to the PayPal payments page that has already loaded personal information from the earlier fields
    When Option 2, 3, & 4 are selected, the form should redirect the registee to applicable information about how to proceed
    HOWEVER: the submission button at the bottom of Options 2-4 still reads "Proceed to Payment" which is confusing for golf participants who have elected to mail a check.
    *Is there a way to customize the submission button to elimate this possible confusion?

    So I see that I am not the only one with this question and that part of my question has been answered here: http://forums.adobe.com/message/4399918#4399918#4399918
    HOWEVER: is there no way to change the wording on the PayPal "Proceed to Checkout" button?  I just want it to say "Submit"

  • Forms - Submitting to different recipients depending on the selection

    I have a form which I need to submit to different email
    addresses depending on an option selected in one of the dropdown
    boxes. This MUST be done on a client-side form.
    Any ideas on how to go about this?
    I want to avoid creating a different form for every scenario.
    Thankyou

    Of course, it completely fails if the computers have js
    disabled. For an
    environment where there is no access to server scripting, I'd
    guess that
    this is also a likely configuration.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "digitalus media" <[email protected]> wrote
    in message
    news:edqhi7$qnu$[email protected]..
    > You can set the url or address of a hyperlink with
    javascript.
    >
    > Try this:
    >
    >
    > <html>
    >
    > <head>
    > <script type="text/javascript">
    > function myHref(email){
    > document.getElementById('myLink').href='mailto:'+email;
    > }
    > </script>
    > </head>
    >
    > <body>
    >
    > <p>Select a recipient</p>
    >
    > <form>
    > <select name="select"
    onchange="myHref(this.value);">
    > <option
    value='[email protected]'>Administrator</option>
    > <option value='[email protected]'>Bill</option>
    > </select>
    > </form>
    >
    > <p><a id="myLink"
    href="mailto:[email protected]">send message</a></p>
    >
    > </body>
    >
    > </html>
    >

Maybe you are looking for