Selectall checkbox not selecting rows in  all pages

Hi guys,
Please help
what is the best way to select all the pages when i click on select all checkbox in the first page. Currently my code is selecting only 1st page of rows.
Please help me.
I have region with sql query(pl/sql function body returning sql query) with the following code. Repot is conditional.
DECLARE
    l_query          VARCHAR2(32676);
BEGIN
    l_query := q'!  SELECT DISTINCT 
                            apex_item.checkbox( 1
                                              ,wo.wip_entity_id
                                              ,'onchange="javascript:CheckedAll(); setChkboxVal(this);"'
                                              ,:P0_CHK_LIST
                                            ) AS selecter
                                -- ,wo.work_order_status AS Status
                                           ,NVL((select DISTINCT STATUS from xxdl.xxdl_eam_its_pta_rollover WHERE wip_entity_id = wo.wip_entity_id),'') AS Status
                                 ,wo.wip_entity_name AS "Work Order Number"
                                 ,msn.asset_group_description AS "Asset Group"
                                 ,wo.asset_number AS "Asset Number"
                                 ,cust_prof.name As "Profile Class"
                                 ,wo.wip_entity_id As "wip_entity_id"
                                                   ,wo.asset_group_id
                                 ,budget_department.project_id
                                 ,budget_department.project_number
                                 ,budget_department.task_id
                                 ,budget_department.task_number
                                 ,budget_department.award_id
                                 ,budget_department.award_number
                        FROM xxdl.xxdl_eam_wo_txn_accounts txn_acct
                                                ,apps.eam_work_orders_v wo
                              ,apps.mtl_eam_asset_numbers_v msn
                              ,apps.hz_cust_profile_classes cust_prof
                              ,(SELECT tasks.task_id
                                        ,tasks.project_id
                                        ,valid_pta.award_id
                                        ,valid_pta.award_number
                                        ,(SELECT DISTINCT project_number
                                          FROM xxdl.xxdl_valid_pta_combinations
                                          WHERE project_id = tasks.project_id
                                          ) project_number
                                        ,tasks.task_number
                                        ,tasks.task_name
                                        ,tasks.description
                                        ,tasks.service_type_code
                                        ,orgs.organization_id
                                        ,orgs.name department_code
                                        ,orgs.attribute1 department_name
                                        ,orgs.attribute4 budget_unit
                                FROM pa.pa_tasks tasks
                                     ,xxdl.xxdl_valid_pta_combinations valid_pta
                                     ,hr.hr_all_organization_units orgs
                                WHERE orgs.organization_id = tasks.carrying_out_organization_id
                                   AND valid_pta.task_id    = tasks.task_id
                               ) budget_department
                         WHERE txn_acct.organization_id    = wo.organization_id
                           AND msn.current_organization_id = wo.organization_id
                           AND wo.organization_id          = :app_organization_id
                           AND txn_acct.cost_bucket        ='MATERIAL'
                           AND txn_acct.work_order_id      = wo.wip_entity_id
                                          AND msn.serial_number           = wo.asset_number
                          -- AND wo.work_order_status        = 'Draft'
                           AND budget_department.project_id = txn_acct.project_id
                           AND budget_department.task_id    = txn_acct.task_id
                           AND budget_department.award_id   = txn_acct.award_id
                           AND cust_prof.attribute1 (+)        = budget_department.budget_unit
                           AND cust_prof.status             = 'A'
                                         AND NVL(cust_prof.attribute2,budget_department.department_code) = budget_department.department_code
                                          AND wo.wip_entity_id  not in (select wip_entity_id from xxdl.xxdl_eam_its_pta_rollover where status != 'DRAFT')!'; 
IF :P2_PROJECT IS NOT NULL THEN
  l_query := l_query ||q'[ AND trim(budget_department.project_ID) = :P2_PROJECT ]';
  END IF;
IF :P2_TASK IS NOT NULL THEN
  l_query := l_query ||q'[ AND trim(budget_department.task_ID) = :P2_TASK ]';
  END IF;
IF :P2_award IS NOT NULL THEN
  l_query := l_query ||q'[ AND trim(budget_department.award_id) = :P2_AWARD ]';
  END IF;
RETURN l_query;
EXCEPTION
WHEN OTHERS THEN
  RAISE_APPLICATION_ERROR(-20001,'The system faced an unhandled exception. Please contact System Administrators for resolution with the following error code :ITS-201 ('''||SQLERRM||''').'   );   
END;
Conditional query of region
pl/sql body returning boolean
IF :P2_PROJECT IS NOT NULL and :P2_task IS NOT NULL and :p2_award IS NOT NULL  and :p2_PTA IS NOT NULL THEN
  RETURN TRUE;
ELSE
  RETURN FALSE;
END IF;

Selecting all rows will never work if you have more than one page. Instead of that, you could set some kind of a flag item to a value if the select all checkbox is checked (set it to null if unchecked). If this flag is selected, your process expecting that should go over the whole resultset and process it.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
http://apex.oracle.com/pls/otn/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
-------------------------------------------------------------------

Similar Messages

  • Dynamic Tables in PDF - repeating Header row in all pages

    Hi ,
          I have created a dynamic table in PDF, When I add rows, the table is spanning to next page, and I should get the header row in all pages. But, I am getting the header row only for the 2nd page(In Header row properties, I have choosed the header row to be displayed in all pages). I need the Header row to be displayed in all pages.
        To see the previous thread, Click [here|Dynamic Table -  same data repeating in all rows;.
    Thanks and Regards,
    Prabhakar.

    Hi Prabhakar,
    Try out with following step
    Header Row -> Binding -> Select the check box
    Repeat Row for each Data item (Min Count 1)
    Please let me know if this is working or not.
    Cheers
    Satya

  • About 2 weeks ago, not able to print all pages in a .pdf document using internet explorer 11?

    About 2 weeks ago, not able to print all pages in a .pdf document stored in a folder (I'm using Windows 7)? 
    It only prints 1 page then my Brother MFC-J4510DW Printer says "Please put another piece of paper in the feed slot"....the problem is the print setting is set to "manual mode" in Windows 7 rather than "general setting".  If you try to change the setting to "general", it will not accept the change.

    Hi.
    I did try using the printParams feature and it worked, but since I need to be able to print sets of non-consecutive pages,  I end up having to bring up the print dialogue multiple times and have the user set watermarks each time. 
    I decided to just create a new pdf in a temp directory containing the selected pages and open this document in a new window.  This works well and allows them to use the print button on the window to print, bringing up the print dialogue just once.  However, since I need to open the document in a way that shows the print button, I am using OpenInWindowEx, with AV_DOC_VIEW, and the option PDUseBookmarks or PDUseThumbs, rather than PDUseNone.  This displays a toolbar which also includes icons for creating a new pdf, deleting pages, etc.  I do not really want to include these icons on the toolbar.  Is there a way to remove unwanted icons from the toolbar, or make them invisible?
    Hope this makes sense.  Thanks for your help.
    Mary

  • [ADF-11.1.2] Link on adf tabel does not select row before navigation

    Hi,
    I have a List of Contries displayed in table with a view button on panel collection toolbar. User Select the country row, which makes changes current row of country View Iterator binding on page, and click on view button, which navigates to detail page of selected country. This works fine.
    But I want to reduce the number for clicks made by user. So I converted one of column of county table to link with the same action as view button. So now... User Selects the row, click on link button of selected row, navigation works fine. But when user directly clicks on link, without selecting row, it navigates to last selected row (or probabily the first row when user open the table for first time).
    I was under impression that when link is there under af|column, adf would internally selects the row before any action happens otherwise what's the use of having link in column ?.
    Please correct me, if I am worng.

    Ahh sorry... My bad.
    I am using firefox 10 which seems not supported yet.
    I tried on IE 9 and chrome and it's working fine there.
    I will try with firefox 4 and post here in case if I find any issue.

  • How do you select everything on all pages? "Select All" does only a single page.

    I can't seem to figure out how to select everything on all 20 pages of my document at one time. The "Select All" function only selects everything on a single page. (which is hardly "all")
    I am making a PDF and creating my text to shapes/outlines. Do I seriously have to "select all" and "convert text" 20 times, once on each of my 20 pages? Its taking forever. Help me streamline, please.
    x, Little Bill

    For whatever reason, there have been several posts about converting text to outlines. It really needs to be emphasized that converting text to outline is extremely poor workflow and should be avoided at all cost. If the sole reason for converting to outlines are font issues, you need to learn how to make PDFs correctly. And if it's a printer request, you should (if possible) solicit quotes elsewhere. Wasn't there a poster a few weeks back who neglected to save a copy of his file before coverting text to outlines? Just for that reason alone you should never outline text. Guarantee that day will come when you forget to dupe the ID file so you can edit again at a later time. I would package a job and send the printer the ID file along with fonts and images before I sent them PDF with fonts converted to outlines. And I haven't done either of the two in years.

  • Single checkbox not selected

    I know this is not a javscript forum.. (WISH THERE WAS ONE On SUN.COM)..and i am sorry to post it here.. but the problem is JSP and javascript
    I have multiple checboxes.. Something like Yahoo mail.. When the inbox is opened the number of checkboxes correspond to the number of mails on that page..along with an extra one at the very top(called it Header_checkbox).. If header_checkbox is selected.. all the mails are selected and one can either delete or move the mails..
    My form is kinda similar.. I have multiple rows.. and depending on the number of rows, the checkboxes are displayed.. the Javascript function works fine if there are more than one checkboxes...It doesnt work if theres a single one.. well not a big deal since the user can click on the single checkbox and it shld be fine.. but i am curious to know why it isnt working for a single one. When i try to display the checkbox.length it gives me "undefined" (this is incase theres only one chekcbox)... for multiple chekcboxes it gives the rite number.
    Heres the code if anyone has suggestions
    Thank you
    function toggle(frm)
       var checkbox_length = frm.checks.length;
        alert(checkbox_length);
       for( var i = 0; i < checkbox_length; i++ )
          frm.checks.checked = frm.tog.checked;
    [HTML CODE]
    <FORM name="editFormatForm" method="post" action="edit_delete_filetype_format.jsp">
    <tr class="titleitem">
    <td><input type="checkbox" name="tog" onclick="javascript:toggle(this.form);"></td>
    <td>Fieldname��</td>
    <td>Format��</td>
    <td>Unique?</td>
    <td>Optional?</td>
    <td>Description</td>
    <td></td><td></td>
    </tr>
    <%
    if (fileTypeList.size() > 0)
    for (int k = 0; k < fileTypeList.size(); k++)
    formatObject = (FiletypeFormatObject) fileTypeList.get(k);
    id = formatObject.getId();
    columnName = formatObject.getColumnName();
    columnFormat = formatObject.getColumnFormat();
    uniqueness = formatObject.getColumnUnique();
    description = formatObject.getDescription();
    optional_int = formatObject.getColumnOptional();
    count++;
    %>
    <tr class="<%=htmlObj.getClassString(count)%>">
    <td><input type="checkbox" name="checks" value="<%=id%>"></td>
    <td><input type="text" name="columnName" value="<%=columnName%>"></td>
    <td><input type="text" name="columnFormat" size='30' value="<%=columnFormat%>"></td>
    <td><input type="checkbox" name="unique" <% if(uniqueness == 1) { %> checked <%}%>></td>
    <td><input type="checkbox" name="optional" <% if (optional_int == 1) { %> checked <%} %>></td>
    <td><input type="text" name="description" value="<%=description%>"></td>
    </tr>
    <% } } count++; %>
    <tr class="<%=htmlObj.getClassString(count)%>"><td></td><td><input type="submit" value="Submit Changes"></td>
    <td colspan="12"><input type="submit" value="delete"></td></tr>
    <% count++; %>
    <tr class="<%=htmlObj.getClassString(count)%>"><td></td><td colspan="12">�</td></tr>
    <% count++; %>
    <tr class="<%=htmlObj.getClassString(count)%>"><td></td><td><input value="Enter New Field..."></td>
    <td><input value=""></td><td><input type="checkbox"></td><td><input type="checkbox"></td>
    <td><input type="submit" value="Add Field"></td><td></td></tr>
    </FORM>
    [END OF HTML CODE]

    The browser creates a DOM (Document Object Model) of the document and the elements in the document. In this DOM it references the elements on the page by name. If there is more than one element with the same name it creates an array of these elements and puts the array in the DOM but if there is only one element it places this element in the array.
    If there is only one checkbox with the name "checks" this will be the object referred to as "rm.checks" and this element doesn't have an length property.
    function toggle(frm)
    var checkbox_length = frm.checks.length;
    if (checkbox_length != undefined) {
        for( var i = 0; i < checkbox_length; i++ )
           frm.checks.checked = frm.tog.checked;
    } else {
    frm.checks.checked = frm.tog.checked;

  • OBIEE not selecting columns from all LTS of a Conforming Degener@teDimen$ion

    Hello everyone
        I have a Degener@teDimen$ion Dimension A it has 4 LTS ( Fact1, Fact1A ,Fact2 and FACT2A).--> FACTS from
    Physical Layer.. FACTS in BMM are FACT_ONe and FACT_TWO.
    columns in Degener@teDimen$ion Dimension A
    col1 --> mapped to all 4 LTS(logical source). It is the key column.
    col2 --> mapped to all 4 LTS(logical source)
    col3 --> mapped to all 4 LTS(logical source)
    The content Tab of the LTS for this Dimension are mapped to Detail of
    Dimension Hierarchy name is DDimension A
    Dimension Hierarchy name is DDimension A, Levels in it are
    Total --> This has all the fact columns from FACT1 and FACT2. Basically dragged dropped from facts to
    this level.
    & Detail ---> It has col1,col2 and col3 and Degener@teDimen$ion Dimension A.
    FACT_ONE --> Fact1, Fact1A are LTS for this fact 
    FACT_TWO --> Fact2 and FACT2A are LTS for this fact.
    When i am doing a analysis with
    Year, Degener@teDimen$ion_Dimension A_COL2 , FACT_ONE.measure1, FACT_TWO.measure1
    It is basically showing the dimension value of FACT_TWO.measure1 only...
    even the select statement is not having column from FACT_ONE...
    Like
    select x,y, col2 from fact_two full outer join select x,y from fact_one...> I just provided this
    syntax just for an idea.. the this fact_one is not having that column in the select..
    I referred this link
    "http://www.rittmanmead.com/2010/01/oracle-bi-ee-10-1-3-4-1-modeling-degenerate-dimensions-fact-attributes/"
    and others but i am not able to find the reason why it is not issuing a select...
    Just to add more in the Total level of the hierarchy, if i added FACT_TWO only removed FACT_ONE measures..
    it is showing only fact_one value (this time the FACT_ONE SELECT is having col2 but not FACT_TWO)...
    the behaviuor is vice versa as well...

    I resolved this. The Issue is, when using Degener@teDimen$ion ( this is !nner joned to FACT tables in BMM) and if any of the dimensions {other than the Degener@teDimen$ion (Let us say Dim X) } have an ()uter join to any of the fact tables, and you were doing your analysis using Degener@teDimen$ion,  Dim X, Measure value you will face the following issues.
    when filtering the analysis on the ()uter join dimension ( Dim X), the IN filter will not work. Reason is that the filter is getting applied to both the Dimension and FACT tables and the values that exist in Dimension Dim X but not in FACT table wont show up.
         The above issue can be fixed by changing the join between the fact and Degener@teDimen$ion from inner to outer. I think this is a bug.. because  it is supposed to filter the fact  table after the entire outer joined result is obtained but not filter the fact table for the Dim X values and do a outer join. I think the BI should be intelligent enough.
         In order to solve the filtering issue what i did was mentioned in my Initial post. I think if we have the measures at the Totals level of dimension, it is picking the Degener@teDimen$ion,from the table that has less number of rows or the query from one of the two facts that gets submitted to database.. I couldn't find the relevant information in the oracle document though . . . .

  • Use checkbox to select rows in a af:table

    How to use a checkbox on the first column of a table as row selection control?
    Just like most of the web email client (Yahoo, Hotmail...).
    I am using JDeveloper 11.1.1.2 with Fusion Web Application - ADF.
    The control I am using is a <af:table>.
    Thanks,
    Samson Fu

    The sample you provide is very usefull. But it has some limitations to my working application. It dose not work for tables in clickToEdit mode. User has to click a row in the table to enable the selection checkbox, and the tick the checkbox again to have the row to be selected, if the table is in clickToEdit mode.
    Anyway, that is really a good example. Thank you!
    Regards,
    Samson Fu

  • Use checkbox to select rows in a table

    Is it possible to use a checkbox on the first column of a table as row selection control? Just like most of the web email client (Yahoo, Hotmail...).
    Thanks,
    Samson Fu

    I am using JDeveloper 11.1.1.2 <af:table>.
    Regards,
    Samson Fu

  • Firefox will not load pretty much all pages. Also I cannot get any add-ons. I made sure my firewall lets Firefox in. I just loaded it back on this computer, everything was fine before, now its crap.

    So I was running Firefox before. and my girlfriend told me to try google chrome out. So after about a month of trying it out, I prefered Firefox, so I loaded it back on, and now I can't open any pages or get access to the add-ons. I liked firefox before but I'm thinkging that its too much of a hastle to have to do this. But if it's fixable please tell me.21q

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.com/kb/Server+not+found
    *https://support.mozilla.com/kb/Firewalls
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    See also:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.com/kb/Firefox+crashes

  • Cursor not selecting part way down page?

    So i'm writing a novel using pages and after the first 147 pages (page set up changes so the page saize is that of a small book) if i'm more than 3/4 of the way down the page i can't move the cursor to the middle of a sentence to edit the sentence the only way it works is if i use my arrow keys. Does anyone have a solution? Thank you!

    Thanks! If you don't know about Facing Pages you probably don't use it.  You can find out if you lokk in the Inspector palette > Document tab.
    I would advise you to use default page sizes, like Letter or A4, until you written all text.

  • "Include Header Row in Subsequent Pages" is not working for table

    Hi,
    I'm using version 8.1.2.3337.1.509884.
    The pagnation feature "Include Header Row in Subsequent Pages" is not working for any table in my design. ( the check-box can not be checked no matter how many times I clicking it)
    I put such table already in a flow bodypage.
    Any similar issue reported?
    Any suggestions?
    Thanks.
    -Vicky

    Hi Raghu,
    Appologies that I uploaded a wrong version of xdp file yesterday.
    Here is the correct one.
    https://acrobat.com/#d=jr0XffvBZWXd0cVhL0OQ3A
    I totally understand that I have to check the checkbox "Include Header Row in Subsequent Pages".
    My problem is that, although I can see that checkbox, and it's not grey-out, I can not tick it. See below screenshot, with the red-cycle mark.
    You can try with above file.
    Just wondering why such weird behavior happened.
    -Vicky

  • How to disply the selected row in dataTabe in JSF

    Hello Team,
    I have one datatable.& in that table i have one coloumn (checkBox are present in that coloumn).when i first go on that page i select some particular row.& submit the page.but when i again revisit that page i show some selected & not selected rows.& i done print functionality on that page.
    but when i am printing that page whole row is disply to print but i want to print only that row which is selected.
    Please help me in this functionality.

    Is your print functionality opening up on a new pop up? If not, you will get all the rows. The Print button should open a pop up through a Backing bean in which you would pick up only the selected rows for display. Once the pop up is shown, onload you would fire the javascript print.
    For any JSF related queries, please use the JSF forum.

  • How to get the selected rows in a table

    Hi,
    How to get the ids of all the selected rows. On Page load a query is executed that shows the data in a table with a checkbox in the first column to select the rows and delete. Now if a user select multiple rows how do I get the ids of selected rows in the backend code.
    Thanks

    Please search the forum before posting questions.
    refer following thread for table selection.
    Re: Record selection with MessageCheckBox and print the selected record.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                           

  • How to add a html region for all pages ?

    Hi,
    How do i put a html text box with submit (Search this site) and a "select list" on all pages in my application.
    Something similar to creating a list in shared components and then put that list on all pages.
    Thanks in advance,
    Girish

    Create a page number 0. Any components you put on Page 0 are rendered on all pages in the application (You can conditionally exclude them from certain pages using the appropriate condition on the component)

Maybe you are looking for

  • How do I stop Firefox from automatically filling in the spaces for my username and password on one of my password protected websites?

    Firefox is automatically entering my username and password on my Sacramento State University secure password site. I am trying to get that function stopped. I do not want my username and password automatically entered in the spaces provided for log i

  • Order type in MTO  cycle

    I am using planning strategy 41 for a FG. I have created an  order type ZA01. this order type works for MTS cycle, whereas for a MTO, i am getting order type as PP01. i want to change it to ZA01. pl any suggestions

  • Current Year Leaderboard

    Dan and team, In addition to our great all time and monthly leader board I think it would be nice to have a current year leader board which reflects top contributors for current year. I believe it would be helpful for contributors to see how they are

  • Using fonts when launching from JNLP

    Hello, I followed the directions in this link http://fxexperience.com/2010/05/how-to-embed-fonts/ and was able to add and use fonts in my javafx program when launched from Netbeans. But when I try to launch from JNLP, the fonts do not show up (the te

  • Macbook Pro Install Disc

    Hello i was wondering if the Macbook Pro Install disc Version 3A136 - 10.5.2 2008 would work on a 17" macbook pro. Even though it doesn't actually say on the original disk that it is for a 15" MAcbook Pro. Cheers Adam