Retaining List Box Value in Form Bean

Hi All,
I want to retain the List Box populated using the Form bean.
Right now when i display the List Box in a page and submit the Form and come back
to same page again I do not get List Box populated.
In the JPF I do not get the all values of the List Box. I only get the selected
value of the ListBox.
Thx
Hitesh

Hi sudha,
1. We can also use the FM
   F4IF_INT_TABLE_VALUE_REQUEST
  (here u will be able to capture the value)
2.
  DATA : BEGIN OF itab OCCURS 0,
         bukrs LIKE t001-bukrs,
         butxt LIKE t001-butxt,
         END OF itab.
  SELECT * FROM t001 INTO CORRESPONDING FIELDS OF TABLE itab.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'BUKRS'
      value_org       = 'S'
      dynprofield     = 'MYLISTTAB'
      dynpprog        = sy-repid
      dynpnr          = sy-dynnr
    TABLES
      value_tab       = itab
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.
3. In pai module,
   use the code :
PROCESS ON VALUE-REQUEST.
  field mylistab module abc.
where field = your field name
      abc = module name (which contains the above coding in step 2)
regards,
amit m.
Message was edited by: Amit Mittal

Similar Messages

  • How to populate values in List Box in Adobe form

    Hi,
    How to populate values in List box in adobe forms?
    Thanks
    RB

    if you want to display a fixed values in the dropdown you can use list box ui and can specify values there
    or if u want to display values from the context node of the webdynpro
    1. Drag and drop a Value Help Drop-down List element from the Web Dynpro Library tab to the Body Pages pane.
    2. Drag and drop your node from the Data View tab onto it. This action binds the layout element to the corresponding node.
    with regards
    shanto aloor

  • Multiple-Selection List Box Values in Multiple Columns

    I am using InfoPath 2010 with SharePoint 2013. I have a form with a multiple-selection list box which has A LOT of choices. Instead of displaying all the choices in one column, is it possible to display the values of my list box in several
    columns? 

    Hi Andrea,
    I agree with Brij, one multiple-selection list box is associated with one list field, we cannot use the one multiple selection list box value for other multiple selection list boxes, we need to create multiple choices for each multiple-selection list box
    control in InfoPath form.
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to catch List box value

    Hi gurus
    I have set list box value through vrm_set_value and in the screen level it's working fine
    In the custom  program I need to fetch data from table using that selected list box value , but  its always coming blank  .
    please help me how to catch that list box value in the program .
    Thanks

    This is the code
    *************SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS    :  P_bukrs  TYPE bukrs    OBLIGATORY  ,                        " Company Code
                     p_psc    TYPE psc_name OBLIGATORY ,
                     p_monat  TYPE MONAT    AS LISTBOX VISIBLE LENGTH 5 OBLIGATORY ,  " Quarter
                     p_gjahr  TYPE gjahr    DEFAULT sy-datum+0(4) OBLIGATORY .                        " Year
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS    : P_KIND      AS CHECKBOX USER-COMMAND abc ,                          " Check Box
                    P_prcent(6) TYPE P DECIMALS c_val_three  ,                    " Take in kind percentage
                    p_prod      TYPE PSA_PRODUCT  AS LISTBOX VISIBLE LENGTH 10  .   " Take in kind product
    SELECTION-SCREEN END   OF BLOCK b2.
         A T   S E L E C T I O N    S C R E E N                          *
    AT SELECTION-SCREEN on BLOCK b1 .
    Validate Company Codes.
      PERFORM sub_validate_com_code.
    Validate PSC
    AT SELECTION-SCREEN on VALUE-REQUEST FOR p_psc .
      PERFORM sub_validate_psc.
    Validate Quarter
      PERFORM sub_validate_quarter .
    AT SELECTION-SCREEN on BLOCK b2 .
    Validate Take in kind percentage
      PERFORM sub_validate_percnt .
    Validate Take in kind Percentage
      PERFORM sub_prod_disp .
    form sub_prod_disp .
    populated internal table lt_prod_val .
    LOOP AT SCREEN.
            CALL FUNCTION 'VRM_SET_VALUES'
              EXPORTING
                id              = 'p_prod'
                values          = lt_prod_val
              EXCEPTIONS
                id_illegal_name = 1
                OTHERS          = 2.
            IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
          ENDLOOP.
    in start of selection the p_prod is always coming initial .

  • How to create dropwdown list box values and checkbox in screen painter.

    Hi Experts,
    I need to know the creation of dropdown list box values and the checkbox to use in screen painter.
    I have 3 values to insert as:-
    INR,USD,EUR
    if user selects INR/USD/EUR, then it will store into the table field.
    And also want to know the checkbox functioning in screen painter, i.e. what should we write in PBO/PAI.
    I have found some sites to get knowledge, but didnot found anything that relates to my questions.
    So please help me!
    Thanks,
    Deepanshu

    Hi,
    For dropdown list box in Screen create a input field and choose Drop down by index.
    To populate the values write the logic in PBO as follows
    TYPE-POOLS : VRM
    DATA : field_id TYPE VRM_ID ,
                values  TYPE VRM_VALUES,
                 value   LIKE LINE OF values.
    PROCESS BEFORE OUTPUT
    MODULE list_fill_100
    MODULE list_fill_100 OUTPUT
    SELECT f1 f2 f3  FROM tab WHERE condition.
    value-KEY = f1.
    value-TEXT = f2
    APPEND value TO VALUES
    CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = 'i/o screen field'
                values = values.
    ENDMODULE.

  • Passing values to form bean string array from dynamic added textboxes

    Hi,
    I am unable to pass values to form bean string array from a jsp in which I have incorporated dynamically adding of textboxes in javascript.
    I have given add/delete row option in the jsp. If there is single row, this is working fine. But after adding a row, I am not able to either do any validations on added textboxes or pass the values to the String array form bean variable.
    code snippet:
    var cell6 = row.insertCell(4);
    var element5 = document.createElement("input");
    element5.type = "text";
    element5.className = "formtext1";
    element5.size = "5";
    element5.value = "00.00";
    element5.name= "qty"; // this is a string array of the form bean.
    element5.onchange=function() {checkNumeric(this);};
    cell6.appendChild(element5);
    <html:text styleClass="formtext1" property="qty" value="" size="5" styleId="qty" onchange="checkNumeric(this)"/></td>
    form bean declaration
    private String[] qty; Please help.
    Edited by: j2eefresher on Jan 12, 2010 11:23 PM

    Shivanand,
    There's no need to post that much code when you could create a very short test case that demonstrates only the problem you are having.
    You're using &NAME. notation on something that isn't a page or application item. You can't reference PL/SQL variables that way (or any other way) outside the PL/SQL scope. For your situation, you could create a page item named P55_DOCID and assign it a value in the PL/SQL process (:P55_DOCID := DOCID;), then reference &P55_DOCID. in HTML areas like the success message.
    Scott

  • On button click of Infopath forms select multi select list box values...

    Hi,
    We have multi select list box on one of the info path forms. We have placed on button on this form. If user clicks on this button we want to select some of the values in Multi select list box (check box).
    Is it possible if yes how can we achieve it?
    Thanks.
    Regards,
    Amit Chhatbar

    Hi Amit,
    From your description, you would like to check items in a multi-selection box when a button is clicked.
    I’d recommend you make use of rules in InfoPath form, i.e. when button is clicked, then set a field’s value.
    However, if you are using multi-selection box, then you could only set the value of one item at a time. If you want to select several items at once, then we could use code. For more information:
    http://www.bizsupportonline.net/blog/2009/07/understanding-multiple-selection-list-box-infopath/
    http://www.bizsupportonline.net/infopath2007/programmatically-select-all-items-multi-select-list-box.htm
    If you are using several check boxes to replace multi-selection box, then it will be more easy. The rule could be that when this button is clicked, set a field’s value (check box field) to true and repeat it.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • List Box Values Order

    Hi,
    I have Developed List Box for Period. And in the Selection Screen it is showing the values
    01/2007
    02/2007
    03/2007
    04/2007
    05/2007
    06/2007
    07/2007
    08/2007
    09/2007
    01/2008
    02/2008
    03/2008
    04/2008
    05/2008
    06/2008
    07/2008
    08/2008
    09/2008
    In the selection screen We have Customize local Layout Button in Standard Tool bar...
    In Customize local Layout Button>options->Expert Tab-->
    By selecting sort items by key Check box...The Dropdown list becomes comes like this.
    01/2007
    01/2008
    02/2007
    02/2008
    03/2007
    03/2008
    04/2007
    04/2008
    05/2007
    05/2008
    06/2007
    06/2008
    07/2007
    07/2008
    08/2007
    08/2008
    09/2007
    09/2008
    Now, What i want is Eventhough i select In Customize local Layout Button>options->
    Expert Tab-->By selecting sort items by key Check box
    The output should come like this.
    01/2007
    02/2007
    03/2007
    04/2007
    05/2007
    06/2007
    07/2007
    08/2007
    09/2007
    01/2008
    02/2008
    03/2008
    04/2008
    05/2008
    06/2008
    07/2008
    08/2008
    09/2008
    Edited by: Venkat on Dec 16, 2008 1:02 PM

    Could you please help me in this Regard?
    This is the code which i have written
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(10) text-002 FOR FIELD p_perid1.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS:p_perid1(7) TYPE c AS LISTBOX VISIBLE LENGTH 10 OBLIGATORY.
    SELECTION-SCREEN COMMENT 45(4) text-003 FOR FIELD p_perid2.
    SELECTION-SCREEN POSITION 50.
    PARAMETERS:p_perid2(7) TYPE c AS LISTBOX VISIBLE LENGTH 10 OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
    PERFORM get_period.
    *&      Form  get_period
    *       text
    FORM get_period .
      DATA:v_year1 TYPE bdatj,
           v_year2 TYPE bdatj,
           v_year3 TYPE bdatj.
      v_year1 = sy-datum+0(4) - 1.
      v_year2 = sy-datum+0(4).
      v_year3 = sy-datum+0(4) + 1.
      DATA:it_periods1 TYPE TABLE OF periods,
           it_periods2 TYPE TABLE OF periods,
           it_periods3 TYPE TABLE OF periods.
      DATA:wa_periods1 TYPE periods,
           wa_periods2  TYPE periods,
           wa_periods3  TYPE periods.
      TYPES:BEGIN OF typ_perid,
            period(7) TYPE c,
            END OF typ_perid.
      DATA:it_perid TYPE TABLE OF typ_perid,
           wa_perid TYPE typ_perid.
      CLEAR:  wa_periods1,wa_periods2,wa_periods3,wa_perid,
              pername,pervalue.
      REFRESH:it_periods1,it_periods2,it_periods3,perlist.
      CALL FUNCTION 'G_PERIODS_OF_YEAR_GET'
        EXPORTING
          variant             = 'K4'
          year                = v_year1
        TABLES
          i_periods           = it_periods1
        EXCEPTIONS
          variant_not_defined = 1
          year_not_defined    = 2
          OTHERS              = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION 'G_PERIODS_OF_YEAR_GET'
        EXPORTING
          variant             = 'K4'
          year                = v_year2
        TABLES
          i_periods           = it_periods2
        EXCEPTIONS
          variant_not_defined = 1
          year_not_defined    = 2
          OTHERS              = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION 'G_PERIODS_OF_YEAR_GET'
        EXPORTING
          variant             = 'K4'
          year                = v_year3
        TABLES
          i_periods           = it_periods3
        EXCEPTIONS
          variant_not_defined = 1
          year_not_defined    = 2
          OTHERS              = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      SORT:it_periods1 BY datab,
           it_periods2 BY datab,
           it_periods3 BY datab.
      LOOP AT it_periods1 INTO wa_periods1.
        CALL FUNCTION 'CONVERSION_EXIT_PERI_OUTPUT'
          EXPORTING
            input  = wa_periods1-datab+0(6)
          IMPORTING
            output = wa_perid-period.
        APPEND:wa_perid TO it_perid.
        CLEAR:wa_perid,wa_periods1.
      ENDLOOP.
      LOOP AT it_periods2 INTO wa_periods2.
        CALL FUNCTION 'CONVERSION_EXIT_PERI_OUTPUT'
          EXPORTING
            input  = wa_periods2-datab+0(6)
          IMPORTING
            output = wa_perid-period.
        APPEND:wa_perid TO it_perid.
        CLEAR:wa_perid,wa_periods2.
      ENDLOOP.
      LOOP AT it_periods3 INTO wa_periods3.
        CALL FUNCTION 'CONVERSION_EXIT_PERI_OUTPUT'
          EXPORTING
            input  = wa_periods3-datab+0(6)
          IMPORTING
            output = wa_perid-period.
        APPEND:wa_perid TO it_perid.
        CLEAR:wa_perid,wa_periods3.
      ENDLOOP.
      LOOP AT it_perid INTO wa_perid.
        pervalue-key  =  wa_perid-period.
        pervalue-text = wa_perid-period.
        APPEND pervalue TO perlist.
      ENDLOOP.
      pername = 'P_PERID1'.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = pername
          values          = perlist
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION 'CONVERSION_EXIT_PERI_OUTPUT'
        EXPORTING
          input  = sy-datum+0(6)
        IMPORTING
          output = v_period1.
      pername = 'P_PERID2'.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = pername
          values          = perlist
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      p_perid1 = p_perid2 = v_period1.
    ENDFORM.                    " GET_PERIOD

  • Populating fields based on list box values

    I have created an application based off of a table and so the 1st page is the actual report and the 2nd page is the data entry form. I have changed the form elements (like text box to select list) etc.
    I need to have (2) text box fields populated based on the value from the 2nd select list box. I created a pl/sql page process that will check the value of the select list and assign values to the text boxes. This is triggered when a POPULATE button is pressed.
    When I select a truck number in the select list - nothing happens and the original select list values get reset back to original. There is another button used in order to insert the data so that's why I figured I needed to add another button to trigger the population of the text boxes from a table. Here is my pl/sql page process used to populate:
    BEGIN
    SELECT dr1_name, dr2_name
    INTO
    :P2_DRIVER_1, :P2_DRIVER_2
    FROM
    active_drivers a
    WHERE
    :P2_DRIVER_CODE = a.code;
    END;
    It is set to fire on submit - before computations and validations.
    Regards,
    Jeff

    Not sure if this is the best way but it works for me……
    Make P2_DRIVER_CODE be a form element of Select List with Submit
    Create 2 items, P2_DRVR1 and P2_DRVR2, of form element Hidden
    Edit the P2_DRIVER_1 item. In the source region enter :P2_DRVR1 in Post Calculation Computation.
    Edit the P2_DRIVER_2 item. In the source region enter :P2_DRVR2 in Post Calculation Computation.
    Create a page rendering computation for item: P2_DRVR1.
    Type: SQL Query
    Computation Point: Before Header
    Computation: SELECT dr1_name FROM active_drivers a WHERE a.code = :P2_DRIVER_CODE
    Create a page rendering computation for item: P2_DRVR2.
    Type: SQL Query
    Computation Point: Before Header
    Computation: SELECT dr2_name FROM active_drivers a WHERE a.code = :P2_DRIVER_CODE
    When an item is selected in P2_DRIVER_CODE the page will submit/refresh, causing the computations to be fired. P2_DRIVER_1 and P2_DRIVER_2 will be populated by the return of the queries in the computations respectively.
    P2_DRIVER_1 and P2_DRIVER_2 are still editable by the user (unless you define them as read only) but if you have another select list with submit on the form, if used, the page will refresh and the computation will run again overwriting what the user has entered.
    Suppose I want the user to be able to change the defaults and keep from losing them (changed back to default) in case another item submits/refreshes the page.
    Create a hidden item P2_DRIVER_CODE_CHANGE with the source of: Static Text. For the Default Value enter &P2_DRIVER_CODE. (include the period after &P2_DRIVER_CODE)
    Edit the P2_DRVR1 and P2_DRVR2 computations and in the Conditional Computations region set:
    Condition Type: Text in Expression 1 != Expression 2 (include &ITEM substitutions)
    Expression1: &P2_DRIVER_CODE.
    Expression2: &P2_DRIVER_CODE_CHANGE.
    Hope this works for you,
    Jeff

  • List box in adobe form

    I have an adobe form with a bunch of list boxes.  For each list box, I don't want anything selected by default and do not want to put in an extra entry like 'select an item' since I need these to be required fields.  So I would like nothing selected by default but force the user to pick an item from the list.  What is the easiest way to do this?  thanks

    Any guidance on this would be greatly appreciated.  thx

  • List Box values

    Hello,
    I’m using a WAD report with list box. When I filter the report the values are not changed in the list box. Is there a way that the user will see only the values which shown in the report?
    Please Advice,
    Amir

    Amir,
    Change the List Box property to "Posted Values"
    Arun
    Assign points if useful

  • List box values in module pool

    Hi All,
    Plz help me out in this regard..
    I have designed a screen with 20 list boxes around and i am getting values for list boxes also.the main problem is coming when after selecting values....
    that is after selecting values if i press enter on the screen the values are over written by space..
    The default value for list boxes are space.
    how to over come this problem...Plz help me out
    Regards,
    Sudha

    PAI
    MODULE user_command_1000 INPUT.
    CASE sy-ucomm.
    WHEN 'SAVER'.
             IF zrule_date_from  > zrule_date_to.
                MESSAGE e000 WITH : 'RUN_VALIDITY_TO_DATE can not be Less'(001)
                                    'Than RUN_VALIDITY_FROM_DATE'(002).
                EXIT.
             ENDIF.
             IF zrule_date_to  < sy-datum.
                MESSAGE e000 WITH : 'RUN_VALIDITY_TO_DATE can not be Less'(003)
                                    'Than System Date.'(004).
                EXIT.
             ENDIF.
             wa_rule-zrule_date_from  = zrule_date_from.
             wa_rule-zrule_date_to    = zrule_date_to.
             wa_rule-zrule_name       = zrule_name.
             wa_rule-zrule_id         = zrule_id.
             wa_rule-zrule_pref       = zrule_pref.
    ONCATENATE 'Where'  rule_for1a  operator1a  values1a
                 andor1  rule_for2a  operator2a  values2a
                 andor2  rule_for3a  operator3a  values3a
                 andor3  rule_for4a  operator4a  values4a
                 andor4  rule_for5a  operator5a  values5a
                 andor5  rule_for6a  operator6a  values6a
                 andor6  rule_for7a  operator7a  values7a
                 andor7  rule_for8a  operator8a  values8a
                          INTO wa_rule-zrule_clause SEPARATED BY space.
    In this code andor6(7,8,etc) has (and or)
    and operator8a(7a,6a etc) has (+,- <,>) and when i do enter these two get cleared. why does this happen?
    MY PBO code is
    MODULE status_1000 OUTPUT.
      SET PF-STATUS 'RULE'.
      SET TITLEBAR  '1000'.
    ENDMODULE.                 " STATUS_1000  OUTPUT
    *&      Module  fill_lists  OUTPUT
    For Filling List Boxes
    MODULE fill_lists OUTPUT.
    **********1
        name       = 'ANDOR1'.
        value-key  = 1.
        value-text = 'AND'.
        MOVE value-text TO value-text.
        APPEND value TO list.
        value-key  = 2.
        value-text = 'OR'.
        MOVE value-text TO value-text.
        APPEND value TO list.
        PERFORM LIST_BOX.
        CLEAR LIST.
    **************2
        name       = 'ANDOR2'.
        value-key  = 1.
        value-text = 'AND'.
        MOVE value-text TO value-text.
        APPEND value TO list.
        value-key  = 2.
        value-text = 'OR'.
        MOVE value-text TO value-text.
        APPEND value TO list.
        PERFORM LIST_BOX.
        CLEAR LIST.
    ************3
        name       = 'ANDOR3'.
        value-key  = 1.
        value-text = 'AND'.
        MOVE value-text TO value-text.
        APPEND value TO list.
        value-key  = 2.
        value-text = 'OR'.
        MOVE value-text TO value-text.
        APPEND value TO list.
        PERFORM LIST_BOX.
        CLEAR LIST.
    etc.

  • List box values in mosule pool

    hi
    i am currently working with screen exit where i am populating values to a list box using customl table.
    the problem is that when i am creating new entries in custom table the old entries are also getting displayed in list box even though i have deleted previous entries.
    here is the code
    PROCESS ON VALUE-REQUEST.
    Create drop down box for listbox1
      FIELD proj-zz_list1 module create_listbox1.
    MODULE create_listbox1 INPUT.
                      TYPE DECLERATION.
      TYPES:
             BEGIN OF ty_list1,
            Data type for listbox field
               list1 TYPE zgfbm_listbox1,
             END OF ty_list1.
                      VARIABLES DECLARATION                              *
      DATA:
          Internal table used to store userfield.
            li_list1 TYPE STANDARD TABLE OF ty_list1.
                      PROCESSING LOGIC                                   *
    clear: proj-zz_list1, li_list1.
          Select listbox1 from value table into internal table
      SELECT     zz_list1
        FROM     zgfbm_list1
      INTO TABLE li_list1.
    Create listbox corresponding to field in proj table
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'PROJ-ZZ_LIST1'
          value_org       = 'S'
        TABLES
          value_tab       = li_list1
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      FREE li_list1.
    ENDMODULE.                 " create_listbox1  INPUT

    Put a breakpoint at the Select statement and checkout if the valure coming from value table
    Message was edited by:
            Chandrasekhar Jagarlamudi

  • How to retain check box value

    Hi All,
    In my application there are using a check box item..what they have done is under
    source used: Alaways,replcaing existing value in session state.
    Source type: sql query
    Now the problem is when ever they is a record in backend it is not showing selected in check list..
    But when i have tried to change Source used from Alawys to Only when then in that case i am able to see tick mark under that check box..
    But when no data exists even though the tick mark still exists...
    How do we handle such scenerio's..
    Thanks,
    Anoo..

    we don't even know the context you're in, you must give more informations about what you exactly want to do
    if you're using java servlets, it goes like that:
    first page (servlet) must contain:
    <form action=nextPage.html method=get>
    <input type=checkbox name=toto>
    </form>
    second page (servlet) must contain:
    req.getParameter("toto");
    (req being the HttpServletRequest of the first servlet)
    that will give you the state of the box
    Message was edited by:
    calvino_ind

  • 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....

Maybe you are looking for

  • Nokia Care- N95 Support

    I am having lots of problems with my N95. The handset keeps on shutting down or freezing without applications running. The handset is very unreliable and I feel I must reinstall my primary SIM into my trusty N80. For example if I try to accesss my vo

  • Select queries

    Hi All, I have a program to be performance tuned. There are select queries on VBAP and BSEG which are taking time. The where condition includes maximum primary keys. But when I checked the data its fetching is very large. I have performance tuned ano

  • Can't access iTunes store after installation

    I've just installed itunes for Vista, and have used it on this machine previously. I never used it much and uninstalled it a couple years ago. I just installed iTunes again and the install ran fine, but when it tries to access the iTunes store it jus

  • JVM 1.5 hang at system.exit(): how to debug ?

    Our Java application seems to sometimes hang indefinitely at System.exit(). So far, we have observed that: - the hang does not happen when running JDK 1.4, but only with JDK 1.5 (we are trying to migrate to JDK 1.5.0_06) - it seems that if we comment

  • I have changed my itunes id. but it will not change on my Ipad...

    I have changed my apple and Itune id. but i can not down load new games and update items, becaus it will not alow me to. it keeps asking me to enter Password for the old email. How do i change this? . i have gone in to I tunes changed seting.