Checkbox taking all the records irrespective of selection

HI All,
This is my code
for i in 1..htmldb_application.g_f02.count
loop
insert into nam values(htmldb_application.g_f02(i));
end loop;
Here i'm trying to insert the selected things but its taking all the records whatever is displaying in the report
Kindly help me to get rid of the issue
And guide me how cai insert only checked in records

hi
I'm not a pro but maybe I can share some experience.
First I would create a textfield for debugging.
This helps to find out what data you are really working with.
My textfield's name is "PX_SELECTED_ITEMS"
I filled the textbox with a process in "On submit - After Computations and Validations"
BEGIN 
  :PX_SELECTED_ITEMS :=
    HTMLDB_UTIL.TABLE_TO_STRING(HTMLDB_APPLICATION.G_F01);
END;I'm not sure how your values are seperated.
In my application I hat to replace the seperator from ':' to ','
Therefore I created another textfield "PX_SELECTED_ITEMS_replaced"
and added following code to the process:
:PX_SELECTED_ITEMS_replaced := replace(:PX_SELECTED_ITEMS,':',',');Now I have two textfields wich should contain your selection.
The second one ("PX_SELECTED_ITEMS_replaced") with the comma seperated data should be good for a "where-filter" in an SQL statement.
Here is the PL-SQL-syntax I used for a standard SQL report:
declare
  v_sql varchar2(32767);
begin
  v_sql := 'select * from  my_table';
  if :PX_SELECTED_ITEMS_replaced is not null then
    v_sql := v_sql ||' where My_ID in ('||:PX_SELECTED_ITEMS_replaced||')';
  else
    v_sql := v_sql ||' where 1=0';
  end if;
  return v_sql;
end;This Report should contain your selected items.
Note: This does NOT work with Interacive Reports.
I hope this helps you finding the issue.
Edited by: pAT on Nov 26, 2010 4:45 AM

Similar Messages

  • Displaying all the records in a tabular form on a single page

    Hello,
    After setting up a data entry page, I have hit an unexpected problem.
    The logic in my page requires that all the records in my tabular form should be displayed .
    The tabular form is based on a collection, and the user selects rows through a checkbox.
    Any reload of the page due to pagination will break the logic, as some calculation and display events occur during page load,
    based on the previous page.
    I need to display about 25 rows.
    I have changed the report attribute to display 50 rows, but it displays rows only up to the bottom of the screen,
    i.e. 11 rows.
    Unfortunately I only just added some new rows and saw this behaviour else I would not have gone that way,
    as I expected APEX to display all rows if required.
    Some help will be much appreciated.
    Regards
    Leckraj

    leckj wrote:
    Hello,
    After setting up a data entry page, I have hit an unexpected problem.
    The logic in my page requires that all the records in my tabular form should be displayed .
    The tabular form is based on a collection, and the user selects rows through a checkbox.
    Any reload of the page due to pagination will break the logic, as some calculation and display events occur during page load,
    based on the previous page.
    I need to display about 25 rows.
    I have changed the report attribute to display 50 rows, but it displays rows only up to the bottom of the screen,
    i.e. 11 rows.
    Unfortunately I only just added some new rows and saw this behaviour else I would not have gone that way,
    as I expected APEX to display all rows if required.Pagination settings are cached for the duration of the session. For this change to be instantly visible, either log out, restart the brower, and log in again, or manually re-request the page from the browser address bar, adding 'RP' in the ClearCache position in the URL.

  • How to update all the record for a particular column in a table based on search criteria.

    Hi All,
    I am new to ADF. I have a requirement, where i have to perform mass update on a table.
    Scenario:
    Ex: I have a dept manual search region. where i search with deptId: 20. I get 20 records in my table. now i have  another region where i have a inputchoice list which contains all the columns names that exists in dept table. Beside that i have a input text box and an update button
    Now user, first searches with dept id:20 and clicks on search button, where it shows 20 record in the table. He then select a column from input choicelist(ex: ManagerId), then enters new value in the input box(ex: abc) then clicks on update button.
    Now i want, all the records in the ManagerId column with dept id:20 to be updated with the new value "abc"
    Can anyone help me with the code.
    Thanks in advance..

    Hi,
    If you go to your VO and generate the ViewObjectImpl, in there you can create a method which will contain two parameters, 1 the attribute name and 2 the value.
    Then you can follow something like explained in this post:
    ADF Tutorial: How to apply bulk actions to a view object rows
    The only difference is that you will need to create a method like this:
    public void updateAttribute(String attribute, Integer value){
            RowSetIterator iter = createRowSetIterator(null);
            while (iter.hasNext()){
                Row row = iter.next();
                row.setAttribute(attribute, value);
    Then you expose that as a client interface and then after you filter your table by your criteria you just need to execute this method passing the right parameters.
    Regards

  • Sort all the Records in Data manager based on Update Date

    How to sort the reocrds in Data Manager based on Date or something ?
    And also I have three records for a same customer in ( for three different company codes ) and when I search for this customer with the Customer number then it is showing three records , but when I search with Update Date then no records are fetched ...what is the reason ?

    If you make a field as type "Time Stamp" in your data model using the MDM Console, make sure that the option Sort Index is set to Normal.  If this is the case, whenever a record is updated in the repository, the date will be updated.  If the sort index is normal, then MDM will allow you to sort the records based on the date and time by which they were updated.  You can do this by finding your time stamp field in the MDM data manager and clicking on it.  If there is an up and down arrow next to the name of your field, it means it can be sorted.  Also, to answer your other question, you can definitely search based on date.  Use the Free-Form Search on the left hand side of the data manager at the bottom of the screen.  Simply select a date, and it will show you all the records updated on that date.

  • Request is active after all the records loaded

    Dear Experts,
    I am extracting data from R/3 through custom Data source. While creating data source, I used custom Function Module.
    I have checked in RSA3, 9565 Records are available.
    When I start extract from BW side all the records (9565) fetched, but request still in yellow. Same way I have checked in R/3 side in SM37 job status is “Active” (After 5 Hours also).
    Please provide the solution.
    Thanks in Advance.
    Regards,
    Selva

    hi,
    in the monitor screen select that requestselect refresh request for 1 more 2 minutes. otherwise come out the screenwait for some time-go to that request check it out.
    select your requestselect details tabsee error.
    if helpful provide reward points
    regards
    harikrishna N

  • Periodic Alert-How to send all the records returned from the SQL in a mail?

    Hello all,
    I have defined a Periodic Alert, my SQL query returns more than one record whenever I run it. I also defined an action to send an email with the message consisting of the output variables from the SQL. Whenever i run this alert, a mail is being sent for every single record returned from the query. But i want to send a single mail containing all the records information that my SQL query returns.
    For Example: My SQL query lists all the users created on current date.
    Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
    from fnd_users where trunc(creation_date) = trunc(sysdate)
    Now i want to send a mail with all the users information from the above query, to SYSADMIN. How can this be achieved?
    Thanks & Regards
    chakoo

    Hi Chakoo,
    If the Periodic Alert is not working as requried. You can write a simple package with 3 procedures to implement the writing output to a out file and simultaneuosly send email to multiple receiptents.
    Example:
    Create Package xx_pac
    Create public Procedure P1
    begin
    Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
    from fnd_users where trunc(creation_date) = trunc(sysdate)
    fnd_file.put_line (fnd_file.output, &OUTPUT1, &OUTPUT2);
    end;
    (Create private Procedure P2
    begin
    ---Write the email package using the UTL_SMTP approch. Using this approch you can send the procedure P1 output file as an attachment to the desiginated receiptents.
    end;
    (Create public Procedure P3
    begin
    ---call the procedure P1 using the "g_request_id = fnd_request.submit_request"
    ---Wait for the above procedure to complete using "l_conc_status := fnd_concurrent.wait_for_request" procedure.
    ---call the procedure P2. (When called you must provide the correct to, from address)
    end;
    end;
    Register the Package xx_pac as a concurrent program and schedule when submit it from the request.
    Regards
    Arun Rathod

  • How to fetch all the records from ztable

    Hi 
    My program is outbound program.
    According to the requirement i have to fetch all the records from ztable which are not tranmitted before to the third party and once the records are extracted and written to output file they will be marked as 'X' in the "status" field of that ztable for the next days run.
    How to fetch the records.Please suggest me.
    Thanks,
    Neelima

    HI,
    Fetch all the records whose status is equal to 'X' as whatever data is sent to third party system is marked as 'X' in status field of table after sending.
    You need to first fetch the data into internal table using the select statement where status EQ space. You get the data which is not yet transmitted to third part. And later in the program after trasmitting the data to third party modify the Records in the DB table which are transmitted with Staus eq 'X'.

  • Inserting all the records in particular period

    Hi.,
    I am using jdev11.1.5
    I had created a reccustdocEO and its corresponding VO with the following querry This VO doesnot displayd in the UI
    SELECT RecCustDocHdEO.RCDOC_BU,
           RecCustDocHdEO.RCDOC_PFX,
           RecCustDocHdEO.RCDOC_DOC_TYPE,
           RecCustDocHdEO.RCDOC_DOC_MODE,
           RecCustDocHdEO.RCDOC_DOC_NO,
           RecCustDocHdEO.RCDOC_PLNT,
           RecCustDocHdEO.RCDOC_CUST_ID,
           RecCustDocHdEO.RCDOC_DOC_DATE,
           RecCustDocHdEO.RCDOC_DOC_YEAR,
           RecCustDocHdEO.RCDOC_DOC_PERIOD,
           RecCustDocHdEO.RCDOC_BANK_ID,
           RecCustDocHdEO.RCDOC_CURRENCY,
           RecCustDocHdEO.RCDOC_EXCHANGE_RATE,
           RecCustDocHdEO.RCDOC_TOT_AMT,
           RecCustDocHdEO.RCDOC_CUST_REFERENCE,
           RecCustDocHdEO.RCDOC_CUST_REFERENCE1,
           RecCustDocHdEO.RCDOC_START_YEAR,
           RecCustDocHdEO.RCDOC_START_PERIOD,
           RecCustDocHdEO.RCDOC_LAST_PROC_YEAR,
           RecCustDocHdEO.RCDOC_LAST_PROC_PERIOD,
           RecCustDocHdEO.RCDOC_FREQUENCY,
           RecCustDocHdEO.RCDOC_PROC_NO,
           RecCustDocHdEO.RCDOC_PROC,
           RecCustDocHdEO.RCDOC_STATUS,
           RecCustDocHdEO.RCDOC_CRE_BY,
           RecCustDocHdEO.RCDOC_CRE_DATE,
           RecCustDocHdEO.RCDOC_UPD_BY,
           RecCustDocHdEO.RCDOC_UPD_DATE,
           RecCustDocHdEO.RCDOC_REC_TYPE,
           RecCustDocHdEO.RCDOC_LAST_PROC_DATE,
           RecCustDocHdEO.RCDOC_PLANT,
           RecCustDocHdEO.ROWID
    FROM REC_CUST_DOC_HD RecCustDocHdEO
    WHERE RecCustDocHdEO.RCDOC_STATUS = 'P'
    ORDER BY RecCustDocHdEO.RCDOC_DOC_YEAR,RecCustDocHdEO.RCDOC_DOC_PERIODconsider the table contains datas such as
    year        Period   Docno
    201011     2         1125556
    201011     2         5689898
    201011     3         5689444
    If the user clicks the button all the records in period2 should get inserted to another table gljrnlhd
    Pls verify the link if i am not clear
    http://www.4shared.com/photo/OK1hXBsW/E008.html

    Hi,
    To copy the values from one view object to another you can use a method in the application module that will be called when the button is clicked.
    The code in the method could be something like:
        //Create an iterator based on the source view object
        RowSetIterator iter=getViewObject1().createRowSetIterator(null);
        iter.reset();
        //iterate through the first view object
        while(iter.hasNext()){
            Row current=iter.next();
            if("2".equals((current.getAttribute("Period")){
                //create a new empty row from the second view object
                Row newRow=getViewObject2().createRow();
                //copy all attributes from one view object to the other
                newRow.setAttribute("attr1", current.getAttribute("attr1"));
                newRow.setAttribute("attr2", current.getAttribute("attr2"));
                newRow.setAttribute("attr3", current.getAttribute("attr3"));
                //insert the new row to the second view object
                getViewObject2().insertRow(newRow);
        //RowSetIterators should always be closed
        iter.closeRowSetIterator();
        }I hope I understood your use-case correctly.
    Gabriel.

  • Reading all the records

    Hi sir,
    I developed one review page using jsp techonology, and with the help of servlet i get connected to the database, where i wrote code for both inserting the record and selecting the record at a time, but problem is only one record is displayed in the review jsp page. Though i used "while(rs.next())".
    1. I think first of all , all the records should be stored to an object, then it should be displayed to jsp page.
    but how it can be done, plz help me out. its an urgent, i need to complete this application soon.
    regards

    problem is only one record is displayed in the review jsp page. Though i used "while(rs.next())".How many records were retrieved in the 'while (rs.next())' loop?
    plz help me out. its an urgent, i need to complete this application soon.Your time management problems are your own. If you need urgent help, hire it. This is a user to user forum, nobody gets priority.

  • DB adapter polls all the records regardless of the MaxTransactionSize

    Hi All,
    I have a requirement that I need to poll only 10 records per minutes from DB2 database, regardless of how many ever records in the database at the time of the polling. I used the DB polling with custom sql, to fetch only first 10 records, as well as MaxTransactionSize set to 10 and PollingInterval to 60 (sec), PollingStrategy as LogicalDeletePollingStrategy. But when I test it out, if I have 100 records in the database, it updated all 100 records with the MarkReadValue and gave me all 100 records. I tried with disabling the SkipLocking as well, but doesn't seem to work. I also tried using the throttling in DB adapter in the composite.xml, but though the composites are showing up one by one based on the throttling time interval, in the database, it updated all the records right away, which is unacceptable as per business logic. Can someone please guide me how I can implement this? Thanks in advance.
    Note: I am using SOA 11.1.1.5. In 10.1.3.4, we have implemented this and it is working well, but can't make it to work in 11.1.1.5.
    Hruthayah

    Thanks for responding, Narsing.
    Please Note that MaxRaiseSize property doesn't behave the same in Database Adapter as it does in File Adapter Polling...
    MaxTransactionSize = Database Rows Per Transaction
    MaxRaiseSize = Database Rows Per XML Document
    In Database Adapter, MaxRaiseSize means the maximum number of records it can get in an XML Document...Yes, I do understand that, and that is why since I want one record per each instance, I have MaxRaiseSize set to 1.
    in the steps of configuring DB Adapter, you can select the 'Do Synchronous Post to BPEL' option in the 'Operation Type' screen in the adapter configuration wizard. This will generate an empty response message type for output variable. In the BPEL process add the reply activity at the end of the process by selecting output variable and also add the reply activities in the end of catch and catch all blocks in the exception handling.I had done what you have suggested. But I have seen two issue.
    1. Although only one instance is being showing up for the first time in EM, in database, all the records are being marked as "Reserved". (which is unacceptable as per the business requirement)
    2. Next instances are showing up right after first one is done. (meaning, all the instances are showing up one by one without waiting for the polling interval)
    Is this because of the DB2 database? I even tried updating the "PoolingService-or-mappings.xml" file to include the custom sql so that it will exactly fetch first 10 records.
    <query name="EOneEvents" xsi:type="read-all-query">
    <timeout>0</timeout>
    +<call xsi:type="sql-call">+
    +<sql>SELECT E1GS2A, E1VALU, E1UKID, E1ACTN, E1AA20, E1GPSP, E1LL, E1GS1A, E1GS1B, E1HBST1, E1HBST2, E1HBST3, E1HBST4, E1HBST5, E1CRTU, E1CRTJ, E1CRTT, E1WRKSTNID, E1HBOPID, E1UPMB, E1UPMJ, E1UPMT, E1JOBN, E1PID FROM F57MTE01 WHERE ((E1GS2A = 'LOT') AND (E1GPSP = '0')) ORDER BY E1CRTJ, E1CRTT ASC fetch first 3 rows only</sql>+
    +</call>+
    <reference-class>PollingService.F57mte01</reference-class>
    <cache-usage>primary-key</cache-usage>
    <lock-mode>none</lock-mode>
    <container xsi:type="list-container-policy">
    <collection-type>java.util.Vector</collection-type>
    </container>
    </query>
    </queries>
    I would appreciate if you can guide me if I am doing something wrong here.
    Hruthayah

  • How to display all the Records of all the "Books of Business" in Report ?

    Hello,
    I have a user with 3 "Books of Business" (No Sub Books).
    I would like to generate a report with the data of the 3 books.
    With the "selector", it seems that I can't choose the "All" option.
    Can someone confirm the behavior ?
    Thanks for your help.

    Hello,
    I do have a similar problem.
    I have already tried to create a parent book (the checkbox "can contain data" is not activated), assign it to sub-books and add first my user as a book user (Admin role). However, when I start a simple report which should show e.g. Number of Contacts in a book an choose the parent book in the book selector I get an error message and there are no results ("The specified criteria didn't result in any data").
    Did I miss any setup steps or is not possible to see all the records at once which belong to the sub-books with a parent book?
    If I pick my user book, I see only the records I own. The problem is that our CEO needs a view there he could see records in sub-books separately but also the records in both of them at once. Unfortunately, the Manager Visibility can not be applied because we have a different hierarchy in the system as it is in real (otherwise wrong data in forecasts).
    Many thanks in advance
    Regards, Vilma

  • Unable to extract all the records initial run(for Datasource 0HR_PY_1).

    Hi All,
    I was trying to extract the data using 0HR_PY_1 Data Source (HR-Payroll related).  When I use Full update in BW, it extracts all the records from R/3 but when I use Init load to extract the data, it is not extracting all the records(some records are missing).
    So I dont know what exactly is happening. I also checked RSA7 and deleted the entry for this data source (this entry was created because we tried to do some test delta in the past).
    When I goto RSA3(Extractor Checker) and use update mode "F" (along with some selection criteria employee#284), it shows 550 records which is the correct number.But when I use the update mode "C"(Initialization of the delta transfer),  I just get 490 records only.
    So I am thinking is there anything I need to do to reset the initialization tables somewhere on r/3 side or do some kind of settings on r/3 by which I can extract all the records by using INIT load.

    I noticed a weird thing in RSA3,
    I tested this without any selection criteria.
    Using "F" update mode, the total number of records were 173,654
    Using "C" update mode, the total number of records were 176,205
    So, even though I was getting less number of records by using "Full" update mode, I was able to see the latest data I wanted. But When I use "C" update mode, even though the number of records is more, still I could not see the latest data (6/2007)???
    So dont know what exactly is happening!!

  • How can i get all the records from three tables(not common records)

    Hi
    I have four base tables at R/3-Side. And i need to extract them from R/3-Side.
    And i dont have any standard extractor for these tables .
    If i create a 'View' on top of these tables. Then it will give only commom records among the three tables.
    But i want all the records from three base tables (not only common).
    So how can i get the all records from three tables. please let me know
    kumar

    You can create separate 3 datasources for three tables and extract data to BW. There you can implement business login to build relation between this data.

  • Trying to retrieve all the records from the file on desktop

    HI All
    I have one particular problem. I was given a text file which as 7000 records with length 512 each in a continues string. I Changed begining of each record with comma  in that text and saved it in .csv , when I try to upload the file into my program's internal table.
    It is still giving one record. I used
    itab_EXTRACT1 declared as
    DATA: begin of itab_extract OCCURS 0,
            extract1(512) type c,
          end of itab_extract.
    call method cl_gui_frontend_services => gui_upload
        exporting
          filename                = Xfile
        filetype                    = 'ASC'
         has_field_separator     = 'X'
        changing
          data_tab                = itab_EXTRACT1
      exceptions
        others                  = 17.
      Is there a way how to retrieve all the records into the internal table.
    Thanks
    Ravi

    Hi Ravi,
    I don't know if this is the correct solution, but I think it will work.
    Declare your internal table (itab_extract) with the maximum length which your file will occupy.
    Create another internal table (itab) with field (text) length 512.
    Populate the internal table itab_extract using GUI_UPLOAD.
    Then write this code
    l_index = 1.
    itab-text = itab_extract-extract1+0(512).
    append itab.
    do.
    n = ( l_index * 512 ) + 1.
    itab-text = itab_extract-extract1+n(512).
    append itab.
    if ( itab-text is initial ).
    exit.
    endif.
    enddo.
    Let me know if I miss anything.

  • How to get all the Record Groups?

    in the form i had created a record group. let us say they are:
      RG_APPR_TYPE_CDE_LIST
      RG_DRV_APPR_TYPE_CDE_LIST
      RG_PROJ_MODE_CDE_LIST
      RG_DRV_PROJ_MODE_CDE_LIST
      RG_PROJ_STATUS_CDE_LIST
      RG_DRV_PROJ_STATUS_CDE_LIST
      RG_ORG_SUB_TYPE_CDE_LIST
      RG_DRV_ORG_SUB_TYPE_CDE_LIST
      RG_REGION_NUM_LIST
      RG_DRV_REGION_NUM_LISTwhen the form hits on the clear button it invoke the CLEAR_FORM. i want to get all the record groups dynmically so i won't have to explicitly call the
      Delete_Group('RG_APPR_TYPE_CDE_LIST');
      Delete_Group('RG_DRV_APPR_TYPE_CDE_LIST');
      Delete_Group('RG_PROJ_MODE_CDE_LIST');
      ...one by one. is there any other workaround? i appreciate any help on this. thanks.

    is there any other workaroundNo.

Maybe you are looking for

  • Moving the object from one dimension to other in the cube in BI7.0

    Hi Gurus, I am new to BI7.0 We have a requirement wherein we need to move the object from one dimension to other dimension within same Infocube.I tried doing 'cut' and 'insert' from the context menu of the dimensions, but it didnt work. Please let me

  • Ink system failure HP Officejet 6500 E709n Series

    My printer stopped printing black.  So I put new cartridge in.  still not black printing. I just cleaned the printhead carefully removing lots of black gunk with a Q-tip.  Now I want to try it to see if that helped get my black printing back. I now g

  • I can't print from network computer while in bootcamp

    Although I can see the network printer while in Windows 7 on bootcamp, I can't get it to print.  I am trying to print reports from Quicken 2012.  Any ideas?  

  • IPhone not showing up after Mavericks update

    Everything is plugged in normally and since I updated to Mavericks and updated iTunes my iPhone 5 no longer shows up in iTunes and I don't know why, any help would be appreciated!

  • How do I change the appleID for the apple store icon on my IPad?

    I have recently retired and my IPad that I used with my school email is now my private IPad.  I no longer have my school email, and had to change my primary email address to my private one.  I have changed my AppleID to use my private email, was able