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

Similar Messages

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

  • Show or Hide fields based upon a variable value

    Hi,
    I am a rookie in the field of Acrobat. And my only question is :
    How to Circle a Form Field based upon a variable value .
    For example, If x=1, I want to circle Japan and if x=0, I want to leave it without any change.
    Please help me out. Thanks for your time and help.
    Thanks,
    Vijayvijay77.

    Hi George,
    I am pre-populating a Pdf file based upon the data submitted by the user. And I have to circle options selected in the form.
    I am writing coldfusion code to flatten, populate the form into a PDF form. The end result is the PDF generation with all the data in it.
    The data comes from the database, where I set variable values if any is selected or not.
    Thanks for your reply, I really appreciate your help.
    Vijayvijay77.

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

  • 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

  • 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

  • Need to change the LOV field based on checked box selection in OAF page

    Dear ALL,
    I have a requirement as below:
    I have a custom OAF page having a lov  field which is mandatory, a check box and a two text fields.
    So based on LOV value selection i am defaulting two text field value automatically.
    So my requirement is when user selects the check box automatically the LOV field should be non mandatory and user can insert in values to the lov field and text field and submit it.
    SO basically based on check box field selection i need to make the lov field in such a way it should accept all the values what user enters instead of check the query added in VO behind the LOV.
    Please suggest me some pointers to achieve this requirement.
    Thanks
    Deb

    hi,
    in PFR use:
    if ("checkevent".equals(pageContext.getParameter(EVENT_PARAM))) 
                     HashMap hashMap = new HashMap();
                     String checkboxval=pageContext.getParameter("item2");
                  hashMap.put("checkboxval",checkboxval);
                    pageContext.setForwardURLToCurrentPage(hashMap ,
                    true, // retain the AM
                    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
                    OAWebBeanConstants.IGNORE_MESSAGES);
    and in PR use:
    if((pageContext.getParameter("checkboxval'))!=null)
    OAMessageLovInputBean lovInputBean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("item3");
          lovInputBean.setRequired("false");
    try it
    Regards
    Mahesh

  • 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

  • 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

    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.

  • Remaining Information after populating data in a list box

    Hi Guys,
    I have a small problem. Actually  I thought everything works perfect but as i saved or sent the form and opened it again the populated information was gone. I was shocked.
    I give you short function of my form.
    I type in texfield "Type" "a" or "b" a dropdown list with A, B, C appears. If I select A ,B or C or all of them then this information appears in a list box. that's perfect so far, but when I save this pdf file or send it to someone and open it, then the selected information is gone. this is horrible!
    Does anyone know what's going on wrong??
    I think the information should remain otherwise the function doesnt make sense.
    I appreciate it a lot if someone can help me to solve this problem!
    Thanks in advance!
    Diana

    You can assign the xfa.event.newText to a variable then you can reuse the var as required and you can set each of the listboxes according. The code would look something like this:
    var ListBoxSelection = xfa.event.newText;
    Com.addItem(ListBoxSelection);
    Com1.addItem(ListBoxSelection);
    Or I have completly misunderstood why you cannot set both ListBoxes.
    paul

  • Unseen user parameter data when it is based on list of values

    Hi All;
    i use oracle report builder version 6.0.8.8.3 on win98 platform and i have a silly problem.
    When i create a user parameter with list of values , the list does not display any data .
    When i select any empty row from the list the report runs correctly displaying the data filtered where the selected emty row indicating that the list contains data but it does not appear in the list.
    I feel that it is a bug in my version.
    thank you in advance.

    i discovered a new notice about this problem,
    when the data displayed is arabic ,it does not appear.
    when it is english ,it appears clearly.
    my nls_lang=american_america.ar8mswin1256 and i tried another nls_lang=american_america.ar8msawin and it does not work also.
    i tried to un check the hide first column property but both arabic & english data do not appear
    thank u for your concern

  • Fill another textbox based on list item value

    I have a list_item with option1, option2, option3 and 'N/A' with values 1,2,3,4. There is another text field called startdate of date type format FMMM/DD/RRRR. I would like to display date '01/01/1900' in the text box whenever user select 'N/A' in the list item.
    I used varuious trigger - WHEN-LIST-CHANGED or POST_CHANGED with following code.
    if :block1.options = 'N/A' then          
    :block1.startdate := '11/11/1111';
    else
    :block1.startdate := :block1.startdate ;
    end if;
    On both triggers, I am getting error when I select 'N/A' in a list item
    FRM-40735: WHEN-LIST-CHANGED trigger raised unhandled exception ORA-01843.
    -1403: ORA-01403: no data found
    Could you please help me with this? I will really appreciate it.
    Thanks,
    user7954680

    Hi,
    You might want to check this
    ORA-01843 is caused coz of the following reasons
    Cause: A date specified an invalid month. Valid months are: January-December, for format code MONTH, and Jan-Dec, for format code MON.
    Action: Enter a valid month value in the correct format.
    -Nisar

Maybe you are looking for