Row ranges  1-15, 16-30 in select list has refresh problem

Hi, Gurus:
I use APEX 4.1.1 with Oracle 11GR2. I have a question that was discussed before here, but I still have trouble to understand it. I have some reports that cannot refresh content when I choose another page of the same report. I used row ranges 1-15, 16-30 in select list with pagination. It did not work. However, I used the exactly same report page settings for some other queries producing exactly same columns, except the query logic is slightly different thus number of rows in report are different. row ranges 1-15, 16-30 in select list with pagination works well in other reports.
I came across discussions and set partial page refresh to no for those report pages with refreshment problem. This time it worked well, but it was extremely slow as my query is very slow. I was wondering why some of report do not need to set partial page refresh to no and have no problem to refresh, but some of reports have problem to refresh (I even copied the report page without problem for those reports with problem and just change queries.)? Is there any other way to refresh these reports quicker other than SQL tuing?
Please help me.
Sam
Edited by: lxiscas on Dec 31, 2012 11:36 AM
Edited by: lxiscas on Dec 31, 2012 11:49 AM

I just found that it is due cache page settings, I should set it to no as a developer

Similar Messages

  • CPY-0007: Select list has fewer columns than destination table

    hello, I need your help, here is my problem is summarized in my example below
    Exemple
    SQL> copy from XX/X@BD1 to YY/Y@BD2 insert TABL1(COL1,COL2)-
    using select COL1,COL2 from TABL1
    Array fetch/bind size is 15. (arraysize is 15)
    Will commit when done. (copycommit is 0)
    Maximum long size is 80. (long is 80)
    CPY-0007: Select list has fewer columns than destination table
    DESC TABL 1
    COL1, COL2 DESC
    thank u.

    bahan wrote:
    hello, I need your help, here is my problem is summarized in my example below
    Exemple
    SQL> copy from XX/X@BD1 to YY/Y@BD2 insert TABL1(COL1,COL2)-
    using select COL1,COL2 from TABL1
    Array fetch/bind size is 15. (arraysize is 15)
    Will commit when done. (copycommit is 0)
    Maximum long size is 80. (long is 80)
    CPY-0007: Select list has fewer columns than destination table
    DESC TABL 1
    COL1, COL2 DESC
    thank u.
    00007,0, "Select list has fewer columns than destination table\n"
    // *Cause: On an APPEND operation or INSERT (when the table
    //          exists), the number of columns in the SELECT
    //          command is less than the number of columns in the
    //          destination table.
    // *Action: Re-specify the COPY command, making sure that the
    //          number of columns being selected agrees with the
    //          number in the destination table.

  • CPY0007: Select list has fewer columns than destination table

    Hi,
    I have two table TB in both Database A and Database B. TB in Database A has 100 columns, TB in Database B appended one more column which is nullable. I'm copy TB data from A to B using something like:
    insert into TB select * from TB@A where ...
    And I got error:
    CPY0007: Select list has fewer columns than destination table.
    Besides specify the 100 columns plus one new column, any better ways to handle this?
    Thanks a lot.

    This is kind of dangerous genarally but if you know the additional column is on the end this might work.
    insert into TB select a.*, null from TB@A a where ...If this is a regular operation, I would strongly suggest biting the bullet and specifying the column names. Using desc or all_tab_columns and a simple text editor it should take no more than five minutes, which is at least 12 hours less than you have been waiting for a workaround.

  • Inserting multiple rows into a table using a multiple-select list

    I'm trying to figure out how to take the output of a multiple-select list (":" separated list of values) and use that to update a table by inserting multiple rows based on the values. Is there a straight-forward way to do that in APEX?
    Thanks.
    Chris

    Hi Chris,
    I think this should give you what you need: Working with a Multiple Select List Item
    --Jennifer                                                                                                                                                                                                                                                                                                                                                                                                   

  • Dynamic select list without refreshing.

    Hello,
    There might be some other people having the same problem as me and I do apologise if the solution is already posted in the forum.
    I have a select list with it's LOV as a select query from say table A and next to this, i have a link which call a popup and allow user to enter a new entry to table A. My question is how can i see my newly created item in the select list without manually refreshing the page?
    Any help would be greatly appreciated.
    Venus

    Hi Venus,
    You can call a bit of javascript that will append the new value to the end of the options list:
    function addNewItem(itemValue, itemText)
    var list = document.getElementById("SelectListID");
    var listsize = list.length;
    var opt = new Option;
    opt.value = itemValue;
    opt.text = itemText;
    list.options[listsize] = opt;
    Then you just need to call the addNewItem function and pass it the value and text to be added onto the select list options.
    Regards
    Andy

  • How to Fix Select list with redirect Problem

    Hi
    I have a field F1 of type select list with redirect.
    It has an LOV with 2 values USA and Canada for eg..
    I choose USA and hit save and saved it to DB..
    now f1 is stored in table with my User ID and value is USA.
    when I log in next into this page,
    this field should show me the value USA.
    But its not happeneing for me..it always gives the null value when i re login
    is there a way to default/source it to my value??
    I am using
    select f1 from table
    where user_id=:user_id;
    i checked and this query works in sql plus...

    Earl, please see the response in italics for each of your questions below:
    You do want your default value to be one of the values in the select list. Otherwise why would you want the value there at all?
    So, then should I have a default value at all? And, if yes, then what should it be?
    And can't you just set the default value to the first value in your select list, whatever that is, so the first value is the selected value?
    I did that and it works, only if the first value in the select list is always going to be there.  The select list is based on a column data in a table.  And if the data for that column changes then the values in the select list will change.  And, the first value might not always be the same.
    I guess I'm not clear why this isn't doing what you want, besides the fact that
    you seemed to have removed the default value from the dynamic select list query, which you shouldn't do.
    I removed the first value (it could have been any values) from the select list to mimic the "dynamic" select list -- just to test.  The select list data is based on a table and the data in the table can change.
    Thanks
    DP

  • Javascript / Select List with Submit problems

    I have a page (page 3) where I can either edit or create a record. If I am editing a record, the data loads on page 3 via a PL/SQL block. On page 3, I have a textual item with Javascript linked to it which pops up a new window. In the Javascript, I am passing three values to the next page. Two of those values (P3_ITEM1, P3_ITEM2) are 'Select List with Submit'. If I am creating a new record from page 3, the Javascript works fine and the popup window comes up when I click on the textual item. However, if I am editing an existing record, I get an error when I click on my textual link. Looking at the address bar, it is not passing the value of P3_ITEM1 and P3_ITEM2 to the next page. It does, however, pass the value of P3_ITEM3 (not a 'Select List with Submit') to the next page. Again, the Javascript popup works fine if I use the 'Select List with Submit' fields to populate P3_ITEM1 and P3_ITEM2 (i.e. if I submit those fields) and it does not work if P3_ITEM1 and P3_ITEM2 are already populated when page 3 loads (i.e. if I do not submit those fields). Looking at the session variables, it appears as though P3_ITEM1 and P3_ITEM2 are set prior to clicking the link which initiates the Javascript. However, the URL in the popup window says the value of those fields is 'undefined'. Does anybody have any idea what I can do to make this work or why it is not working? Thanks.
    -Chris

    Hello Chris,
    It seems like you are having some problem with setting/reading session state, but it’s really hard to pin point the problem without seeing any code. Can you post your two pages on apex.oracle.com?
    Regards,
    Arie.

  • How to fix "Select List with Submit" Problem

    I have a report with two regions. Region1 has a list item which is set to "Select List with Submit". Based on the list/item value selected in the Region1, the data is displayed in the Region 2.
    Question: How do I ge the report, Region2, to have the data populated based on the first value in the list when the page is loaded - for the first time. Currently, when the page is accessed, the list has the first value selected in the Region1 list item by default, but the Region2 is blank.
    DP
    Edited by: user4115675 on Jan 14, 2010 9:37 AM

    Earl, please see the response in italics for each of your questions below:
    You do want your default value to be one of the values in the select list. Otherwise why would you want the value there at all?
    So, then should I have a default value at all? And, if yes, then what should it be?
    And can't you just set the default value to the first value in your select list, whatever that is, so the first value is the selected value?
    I did that and it works, only if the first value in the select list is always going to be there.  The select list is based on a column data in a table.  And if the data for that column changes then the values in the select list will change.  And, the first value might not always be the same.
    I guess I'm not clear why this isn't doing what you want, besides the fact that
    you seemed to have removed the default value from the dynamic select list query, which you shouldn't do.
    I removed the first value (it could have been any values) from the select list to mimic the "dynamic" select list -- just to test.  The select list data is based on a table and the data in the table can change.
    Thanks
    DP

  • With Mail 8.0, the SMTP server selection list has gone?!

    Hi,
    I use one primary IMAP email account, but multiple addresses, and I have to send my emails using different SMTP servers, according to the email address domains. Now, before updating to OS X 10.10 Yosemite, in the New Mail window, there always was a "Send Using" SMTP server selector right next to the email address selector. Now that's gone, and I can't figure out how to bring it back.
    So now I'm unable to send email using other than my primary domain address.
    Any ideas?
    In fact, if someone could tell me how to directly assign a specific SMTP server to an email address (not to an email account! Remember: I have multiple addresses in one account) - that would be of great help, too.
    Thanks much in advance!

    I too would like to have the option of being able to select which smtp server to use for each email. Often when I am at a client location I have to use my tethered cellphone for network connection and this requires a specific telco smtp server to be used. Currently now there is a wait while Mail tries a few times with the primary smtp server associated with the account (my normal provider I reach when at home on the broadband) and some indeterminate time later it decides to poll the next server on the list (the telco one). Once it has done this successfully once then further emails seem to get routed immediately to the current smtp server. But the first time each day is a lottery on how long it will take.

  • Automatic row fetch based on a select list

    db11gxe , apex 4.0 , firefox 24 ,
    hi all ,
    i want to do automatic row fetch when the value of a select list changes ?
    but first i should ofcourse create a tabular form to fetch the data into it , but what i want is ,if i fetch 2 rows then the report contains only two rows , if i fetch 3 , the report contains only 3
    , if i fetch nothing , the report has nothing ?
    thanks

    Assuming all your page items are on separate rows, under your Page Attributes Header and Footer section, add the below function under Header Text:
    <script>
    function f_toggleNM() {
       // if P2_ATTACHMENT_TYPE value is D, then show row holding P2_CUSTOM_NAME and P2_CUSTOM_MSG. Else hide them
       $f_Show_On_Value_Item_Row('P2_ATTACHMENT_TYPE', [ 'P2_CUSTOM_NAME', 'P2_CUSTOM_MSG' ], 'C');
       // if P2_ATTACHMENT_TYPE value is C, then show row holding P2_DEFAULT_NAME and P2_DEFAULT_MSG. Else hide them
       $f_Show_On_Value_Item_Row('P2_ATTACHMENT_TYPE', [ 'P2_DEFAULT_NAME', 'P2_DEFAULT_MSG' ], 'D');
    </script>Under Footer Text, add the below:
    <script>
    f_toggleNM();
    </script>And on the P2_ATTACHMENT_TYPE item, Element tab, HTML Form Element Attributes, add below:
    onchange="f_toggleNM();"Hope this helps. Thanks!
    JMcG

  • Select list pagination not working for big tables

    Hi,
    i am trying to view a table with large amount of data using tabular form. the pagination using select list is not working in this page. i have selected select list kind of pagination but it is showing "row range 1-15 16-30(with set pagination)' type of pagination. when i lowered the amount of data in the table the pagination type will automatically change to select list pagination. could you please tell me why this happens and any possible work around if any.
    Thanks,
    Jo

    Hi Jo,
    I don't know what you call a large amount of records, but the effect you describe might be intentional by apex.
    The select list pagination would generate a selection tag with (number of records in table/15) options in your page HTML.
    Although there isn't a hard limit to the number of options a select list can have there certainly is a limit to what your browser/pc can render.
    Think about it
    Let's say you table contains a million rows. this would result to a select list with 66666 options. Which your browser won't handle :)
    I very possible the apex team resolved this by simply reverting to row range pagination when the number of select options would grow to large.
    Geert

  • Select List Query Restriction

    Hello,
    Hopefully this is a quick one.
    I'm trying to restrict the results of a query in a report by using a select list with a named dynamic LOV. Basically the report will only display rows that are the same as the value currently in the select list. My problem is that I'm trying to have an 'All' value in the select list that will result in all rows being displayed.
    I have tried using a LIKE in the query and setting the LOV to display null, then setting the null return value to %%%. This works exactly how i want it to if I hard code it into the query. However, when I try to use it as a value in the select list no rows are returned. The variable in the URL looks fine however it's not translating properly.
    Has anyone got any suggestions or alternate ways of doing the same thing?
    Cheers.

    Yes that has fixed the problem, either way % or %%% wasn't working.
    However adding the ||'%' to the end of the select list variable in the query appears to have fixed the problem. I don't understand why though, it should have worked with the null return value of %...
    Thanks a lot.

  • Multiple Select List does not Refresh with Dynamic Action

    All,
    Scenario:
    Using APEX 4.2.2, I have a Select List page item (P4_SPONSOR) set to allow multiple values which has a dynamic LOV to populate the list.  What I would like to do is highlight the display values based on another page item's value (P4_DRIVER_ID).  When I set the source of P4_SPONSOR to static text, such as a delimited string of 1:2:3:4, any display values where the return values are equal to the static text are highlighted when the page loads.
    Problem:
    The problem lies in trying to use a query as a source for P4_SPONSOR which is filtered based on the other page item, P4_DRIVER_ID.  For instance, my SQL Query (returning colon separated values) returns the same as the static text noted above.  In the query's WHERE clause, I specify that the driver's ID is equal to P4_DRIVER_ID:
    SELECT sponsor_id
    FROM sponsors_drivers_xref
    WHERE driver_id = :P4_DRIVER_ID;
    This, as I understand it, would necessitate a refresh of P4_SPONSOR whenever the value of P4_DRIVER_ID changes.  So, I have a Dynamic Action that does just that.  When executed on the page, I can see the P4_SPONSOR multiple select list actually refresh, but none of the display values become highlighted.
    Thoughts?
    Thanks,
    -Seth.

    Seth,
    A dynamic action refresh of your select list will refresh the list of values (this is what you are seeing), it will not refresh the value of the item itself.  In fact, it will remove any values that you had already selected.  To refresh the value you will need to add additional dynamic actions.
    Create another dynamic action with:
    Event: After Refresh
    Selection Type: Item(s)
    Item(s): P4_SPONSOR
    If this was a normal select list you could just create a Set Value action and use your query to set the value of the select list.  Since this is a multiple select list your will need to get your colon delimited value first and then use some javascript to set the values of your select list.
    Create an hidden page item name P4_SPONSOR_TEMP.
    Add a true action to your new dynamic action:
    Action: Set Value
    Set Type: SQL Statement
    SQL Statement:
    SELECT sponsor_id
    FROM sponsors_drivers_xref
    WHERE driver_id = :P4_DRIVER_ID;
    Page Items to Submit: P4_DRIVER_ID
    Selection Type: Item(s)
    Item(s): P4_SPONSOR_TEMP
    Add another true action to your new dynamic action:
    Action: Set Value
    Set Type: JavaScript Expression
    JavaScript Expression:
    $("#P4_SPONSOR_TEMP").val().split(":")
    Selection Type: Item(s)
    Item(s): P4_SPONSOR
    --Jeff

  • How to default a value in a select list

    Hi
    I have an item on the page which is displayed as a select list.
    The select list has an lov that returns 3 values as follows:
    ACAD1M
    ACAD2H
    ACAD3T
    the sql for this lov is as follows:
    select CAL_TYPE d,cal_type r
    from igs_ca_type
    where s_cal_cat='ACADEMIC'
    It needs to return the values in the order as shown above, however if the user does not select anything from the select list, I want it to default to the value in the middle of the list(ACAD2H)
    I tried using default on the item but I could not get this to work.
    Could someone explain how I can get the select list in HTMLDB to default to the value that I want regardless of which position it appears in the select list it always seems to default to the value at the top of the list.

    Hello Kay,
    A default value for a select list must be set to a legitimate returned value from the select list LOV query.
    The default value should be set in the item "Default" section. In the "Default Value" field you should enter your query – in a form of a PL/SQL Function Body – and set the "Default Value Type" field accordingly.
    The following is an example of code I'm using to set the default value of a select list to be the first displayed option (set by the user, and recorded in the dispord column):
    declare
      l_sno  number;
    begin
      select sno
      into l_sno
      from mis_mess_users
      where dispord = (select min(dispord)
                     from mis_mess_users);
      return l_sno;
    end;Using the same principle, you can use any query that will give you the result you need.
    Regards,
    Arie.

  • Pass Select list value to URL as a parameter

    I am trying to pass the selected value from a select list via a button to a URL.
    &P_VALUE=&P_VALUE.
    P_VALUE is set to USER SESSION.
    It shows as prevous session value. If I show the the session value is not set to the selected value.
    If I call a PDF report via a button, it displays the correct value and the session values is correct.
    If I select the button for the URL again, is shows the previous value.
    When I go back to the form and call select the button again, the correct parameter is passed to the URL.
    Any Ideas?
    Thanks,
    Jerry

    If you use substitution at the time, the button gets generated, you don't have the new value - the button is generated with the rest of the page, and then later the user changes value of the select list. You have two choices:
    1)Use Select list with submit - and transfer the user to second page using branch (which get's calculated after submit when select list has already the new value)
    2)Use Javascript to catch the onChange/onClick event of SelectList, read the current value and do the redirect from JavaScript.

Maybe you are looking for

  • Problem in installation of Oracle Express

    I have problem in installation of Oracle Express 6 My problem is that when i click the setup file it doesnt go anyfurther and the computer does not hang even.And even if i try to run the setup file again i get the same response. i am installing all t

  • Getting Windows XP to recognize an external FW drive

    I've got my Mac Powerbook working fine in a Windows XP network environment. Everybody sees each other and file transfers go fine. My problem is when I add external firewire drives. My Mac will see any external drive I add to my Windows XP machine. Ho

  • Message Driven Bean with Java Message Queue down

    I have the following problem deploying my application. It uses JMS and a remote openMQ for communication between servers. The problem is that the connection is not fully reliable so it can be up or down. For reconnecting I set the jms reconnect glass

  • Apple TV update

    I just updated my apple tv to version 2.4 and now every time my iMac goes to sleep (with iTunes open), it disconnects the apple tv from iTunes. It did not do this before. Any help?

  • Network Two Printer in Different Rooms

    I currently have a airport extreme with a shared printer connected to it. My my two printers can print to this shared printer like it is supposed to. I would like to add another shared printer, however I want it in a different room than where my airp