Updating all items of HTML itembox to Oracle table

Hi friends,
In my assignment,I need your help. I'm wondering how can I update all the items of my HTML itembox ,defined in one of the jsp page, to Oracle table.
Thanks in advance.

hsperhar wrote:
Thanks ,in that I can deal with the servlet programming and collecting and updating the data in my oracle tables. But how would I collect the names/values of all the items of HTML itembox in my servlet/JSP, so that later I can update my oracle table with those string values.Method request.getParameter(String) will catch the selected items only of the itembox. How can I force the form to pass all the names of items of itembox to servlet. You need to pass them separately. But why do you need to do this? You already know at the server side which options are all in the dropdown. Simply because you couldn't have printed it to the response otherwise.
Plus: how can we substract two arrays. I mean if A[]={1,2,3} & B[]={2,3} then how can I get C[]=A-B={1}Just write an utility method for that. Or use the Collections framework, the List API for example provides you a removeAll() method.

Similar Messages

  • FI_ITEMS_MASS_CHANGE failing to update all items of BSEG

    Hi All,
    I am facing problem using FM FI_ITEMS_MASS_CHANGE while updating multiple line items of BSEGfor text and assignment.The program is posting FI document by calling transaction FB05. The requirement is to update all the itmes of clearing document with predefined text , assignment which is coming from excel.
    The program currently gets the clearing doc number from FB05; gets the BSEG table entries and loops the items one by one. For every loop of BSEG the FM FI_ITEMS_MASS_CHANGE is called to update text and assignment fields in corresponding item of BSEG.So expectedly all the items should be updated with the text , asignment.
    But problems is that only first item is updated and rest are not updated. I have added wait time of 5 seconds to avoid locking of tables in case if any. But still the change is not working. The results after wait time additon are inconsistent. In developemnt the changes worked for 7-8 items while  it failed in quality even for only 2 items.
    The FM possibly calls FB02 internally. Is there any locking happening?
    Anybody has any suggestion?
    Thanks in Advance.
    Regards,
    Chirdip

    Hi,
    I am also facing the same problem while updating ZUONR filed in BSEG.
    FI_ITEMS_MASS_CHANGE is not updating all the line items in bseg. I called the FM inside loop-endloop at item table.
    Still few items(randomly) are updating in first executuion of my program. Few in 2nd execution an so on.
    I tried using COMMIT WORK and WAIT statements after calling the FM, but of no use!!
    Please suggest is there any other way to update all the items in a single execution??
    Otherwise do I have to go for BDC on FB02 ??
    Thanks,
    Sagar

  • Updating all the changed data from Vo based table into database

    hi,
    there is a advanced table in my page and there r 14columns in it. the data for this columns is coming from 8 different tables. here the table is VO(sql query) based table.there is also a apply button on the page. when i click "apply" which is submit button, i want all the changes made on the advanced table to be captured and get updated on the respective columns in the database..
    can anyone helpme out in doing this.
    Thanks
    Chandu

    SQL query based VO is not updatable. You have to base your ViewObject for all EntityObjects which represent your 8 different tables.
    Its good practice to base all your VO on EO, even for read-only, unless your query does not contain, distinct, union & group by clause.
    Setting "updatable=false" property of EO make behavior of read-only.
    Is your VO based on EO?
    See this- http://howtolearnadf.blogspot.com/2012/04/how-to-create-oracle-adf-view-object.html
    http://weblog.singhpora.com/2010/02/read-only-view-object-also-be-based-on.html

  • How to store Html File in Oracle Table?

    Hai,
    I want to store Html File(s) into oracle Table. How can I do it?.
    Please help me. Html File size can be maximum 40 MB .
    Regards
    Suresh

    If it's just pure HTML it's nothing more than astring so you could store it as such.
    Most databases have a limitation on the maximum number
    of characters that a string can hold. With 30MB of
    text, a CLOB (Character Large OBject) is the
    preferrable type but a BLOB (Binary Large OBject) can
    also be used.
    ;o)
    V.V.Right, right. But, I kind of doubt that an html file takes up 30MB, can you imagine browsing a web site, regardless of your connection, with pages that size? We're talking ~125,000 line of pure HTML code (no images)!

  • Update all alv (grid) displayed records to internal table

    Hi all,
    i want to update the records into the internal table which are changed by the user in the edit field.
    after he select save button.
    i  have to save the ALV grid displayed records in the internal table.
    hw can i do this ?

    ALV with EDIT and SAVE functionality
    Code:REPORT z_demo_alv_jg.*******************************************************************
    TYPE-POOLS                                                      *
    TYPE-POOLS: slis. *******************************************************************
    INTERNAL TABLES/WORK AREAS/VARIABLES     *
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
          i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
          w_field TYPE slis_fieldcat_alv,
          p_table LIKE dd02l-tabname,
          dy_table TYPE REF TO data,
          dy_tab TYPE REF TO data,
          dy_line TYPE REF TO data.*******************************************************************
    FIELD-SYMBOLS                                                   *
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
                   <dyn_wa> TYPE ANY,
                   <dyn_field> TYPE ANY,
                   <dyn_tab_temp> TYPE STANDARD TABLE.*******************************************************************
    SELECTION SCREEN                                                *
    PARAMETERS: tabname(30) TYPE c,
                lines(5)  TYPE n.*******************************************************************
    START-OF-SELECTION                                              *
    START-OF-SELECTION.* Storing table name
      p_table = tabname.* Create internal table dynamically with the stucture of table name
    entered in the selection screen
      CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_table->* TO <dyn_table>.
      IF sy-subrc <> 0.
        MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.    LEAVE TO LIST-PROCESSING.
      ENDIF.
    Create workarea for the table
      CREATE DATA dy_line LIKE LINE OF <dyn_table>.
      ASSIGN dy_line->* TO <dyn_wa>.* Create another temp. table
      CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_tab->* TO <dyn_tab_temp>.  SORT i_fieldcat BY col_pos.* Select data from table
      SELECT * FROM (p_table)
      INTO TABLE <dyn_table>
      UP TO lines ROWS.  REFRESH <dyn_tab_temp>.* Display report
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_structure_name         = p_table
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'SET_PF_STATUS'
        TABLES
          t_outtab                 = <dyn_table>
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.  IF sy-subrc <> 0.  ENDIF.&----
    *&      Form  SET_PF_STATUS
          Setting custom PF-Status
         -->RT_EXTAB   Excluding table
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.  SET PF-STATUS 'Z_STANDARD'.ENDFORM.                    "SET_PF_STATUS&----
    *&      Form  user_command
          Handling custom function codes
         -->R_UCOMM      Function code value
         -->RS_SELFIELD  Info. of cursor position in ALV
    FORM user_command  USING    r_ucomm LIKE sy-ucomm
                               rs_selfield TYPE slis_selfield.* Local data declaration
      DATA: li_tab TYPE REF TO data,
            l_line TYPE REF TO data.* Local field-symbols
      FIELD-SYMBOLS:<l_tab> TYPE table,
                    <l_wa>  TYPE ANY.* Create table
      CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN li_tab->* TO <l_tab>.* Create workarea
      CREATE DATA l_line LIKE LINE OF <l_tab>.
      ASSIGN l_line->* TO <l_wa>.  CASE r_ucomm.*   When a record is selected
        WHEN '&IC1'.*     Read the selected record
          READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
          rs_selfield-tabindex.      IF sy-subrc = 0.*       Store the record in an internal table
            APPEND <dyn_wa> TO <l_tab>.*       Fetch the field catalog info
            CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
              EXPORTING
                i_program_name         = 'Z_DEMO_PDF_JG'
                i_structure_name       = p_table
              CHANGING
                ct_fieldcat            = i_fieldcat
              EXCEPTIONS
                inconsistent_interface = 1
                program_error          = 2
                OTHERS                 = 3.
            IF sy-subrc = 0.*         Make all the fields input enabled except key fields
              w_field-input = 'X'.          MODIFY i_fieldcat FROM w_field TRANSPORTING input
              WHERE key IS INITIAL.        ENDIF.*       Display the record for editing purpose
            CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
              EXPORTING
                i_callback_program    = sy-repid
                i_structure_name      = p_table
                it_fieldcat           = i_fieldcat
                i_screen_start_column = 10
                i_screen_start_line   = 15
                i_screen_end_column   = 200
                i_screen_end_line     = 20
              TABLES
                t_outtab              = <l_tab>
              EXCEPTIONS
                program_error         = 1
                OTHERS                = 2.        IF sy-subrc = 0.*         Read the modified data
              READ TABLE <l_tab> INDEX 1 INTO <l_wa>.*         If the record is changed then track its index no.
            and populate it in an internal table for future
            action
              IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
                <dyn_wa> = <l_wa>.
                i_index = rs_selfield-tabindex.
                APPEND i_index.
              ENDIF.
            ENDIF.      ENDIF.*   When save button is pressed
        WHEN 'SAVE'.*     Sort the index table
          SORT i_index.*     Delete all duplicate records
          DELETE ADJACENT DUPLICATES FROM i_index.      LOOP AT i_index.*       Find out the changes in the internal table
          and populate these changes in another internal table
            READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
            IF sy-subrc = 0.
              APPEND <dyn_wa> TO <dyn_tab_temp>.
            ENDIF.      ENDLOOP.*     Lock the table
          CALL FUNCTION 'ENQUEUE_E_TABLE'
            EXPORTING
              mode_rstable   = 'E'
              tabname        = p_table
            EXCEPTIONS
              foreign_lock   = 1
              system_failure = 2
              OTHERS         = 3.      IF sy-subrc = 0.*       Modify the database table with these changes
            MODIFY (p_table) FROM TABLE <dyn_tab_temp>.        REFRESH <dyn_tab_temp>.*       Unlock the table
            CALL FUNCTION 'DEQUEUE_E_TABLE'
              EXPORTING
                mode_rstable = 'E'
                tabname      = p_table.      ENDIF.
      ENDCASE.  rs_selfield-refresh = 'X'.ENDFORM.                    "user_command

  • ASG_START_EVENT_IND should update all to 0 if TERM

    I am facing this scenario
    ASSIGNMENT_ID
    ASG_START_EVENT_IND
    W_EVENT_SUBG_CODE
    EVENT_CODE
    4897
    1
    ASG~START
    ASG~START
    4897
    0
    TERM~INVOLUNTARY
    TERM~INVOLUNTARY~I-RESIGN~ON~AGREEMENT
    ASG_START_EVENT_IND should update all to 0 if TERM, but oracle doesn't do that.
    I think this doesn't make sense and cause
    ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
    Any advise?

    Thanks. Have you upgraded the firmware in your unibody mbp? I ran all software updates as soon as I got the machine last week, but the Hitachi 500gb HTS545050B9SA02 drive seems to be working ok. I was going to get the seagate momentus 500gb 7200.4 without G, copy an image to it by putting it in my external sata 2.5 enclosure, and simply swapping the drives over with OS ready to roll. The stock Hitachi drive would then become my carbon copy cloner / time machine back-up drive.

  • "ADF Navigation List" does not shows all items that are in table

    Hi
    Thank you for reading my post
    I am tring to use "ADF Navigation List" , (it can be draged from data control platte into a form)
    but when i drag and drop it on my form it does not shows all items that are available in my table ?
    it just shows 10 item when i have 60 record in my Table.
    Thanks

    Hi,
    in the pageDef ile, select the iterator for this list and set the fetch size to -1 (its 10 by default)
    Frank

  • ALE BOM. Updates ALL! items with validity date & change no.

    Hi All,
    We are having problems where ALE-BOM sent with change in validity date (with change no) to a particular item. What happens is that ALE-BOM will instead update ALL! items with the same validity date and change number.
    Next,when we process ALE again for the same BOM with a different validity date(with change no), then only that
    particular item is updated with validity date and change no.
    Would anyone know what could be the problem that when changes are sent for the first time all items are updated?
    [Version: SAP 4.6C/ SAPKH46C48]
    Regards,
    Neeth

    Dear:
                   The error itself telling you the correction. You profit center which is assigned to your cost center has a validity date less than the one you are now assigning.You can check in KE52 against the profit center assigned to your cost center master data. However the best thing is to go to KS01 and create this cost center with desired validity date.
    This will resolve your issue.
    Regards

  • I have windows 8 and I have the most updated version of Itunes, my iphone 4s connects, but nothing plays from my itunes all items have the cloud next to it, and they are dithered out

      I have windows 8 and I have the most updated version of Itunes, my iphone 4s connects, but nothing plays from my itunes all items have the cloud next to it, and they are dithered out

    In the course of your troubleshooting to date, have you worked through the following document?
    No content shows up in iTunes after updating

  • Function module for BOM Update all line items at a time

    Hi,
    Please enlightenn us, which FM is do the update for BOM item datas. ( current FM is updated line item one item then come out and log in again updating another line item , thus cause more error are facing.)
    we want a FM to update one time all the line time and come out from the screen.
    Thx
    Sathiya

    HI,
    As suggested above use CEWB or if you want to manage it via a Z program then use:
    CSAP_MAT_BOM_MAINTAIN
    or
    CSAP_MAT_BOM_OPEN
    CSAP_BOM_ITEM_MAINTAIN (Use these 3 in sequence, refer to the help file on the FM)
    CSAP_MAT_BOM_CLOSE
    Hope it answers your query.
    Regards,
    Vivek

  • Any way to update attribute in all Items of an Item Type ?

    Is there any way an attribute in all items publish of a single item type?
    I want to change all File Items so that they open in a New Browser.
    Please note: This is not for all items that we will publish going forward, just for the current items. I dont want to go back in and update items one-at-a-time.
    Thanks

    Hi Mike,
    Go to Navigator>Shared Objects>Contents>Custom Types>Item Types. From there select the Item Type you want to change (probably file).
    From here click on the 'Attributes' tab and make sure that the Display Option is in the Selected Attributes box. Then look for Display Option under the Attribute Properties section and change 'Full Browser Window link' to 'New Browser Window Link'.
    I hope this helps. I haven't tested it but I think it should do the trick. If you want file items that you create in the future to behave differently then you will have to create another item type based on File but keep the Display Option set to 'Full Browser Window link'.
    Cheers,
    Steven

  • HT201380 OK... I updated all "asked" items. Now I am "locked" out of my iPhoto. Any help PLEASE! I'm out of the USA right now, but it had been working fine up until today.

    How can I get into my iPhoto ?
    I updated ALL required updates and now I'm "Locked" out of iPhoto, saying I am "still" updating, but the App. Store says I am ALL updated?
    Thanks!

    Phillip...
    Tap Settings > General > Reset > Reset Network Settings
    Then restart the iPhone.
    If that didn't help, try here >  iOS: Troubleshooting Wi-Fi networks and connections

  • How to update form item in IR with value when it is null when pressing Go?

    Hello,
    in an IR i have created a Date Picker Item. This item i want when user enters page to have a default value. Also when the user clears this field i want the corresponding item to get a default value. i have achieved the 1st but not the 2nd. I need this replacement in the item value because it its needed in a between where date expression in the report query and i want to have the bind variables only, not NVL them in order to avoid scanning all partitions of table. Thi item is used as an extra search field in the Report and it is included in the Page Items to Submit | Advanced Report Attributes.
    How can i do this ?
    What i have set up atm:
    Source Used
    Always, replacing any existing value in session state
    Source Type
    PL/SQL Expression or Function PL/SQL
    Source value or expression
    TRUNC(SYSDATE)
    and also in Default :
    Default value
    RETURN TO_DATE('01/01/1980','DD/MM/RRRR')
    Default Value Type
    PL/SQL Function Body
    TIA

    Dionyssis ,
    Normally you could, but IRRs are a little different. You can use the page rendering options, but page submit options will not fire when the report is being redrawn.
    To get you started, add this to the item's HTML Form Element Attributes:
    onblur="this.value = $v('PX_HIDDEN_DATE_ITEM')"Then just create a hidden date item and give it a default value. This will keep you from having to get into JavaScript date formatting which is terrible when compared to Oracle.
    Regards,
    Dan
    http://danielmcghan.us
    http://www.skillbuilders.com
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How to enumerate all items in a primary table

    I have a primary table with a data structure as its data element. I also have a secondary table with an index pointing into the primary table.
    Is there an example of how to enumerate all items and reset one of the fields in each element in the primary table to 0?
    thanks,
    chris

    Hello,
    Have you taken a look at the examples directory that come with
    your distribution? You did not mention what platform/version/API
    you are using, but under your Berkeley DB home directory you should find
    examples_c/examples_cxx/examples_java. Under those directories
    is a getting_started directory. I believe that the examples there
    illustrate what you are asking about.
    If you have not done so already, you can also check the sample code
    in the Chapter on "Secondary Databases" in the "Getting Started Guide" at:
    http://www.oracle.com/technology/documentation/berkeley-db/db/gsg/C/indexes.html
    Thanks,
    Sandra

  • All items in the exc. inv. 90 dtd 01.10.2009 of ven. 200380 has been recd

    Hi experts,
    It is a case of imported consignment.  We have received one invoice for 100 nos.  We are receiving  it partially into our premises.  The excise invoice no. is 90 dtd. 01.10.2009.  We did  successfully gate entry &  GRN for first lot - 10 nos.  At the time of raising GRN " we enter only capture excise invoice ".  But when we are raising GRN for second lot - 10 nos with " capture excise invoice "  system giving us error msg "   All items in the exc. inv. 90 dtd 01.10.2009 of ven. 200380 has been recd. Messsage no. 8I 474.
    Please guide us how this error msg can be converted into warning.
    Regards,
    ( Rajneesh Gulati )

    Hi
    This is a bug fromOracle ADF - upto JDeveloper 11.1.1.0.2 (update 2) - and fixed under Jdeveloper 11.1.1.1.0 (Rlease 1)
    The bug detailsgiven below for your reference:
    SR Number 7577026.993 - BUG Reference 8635250
    Bug Ref.: https://metalink2.oracle.com/metalink/plsql/f?p=130:15:6650652660654461713::::p15_database_id,p15_docid,p15_show_header,p15_show_help,p15_black_frame,p15_font:BUG,8635250,1,1,1,helvetica
    Krish

Maybe you are looking for