Javascript alert when showing all rows of a huge table ( 2000 rows)

i've got this problem. I need to show all the rows of a table, i'm using ADF 10.1.3.4.
What have i done so far?first of all i created a command link
<af:commandLink shortDesc="Mostra Tutto" id="showAll"
disabled="#{bindings.findAllVwEntePrmzRefrIter.estimatedRowCount == 0}"
action="#{backing_editReferenza.onShowAll}"
/>
In the backing bean i set the rangeSize of the table to -1
public String onShowAll() {
Object objShowAll = getSession().getAttribute("showAll");
FacesContext fc = FacesContext.getCurrentInstance();
ValueBinding vb = fc.getApplication().createValueBinding("#{bindings.findAllVwEntePrmzRefrIter}");
DCIteratorBinding dc = (DCIteratorBinding)vb.getValue(fc);
int oldRangeSize = dc.getRangeSize();
dc.setRangeSize(-1);
int rangeSize = dc.getAllRowsInRange().length;
dc.setRangeSize(oldRangeSize);
if ("Y".equals(objShowAll)) {
getSession().removeAttribute("showAll");
Integer oldRange =
(Integer)getSession().getAttribute("oldRangeSize");
getSession().removeAttribute("oldRangeSize");
getTable1().setRows(oldRange);
} else {
getSession().setAttribute("showAll", "Y");
getSession().setAttribute("oldRangeSize", oldRangeSize);
getTable1().setRows(rangeSize);
return "";
// AdfFacesContext.getCurrentInstance().addPartialTarget(getTable1());
Everything runs smoothly, but i have a problem if the table has lots of rows: i get a javascript warning that a script has been running for too long. (The alert goes: "Stop the execution of the script?" the usual javascript alert you get when a script runs for too long)
What i want to achievt is that, if the table contains a lot of rows, the page takes a lot of time to load, but with no javascript involved (it's just a normal slow page).
It seems that in some way the rows of the table are fetched by javascript and since the call is synchronous, it trigger the alert.
This is how i declared the method iterator
<methodIterator id="findAllVwEntePrmzRefrIter"
Binds="findAllVwEntePrmzRefr.result"
DataControl="FePrmzSLESSEJBLocal" RangeSize="10"
BeanClass="it.ws.sma.prmz.ejb.model.VwEntePrmzRefr"
Refresh="deferred"
/>
and this is how i declared the table
<af:table value="#{bindings.findAllVwEntePrmzRefr1.collectionModel}"
var="row" styleClass="tableRefr #{backing_editReferenza.tableReferenzeStyleClass}"
rows="#{bindings.findAllVwEntePrmzRefr1.rangeSize}"
first="#{bindings.findAllVwEntePrmzRefr1.rangeStart}"
emptyText="#{bindings.findAllVwEntePrmzRefr1.viewable ? 'Nessuna referenza trovata' : 'Accesso negato'}"
binding="#{backing_editReferenza.table1}" id="table1"
banding="row" bandingInterval="1"
partialTriggers="btnEliminaRefr btnSvuotaPromo btnRemove btnAdd insVeloce">
has anyone an idea onwhat could i do to have the table load all the rows from the server but withouth the alert?

Sorry i haven't explain it well...
the app is used to replicate entire databases, or agrupations of tables, from one database to another and it will have to be vendor independent... I'm trying with DB2, Oracle and MySQL. Later i will test it with more.
Then I couldn't use vendor dependent SQL neither configuration parameters. Also I prefer to make the import logging the actions: for restoring purposes; maybe the user will have the option but defaults to the ohter.
I'm thinking about some "strange" query SQL Stardard, like delete from table where (select .... using some kind of counter....

Similar Messages

  • How to throw a JavaScript alert when connection to LMS is lost?

    I've been through all the JS, and I still cannot find a place where I can detect whether or not the connection to the LMS is lost (API).
    I can throw an error when it initializes - that's no problem. But I want to be able to throw an alert when the connection is lost while the SWF is playing.
    Has anyone done this?
    Thanks!

    I don't think that there is any "stock" function that does that so you would need to write it yourself.
    You could probably achieve it by writing a function that will check for a value in the LMS and if that fails then display your alert. Pick a SCORM field that you are sure contains data and the fetch the data through JavaScript. If it returns a value then do nothing but if it doesn't return a value then display the alert.
    Trouble is that you would either need to make the funtion run a timed loop or call it manually from each of your slides (perhaps on slide enter or slide exit).
    /Michael
    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

  • Frame 8 crashes when showing all conditional text

    When I try to Show ALL conditions in my Frame 8 file, Frame crashes. I just recently installed CS4 on my system, but other than that, nothing has changed. I have had no problems with conditional text and this file before. Wondering if anyone has had this issue and knows a workaround or fix. Thanks, sandra

    Good, then you're all patched up, that's great.
    I don't use conditional text at all, but several folks around here do and will be along to offer some help.
    Can you identify whether this crash is a result of adding a new condition recently? Had showing all conditions had previously worked?

  • Why can I only delete music from my phone (with itunes match) when "show all music" is selected

    This is pretty messed up... I can't delete any music from my phone unless I have the "show all music" command turned on.  This is the complete opposite from how it should be.  Please get it together, Apple!

    Thanks for your reply.  I mean that only when all of my music in the cloud is shown on my phone can I delete the music stored on my phone.  I should be able to delete music that is stored on my phone when I can view ONLY the music that is taking up the phone's memory.

  • Garbled text when showing all opened tabs

    starting today when using mozilla nightly android 34.0a1 (2014-08-16)
    seeing garbled text when viewing all opened tabs
    strangely when I slide my finger up / down there appears to be
    two separate text layers overlaying each other both getting rendered
    see screenshot http://tinypic.com/r/2use4hk/8
    until today this was fine however I did see this some weeks ago which was fine until again today

    I can't reproduce this on a Nexus 5 and today's nightly build.

  • Why se11 does not show all the columns of a table

    I have some text tables, e.g., T6WP4, when I look in SE11 it show me only two columns:
    MANDT and ETIF0.
    But when I look in contents of this table (SE16 or clicking table content icon in SE11), it show three columns:
    MANDT and ETIF0 and ETITX.
    I found this to be true with some other text bales as well TMBW1

    Hi zigzagdna,
    in SE11, Menu Goto -> text table you will switch to the text table. Look at the foreign key definition to see the relationship marked as text table.
    This is one of the basic concepts to enable a SAP-system to be  multi-language enabled - although 99% of all installations are strictly single monolingual -:)
    See also documentation [Text Tables|http://help.sap.com/saphelp_47x200/helpdata/en/cf/21ea9e446011d189700000e8322d00/frameset.htm], [Type of Foreign Key Fields|http://help.sap.com/saphelp_47x200/helpdata/en/b2/fbb85cc64611d295dd00a0c929b3c3/frameset.htm] and [Semantic Attributes of Foreign Keys|http://help.sap.com/saphelp_47x200/helpdata/en/cf/21ea91446011d189700000e8322d00/content.htm]
    It is a SAP feature that in SE16/SE16N the text is displayed in logon language if a text table is defined for the table displayed. If you want to maintain those table directly, you have to specify the language explicitly, usual SY-LANGU can be used as the LOGON language. Be aware that this is one-charcater internal (E=English) but 2-character external (EN = English, conversion exit used).
    Regards,
    Clemens

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

  • How can I turn off the "Show All" navigation option from af:table?

    I would like to hide the "Show All" option from the navigation menu of af:table. Any clues/thoughts on how to do that ?
    Please help !
    Thanks a lot
    Message was edited by:
    samsam
    Message was edited by:
    samsam

    In Vista you can set the volume and mute setting for each application separately in the volume mixer.
    You can click the Volume icon on the Windows Taskbar near the clock and click the Mixer link at the bottom to open the mixer.<br />
    You can adjust the volume level for each application in that window.<br />
    You will only see the Firefox program in the Mixer if you are on a website that plays sound.

  • Monitor or alert when the all license consumed

    Good afternoon!
    We are using Business Object Enterprise XI R2- Product version 11.5.11.1470. We purchased 15 concurrent licenses.
    Currently, we have desinged our Java application that consumes only 1 license for 1 report processing.
    Java Web app(using Java SDK)
    Obtain a session -> process report -> export it to proper format(ReportExportFormat.processHttpRequest) -> log off the session.
    We would like to chage the application toward consuming more licenses using schedulling like below.
    Obtain a sesison -> schedule a report -> release the session
    Obtain a session -> see a list of scheduled reports by a user - release the session
    Obtain a session -> download the report -> release the session
    Is there any way to monitor if we exceed the number of licenses on the server for audit purpose?
    Thanks,
    Sung

    Thank you for your answer.
    Our product is relatively new and we keep adding customers.
    We could certainly see the error that the license has been consumed all on production.
    However, it also means the customer already failed to pull the report on production by the time we saw the errors.
    Not a good user experience.
    We have 15 concurrent licenses now.
    What I would like to do is having a warning (or whatever) when the license consumed nearly all, say all 13 licenses are used.
    If it is not possible, I am wondering what kinds of monitoring methods the XI server provides instead of throwing errors to the customer. Does it have it??
    I hope I explain my goal clearly.

  • How can I show all results from my DB in reverse row order?

    So if I have three rows in the database, called John, Steve,
    Tom, if you usually display all results from a database to a web
    page, you will get just this order. I have found order by SQL
    syntax, but this orders numerically or alphabetically. How can I
    order the table contents backwards so that the rows wil read Tom,
    Steve, John?
    Thanks,
    Mark

    "15266" <[email protected]> wrote in message
    news:e4kbs9$poi$[email protected]..
    >I think it should be something like:
    >
    > SQLQuery = "SELECT * FROM HCT122 ORDER BY ?firstvalue?
    DESC"
    >
    > but how I define what is the first or last row name or
    number, without
    > referring to its name?
    You misunderstood Joe's answer. You don't have to know any of
    that. First
    and Last were names Joe chose for the columns holding the
    first and last
    name. Since you mentioned first names as your values, he used
    First (his
    first name column) to order by.
    In order to sort something, you have to know what it is
    you're sorting.
    Since you're unwisely using SELECT *, I'll make up column
    names for you.
    SELECT AB, BC, CD, DE
    FROM HCT122
    ORDER BY AB DESC
    Now all my records come back in reverse order by column AB.

  • Oracle 9 , show all SQL selects on  particular table

    I wish to do some analysis on all the database accesses to a table over a period like the last week for example. The db version is 9.2.0.5. I am looking for similar views to the V$SQL view but with longer retention or any useful queries.
    Regards

    To the best of my knowledge (and I'm referring to 10g so 9i will be lesser if not the same), the amount of space reserved by Oracle for storing SQL statements is limited and they are only held onto really for query re-use, so queries can disappear after a period of time if they are not being re-used, to make room for new queries coming along. And these will be cleared out if the database is shut down e.g. if there's a problem or if it's taken down for backup purposes etc.
    I don't believe Oracle holds onto SQL's for such long periods as you are describing. You may be lucky if the database is little used, but if it's a well used production system, then your time is going to be more limited.

  • Show all music shows duplicates

    When I turn on show all music my iphone shows duplicates of some songs. When I click the download it shows that it's downloading both and when its done it shows only one has downloaded. When I go on another phone with the same Apple id it doesn't show any duplicates when show all music is turned on. What do i do to stop the duplicates from my phone on the cloud

    Sounds like some songs listed in the Purchased section are not downloaded on the iPod. To download past pruchases to the iPod see:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • Table Control - Dinamic Height or show all lines

    Hello experts,
    I have a table control and I want to show all items of the internal table linked to the table control without any scroll. 
    There is a field in the table control option (SE51) call height where you can modify the lines in the table control.
    My question is how can I control it dynamically deleting the scroll by the program?
    Or as well if there is a possibility to make the table control make itself bigger depending on the number of lines are in the internal table?

    Hi,
    When u r entering the records in a table control. After teh entering 4or 5 records(it depends on u r transaction) when u want to move the pagedown. U have to write the code for automatically page down.
    if it's for bdc.  U have to write
    perform bdc_insert using bdc_okcode p+.
    This may not be correct syntax. slight variation will be there.
    Rewardpoints if useful.
    Regards
    (YUGANDHAR.P)

  • Not showing all equipment order in zreport ( SAP-PM)

    Dear Sir,
    I am working monthly perfomance report related of SAP -PM. which that show data of equipment order wise. these order is  create plant wise.
    i am fetching data through plant code and order final date .
    ***selection-screen*******
    t001w-werks OBLIGATORY,
    p_spmon TYPE s115-spmon OBLIGATORY,
    in this program i am using tables  AUFK, AFIH, and EQUZ.
    My problem is that  this report is not showing all data for only one plant.  becoz only two line item show in Table EQUZ according order date and plant. and  in table AFIH showing 10 line time. whenas  63 order has been created in that date .
    so, i want know that where is problen either my program or standard table EQUZ
    Plz guide me ......................
    Moderator Message: Basic Question . Thread Locked.
    Edited by: kishan P on May 12, 2011 12:39 PM

    Dear sir,
    I want fetch equipment no. of order from EQUZ. when i pass date from 01.03.2011 to 31.03.2011 then showing only one equipment number in EQUZ table.
    when as  63 orders has been created  between 01.03.2011 to 31.03.2011 which are showing in table AUFK and AFIH.
    in my z report  i am using table EQUZ for equipment no.
    so, i don't understand that why not showing all eqipment number in EQUZ table between 01.03.2011 to 31.03.2011
    this problen for only one plant (459B), rather than other plant (like 460A, 470A....................)  all data are showing in my report.
    Plz guide me......................

  • ADF: Printable page is not showing all the data

    Hi Everyone,
    I am using Jdev 11G.
    I have one ADF page with Read Only Table.The table has 14 columns.
    I have Print button at the bottom of the page. When i click on print button my page is converted to Printable page but it is showing only 10 columns.(so im unable to print all the data in the table)
    How can i make it to show all the columns in the table in printable page?
    Plz help.
    Any suggestions will be really grateful.
    Thanks.

    Hi Arun,
    In the following code: public SelectItem[] getAllPrinters() {
    if (allPrinters == null) {           // allPrinters is not defined. what type of object it is
    PrintService[] printers = PrintServiceLookup.lookupPrintServices(null, null);
    allPrinters = new SelectItem[printers.length];
    for (int i = 0; i < printers.length; i++) {
    SelectItem printer =
    new SelectItem(printers.getName(), printers[i].getName());
    allPrinters[i] = printer;
    return allPrinters;;;
    Variable allPrinters is not defined. what type of object it is?
    And also the same variable is referenced here <af:selectOneChoice label="Available Printers" partialTriggers="cb1"
    value="#{pageFlowScope.applicationPrinterBean.selectedPrinter}"
    id="soc1"
    autoSubmit="true">
    <f:selectItems value="#{pageFlowScope.applicationPrinterBean.allPrinters}" id="si1"/>
    </af:selectOneChoice>.
    Thanks.

Maybe you are looking for