Dynamic Action - Fire on Page Load problem

Greeeting,
i created report with dynamic action Event = page load and action = submit . Event scope = Bind,
But it is submitting page continously , and i want to submit once..
how i will handle this.. created example please click on link
http://apex.oracle.com/pls/apex/f?p=20294:3:1276651806269601:::::

Hi,
>
Earlier on you said:
Page 1 Sales
Page 2 Sales Detail
items in sales page are product name id and rate.
<b>Product name on Page1 is linked with sales detail page 2.</b>
>
How? From your query this relation is not evident.
>
Now you say:
Parameters:
1- From Date
2- Date
3- Choose Area
>
You logic is rather mixed up. What is it that you want to achieve? What are the default values for the 3 parameters, if any? Which value on Page 2 is being set while navigating from Page 1?
Two wrongs do not make a right. So first of all abandon the DA that Sumbit Page on Page Load and focus on the fundamental issue related to your logic.
The suggested modified query below is NOT WHAT YOU NEED FOR YOUR REQUIREMENT but I am posting it so that you can at least get the report running and then work to fix your logic.
SELECT SS.OUTLET_ID,
  SS.CAT_ID,
  SS.ITEM_CDE,
  SS.ITEM_NME,
  SUM(DECODE(RETURN_IND,'N',ITEM_QTY,'Y',ITEM_QTY*-1)) QTY,
  SUM(DECODE(RETURN_IND,'N',ITEM_QTY,'Y',ITEM_QTY*-1)*ITEM_RTE) AMT,
  O.OUTLET_NME
FROM
  (SELECT OSM.OUTLET_ID,
    PI.CAT_ID,
    PI.ITEM_CDE,
    PI.ITEM_NME ITEM_NME,
    OSM.RETURN_IND,
    OSD.ITEM_QTY,
    OSD.ITEM_RTE
  FROM OUTLET_PRICE OP,
    OUTLET_SALES_MASTER OSM,
    OUTLET_SALES_DETAIL OSD,
    POS_ITEM PI
  WHERE OSM.OUTLET_SALES_MASTER_ID = OSD.OUTLET_SALES_MASTER_ID
  AND OSM.OUTLET_ID                = OSD.OUTLET_ID
  AND OSD.OUTLET_PRICE_ID          = OP.OUTLET_PRICE_ID
  AND PI.ITEM_ID                   = OP.ITEM_ID
  /* AND OSM.OUTLET_ID                = :P2_SELECT_OUTLET
  AND OSM.CONSIDERED_DTE BETWEEN :P2_FROM AND :P2_TO */
  AND OSM.OUTLET_ID                LIKE NVL( :P2_SELECT_OUTLET,'%')
  AND OSM.CONSIDERED_DTE BETWEEN NVL(:P2_FROM,TRUNC(SYSDATE)-1) AND NVL(:P2_TO,TRUNC(SYSDATE))
  UNION ALL
  SELECT OSM.OUTLET_ID,
    PI.CAT_ID,
    PI.ITEM_CDE,
    PI.ITEM_NME ITEM_NME,
    OSM.RETURN_IND,
    OSD.ITEM_QTY,
    OSD.ITEM_RTE
  FROM OUTLET_PRICE OP,
    OUTLET_SALES_MASTER OSM,
    OUTLET_SALES_DETAIL OSD,
    ITEM I,
    ITEM_CATEGORY IC,
    POS_ITEM PI
  WHERE OSM.OUTLET_SALES_MASTER_ID = OSD.OUTLET_SALES_MASTER_ID
  AND OSM.OUTLET_ID                = OSD.OUTLET_ID
  --AND OSM.OUTLET_ID                = :P2_SELECT_OUTLET
  AND OSM.OUTLET_ID                LIKE NVL(:P2_SELECT_OUTLET,'%')
  AND OSD.OUTLET_PRICE_ID          = OP.OUTLET_PRICE_ID
  AND OP.ITEM_ID                   = I.ITEM_ID
  AND I.CAT_ID                     = IC.CAT_ID
  AND IC.TEMP_ITEM_ID              = PI.ITEM_ID
  /* AND OSM.CONSIDERED_DTE BETWEEN :P2_FROM AND :P2_TO */
  AND OSM.CONSIDERED_DTE BETWEEN NVL(:P2_FROM,TRUNC(SYSDATE)-1) AND NVL(:P2_TO,TRUNC(SYSDATE))
  )SS ,
  OUTLET O
WHERE SS.OUTLET_ID = O.OUTLET_ID
GROUP BY SS.OUTLET_ID,
  SS.CAT_ID,
  SS.ITEM_CDE,
  SS.ITEM_NME,
  O.OUTLET_NME
ORDER BY ITEM_NMECheers,

Similar Messages

  • APEX 4.0.1: restriction on maximum number of dynamic actions on a page?

    Hello,
    I would like to know if there is a restriction on the number of dynamic actions on a page.
    I have a page with 29 dynamic actions. All works fine on the page.
    If I create another dynamic action that only display an alert or does anything else, I have the error message HTTP 404 when I try do display the page.
    If I delete an old dynamic action and create a new one then the page works fine.
    So after several tests, it seems that there is a maximum number of DA on a page but can someone confirm that?
    Environment:
    APEX 4.0.1
    Embedded PL/SQL Gateway
    Regards,
    Sddc

    I stand corrected in that some limits are acknowledged:
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/limits.htm
    Where are people getting these ideas that normal form or "Codd" said that there was a
    limit on columns and if you had more columns than a database product found convenient to implement that it was a 'design defect'? I took database management as an undergrad and in grad school and there was NO rule about number of columns. Anyone who says there is is shoveling pure bs. Even if there were such a rule, and there isn't, it is very inadvisable for a vendor who allows 1000 columns in a table in their database product to impose a limit that is 1/10 of that in an interface to their database. (And btw you can create a table (A 'wide' table, in sqlserver with 30,000 columns according to this:
    http://msdn.microsoft.com/en-us/library/ms143432.aspx )
    Artificially dividing up data instruments that were administered/collected at one time into pieces in separate tables, just to make a vendor's developers' life easier and more convenient, or just to keep the product from competing with the extremely extremely expensive "enterprise" products the vendor sells, is not acceptable.
    Splitting highly related data into separate tables for no reason other than the
    interface is not capable of handling it, creates a load of problems that would not otherwise
    exist. What if the user enters less than all the parts? Then someone has to figure out if the parts not entered had no data recorded in the source or if they were simply accidentally skipped. Basically someone or a program would have to enter those pages and denote they had no content if that were the case. Much more logic, much more opportunity for error vs keeping data that was highly associated together.
    A software vendor can apply whatever limits they want and no one can stop them, that's for sure. But what would be better here is making these more clear up front. This is a "rad" development tool for very small and not hugely complex forms and reports. Be clear and there will not be people royally steamed over spending their time and money evaluating a product that is not designed to do much of what people need it to do. This stuff should be in an FAQ and the top of the forum.

  • Macbook Pro/Mozill​a Firefox --Page Loading Problems

    I experience 'page loading' problems when going from one page to another. Sometimes the page takes a long time to load. Sometimes it times out and never does load.
    Does anyone else with this combination of laptop and browser experience these problems? Any suggestions for overcoming this lag?

    I know OS X used to have some problems with the way some routers do DNS.  There was this topic a while ago:
    http://forums.verizon.com/t5/FiOS-Internet/DL-page​-load-speed-great-but-browser-quot-looking-up-quot​...
    For our Mac we had to set the router to send external IP addresses of a DNS system (either verizon's or something like OpenDNS which we use).
    You could manually change the DNS settings on the Mac to see if that fixes the problem and then you could mac the change the settings at the router level if you like.

  • Safari page load problems and 10.5.3

    Since I have upgraded to 10.5.3, I am experiencing Safari page load problems on all my user accounts on my 2.0 GHz Core Duo Black MacBook. I have reviewed threads in this forum and that of the Safari forum with no solution that solves the problem. so I post here in hopes of additional expert solution ideas.
    *The Problem:* Since upgrading to 10.5.3 Safari fails to complete page downloads for some, but not all websites. When these same websites are accessed with Firefox there is no problem. With Safari the page load will stop at about 75% completion, or the page will not load at all.
    Here is an example of a webpage that will not complete: http://www.realclearpolitics.com/
    Here is an example of a webpage that will not load at all: http://cherylsguitar.com/site (my wife's business)
    I also have a G4 iMac running 10.4.11 on the same WiFi network that does NOT experience the Safari page load problems. All is good and speedy on this trusty machine.
    *Solutions Attempted:*
    - Deleted plist (with no effect)
    - Re-installed Safari from Leopard disk (with no effect)
    - Scoured User Preferences in Library for offending applications, plug-ins, etc.
    - Reset PRAM
    - Reset and examined cable modem and router (AirPort Extreme 802.11g)
    *Hardware and Network info:*
    - 2.0 GHz Core Duo Black MacBook
    - 2 GB Ram
    - AirPort Extreme Base Station (generation 1) running 802.11g

    Allan Eckert wrote:
    Hi Perry Lehman;
    Have you cleared out your cookies?
    Allan
    Allan,
    Yes. I have reset Safari clearing all but website icons with no effect. I also tried turning of the Safari pop-up blocker with some very limited success. Disabling pop-up blocker will marginally help page load speed for some websites, but others still fail to load at all.
    Thanks for taking time to post.

  • Partial page load problem when using Muse in an existing non-Muse Masterpage; how to issue a jquery

    Partial page load problem when using Muse in an existing non-Muse Masterpage; how to issue a jquery args.get_isPartialLoad().
    My page is loaded into a palcehold within the Ajax update panel within the current Masterpage, so page loadload doesn't occur. But if my Muse page can capture  the partial pageload then I can tell jquery to run the Muse formating routine.

    Jackie,  I am having the same issue and agree that it obscures our site analytics.
    I only have the "WebMarketing" subscription - so I cannot see how often people visit my site (unless I just dont know how to view that).  Here is a screen shot of how many different locations I have and how much it affects my site visitor count based on the other locations which seem "legit" because they have more page views than visits.
    I hope there is a way to fix or block this.

  • Creating two dynamic action in a page

    Hi,
    I have created two dynamic action under the page_items(p6_item,p6_item1 both are hidden).
    First dynamic action under p6_item is action1.
    properties of action Event-> Change
    Selection_Type->Item
    Item-> p6_Item
    Value-> show
    (When i Hit the button viewall it should only display region1)
    True Action:
    sequence->10, Action->Show, Fire->Yes, Selection Type->region, Region->region1
    sequence->20, Action->Hide, Fire->Yes, Selection Type->region, Region->region2
    False action:
    sequence->30, Action->Hide, Fire->Yes, Selection Type->region, Region->region1
    Second Dynamic action under p6_item1 is action2
    properties of action Event-> Change
    Selection_Type->Item
    Item-> p6_Item1
    Value-> show
    (When i Hit the button Search it should only display region2)
    True Action:
    sequence->10, Action->Show, Fire->Yes, Selection Type->region, Region->region2
    sequence->20, Action->Hide, Fire->Yes, Selection Type->region, Region->region1
    False action:
    sequence->30, Action->Hide, Fire->Yes, Selection Type->region, Region->region2
    Here the problem is, when i hit the viewall button it is not displaying region1 instead region2 is displayin region1 is hidden. when i hit the Search Button it is displaying region2 , region1 is hidden. Foer me, When viewall hitted region1 should only display not region2. When Search button hitted region2 should only display not region1.

    Hi little foot,
    I have created my page in apex.oracle.com. you can clearly see the issue which i am having in the page.
    Workspace:listen
    Username: [email protected]
    Password:apex
    Application Name: 45665
    Page: page1

  • ADF Question: included jsp action firing after page load

    Hi all,
    I am using JDeveloper 10.1.3.3 and ADF + BC.
    Here is another interesting situation for you. I have a page with an included jsp at the top with tabbed navigation.
    My page is for entering an order. Users can have multiple orders "open" in other tabs at the same time. Users can also have many other non-order pages opened in tabs. We are using the same View Objects (Entity Based) along with Transient View Objects on each order.
    Each order tab needs to "remember" the orderId so that when the user clicks on a tab, the appropriate rows are set in the order that is to be "opened". This occurs in a tab's action() - setting the orderId and forwarding to the appropriate page (if different) or reloading the same page with the new id.
    On page load we try to get the tab's orderId and load that as the current row of all of our view objects. This should make it seem like they are all concurrently running.
    The problem is when going from order to order, once the tab is clicked, the page's OnPageLoad method runs BEFORE the action of the tab click is processed. Therefore the order that loads thinks it is the previous order, and does not load the correct View Object rows.
    Does anyone know how we can force the tab action to occur before the page load so that we can get the proper orderId?
    Thanks,
    Heather

    Thanks for your speedy reply Frank,
    We are using the onPageLoad from the OnPageLoadBackingBeanBase which implements the PagePhaseListener.
    In this we are doing something like:
            if (isPostback()) {
                String selectedTabNum =
                    EL.getAsString("#{TabCounter.currentSelectedTab}");
                String test = EL.getAsString("#{TabCounter.tabOrderId" + selectedTabNum + "}");
                System.out.println("tab num " + selectedTabNum);
                System.out.println( "testing " + test );
            }our tab counter (a session bean) has these two methods (among others):
        public void setCurrentSelectedTab(int currentSelectedTab) {
            this.currentSelectedTab = currentSelectedTab;
            for(int i=1;i<= 20; i++) {
                EL.set(BACKING_START+"selectedTab"+i+"}", false);
            EL.set(BACKING_START+"selectedTab"+currentSelectedTab+"}", true);
        public String getNextAvailableTab () {
            for(int i=2;i<=20;i++) {
                boolean isTab = (new Boolean (String.valueOf(EL.get(BACKING_START+"render"+i+"}")))).booleanValue();
                if (!isTab) {
                    return String.valueOf(i);
            return "0";
        }our tab header (request bean) has this method as the action for clicking a tab:
            System.out.println("handleTabNavigation");
            String componentId = actionEvent.getComponent().getId();
            String selectedTab = componentId.replaceFirst("tab","");
            int selectedTabNum = new Integer(selectedTab).intValue();
            EL.set("#{TabCounter.currentSelectedTab}", selectedTabNum);
            String tabType = EL.getAsString("#{TabCounter.tabType"+selectedTabNum+"}");
            if (tabType.equals("regular")) {
                String orderId = EL.getAsString("#{TabCounter.tabOrderId"+selectedTabNum+"}");
                EL.set("#{processScope.unfinishedHeaderId}", orderId);
            } else if (tabType.equals("standing")) {
                String orderId = EL.getAsString("#{TabCounter.tabOrderId"+selectedTabNum+"}");           
            }Thanks,
    Heather

  • Displaying "af:panel accordion" dynamically in UI when page loads

    Hi
    My problem is, whenever my homepage loads "af:panel accordian" should display dynamically in UI. Like, if I mention value 4 in manged bean it should display 4 panel accordion in UI when it loads, and if it is 6 then it should display 6 panel accordion in my homepage.
    Please help me in this issue. Looking forward for you response.
    Regards
    Venkat.S

    Hi
    Actually only one panel accordion will be in my UI(sorry for my previous message), but the "af:showdetailitem" under af:panel accordion will differ and the values of this will varies each time when the page loads. So dynamically i should add af:showDetailItem into this af:panelAccordion from manged bean.
    Regards
    Venkat.S

  • Web page load problem on iOS 6

    I have recently upgraded iPhone and iPad to iOS 6 and found certian problems while serving some of the website. furhter I did little analysis and found some secure sites which are using
    frames and calling external url in sided the frame  are have problem. I have noticed that left navigation which is part of main frame is coming properly while page load and when response is rendering from
    external call in body section of same frame, it overlaps previous rendered output. Further in one website which was use two external call had same behaviour that once one response is rendered its showing in web page but after rendering of response from another page
    It overlaps perious response.
    I had tried websites in different browsers and got same behaviour. I checked other versions and did not encountered this behaviour in iPhone 5, iPad 2, and iPhone 4s.

    I am having the same problem hopefully it gets fixed
    will check back here for a fix if you find one!
    League of legends news

  • Adding a dynamic region/dataset after page loads

    I am trying to dynamicaly add a new spry driven select box
    after the page has loaded to allow n select boxes to be displayed.
    My initial spry select is as below and works fine.
    <div id="orgDiv">
    <div id="orgDiv0" spry:region="dsOrg[0]">
    <select id="selOrg0"
    onchange='_addOrg(this.options[this.selectedIndex].value);'>
    <option>--- Select --- </option>
    <option spry:repeat="dsOrg[0]"
    value="{CHILD_ID}">{STR_TEXT} </option>
    </select>
    </div>
    </div>
    The onchange for the select triggers a JS function to add a
    new spry region div and select box to the page. All fine so far,
    the only problem is I need to initialise the new spry region as it
    has been inserted after the initial Spry.Data.initRegions();
    Theinitial spry region renders correctly but the javascript
    added node (second one) hasn't been initialised by spry:
    <div id="orgDiv0" class="">
    <select id="selOrg0"
    onchange="_addOrg(this.options[this.selectedIndex].value);">
    <option>--- Select --- </option>
    <option value="2">Group PLC </option>
    <option value="3">GSD </option>
    <option value="4">Country </option>
    </select>
    </div>
    <div id="orgDiv1" spry:region="dsOrg[1]">
    <select id="selOrg1"
    onchange="_addOrg(this.options[this.selectedIndex].value);">
    <option>--- Select --- </option>
    <option value="{CHILD_ID}"
    spry:repeat="dsOrg[1]">{STR_TEXT} </option>
    </select>
    </div>
    If I call Spry.Data.initRegions(); it just zaps the contents
    of my dynamically added div:
    <div id="orgDiv1" class=""/>
    Not so good...
    Is there a way to use the API to initialiase a new spry
    region using a new dataset after the page has loaded?

    Are you getting the error in jdeveloper or in the envrionment? If you are getting the error in the environment verify whether the region is present in the MDS repository. You can use the exec jdr_utils.printdocument('/oracle/apps/ar/cusstd/localizationExt/webui/SiteTabsRN') for verifying. try adding the region to the project if you get the issue in Jdeveloper.

  • Dynamic tables on one page - overflow problem with repeating header/footer

    Hi,
    with the help of the user RADZMAR I was able to create dynamic tables..
    But now, I have got the next problem.
    2 different tables are placed on 1 page.Each of them should be dynamic.
    Please let me list what is working, and what not:
    each textfield should be expandable (-> working)
    Table 01 should be overflowing to page 02 (-> working)
    Table 02 should be overflowing to page 02 (->working)
    Table 02 should be scrolling to page 02 if tabele 01 is growing (->working)
    Table 01 and Table 02 should be splittable (->working)
    header 02 + the footer 02 ( from table 02) should be repeated on every page (->working)
    header 02 + the footer 02 ( from table 02) should not be stand alone, indepentenly on which page (-> NOT WORKING)
    In other words:
    How can I reach, that the header and the footer enclose at least ONE textfield-row ?
    The setting "keep with previous / following" did not helped me.
    If the text in table 02 is large, the settings "keep with..." cause some layout destructions.
    This is the screenshot of the problem:
    Here you can download my doc:
    https://acrobat.com/#d=V*HZAV8VILZarp6gF0B3nw
    Thanks and Greetings
    Nuri

    Your question was "... but the font on the footer is much larger than that of the template", yes?
    I only can repeat, look at the difference of:
    1. index.html (Font-size > medium) >
    2. Calendar.html (Font-size > no entry):
    > "... font on the footer is much larger than that of the template",
    Hans-Günter
    P.S.
    See us again - maybe - at Monday > we will do a nice little trip to Austria.

  • Browser page loading problem!

    This problem has manifested itself on different occasions, however one particular very annoying thing is that I cannot get to a discussion page on a financial website (www.iii.co.uk). The page will not load with an error message that says "The connection was reset" and underneath - "The connection to the server was reset while the page was loading".
    NOW - this does not occur if I boot up the computer in OSX Lion or any other earlier OS, so it must be a change to the security settings somewhere within Moutain Lion - YES?
    Question is what do I have to do to allow this and other pages to load.
    The problem only exists on Mountain Lion and also is not specific to Safari, it also happens iif I use Firefox.
    Can anyone help? Any Apple personnel out there with an answer please??
    Mike.
    P.S. Please see picture.......

    I think my problem was due to the Firewall security settings. I have played around with them and it now seems to be OK. So fingers crossed!
    Mike.

  • Page Load Problem

    Help. I have a Flash swf file that is approx 5 mb. I've
    created a pre-loader that should run the preloader until the entire
    movie is loaded. Unfortunately that is not happening correctly.
    When I go to a browser to the URL that this file is uploaded to,
    the movie (including preloader) does not show up until the movie is
    at around 75% loaded. Even when I take out the preloader
    completely, I get the same results that it loads about 75% of the
    movie before it shows even the first frame. All I see is white and
    I can't have this. If anyone can help, please do. I'm desperate for
    this to be working properly.
    Here is the link to the movie, you should be able to see what
    is happening. (white page for a minute or so, preloader for 10
    seconds maybe, then the movie) I want preloader as soon as I go to
    the URL.
    http://ponyexpress.jcg.com/A-109/a109-tobin2.swf
    Thanks for any help.
    Tobin Rogers

    I'm actually not the one who built this module, but I
    understand that all the audio (which is a lot) is added dynamically
    and is exported in the first frame. Is there a workaround for
    this?

  • Flash play on page load problem

    helphelphelp please. i'm totally new to dreamweaver, so if
    this is completely pedestrian question i apologize.
    i've inserted a .swf animation file in a dreamweaver file
    (insert–media–flash) that i want to play when a viewer
    initially opens the site window on the finished site. i've assigned
    the "onLoad" event in the "control shockwave or flash" behavior in
    the bahavior panel. the file plays in the dw file - but nothing
    shows up when i preview the file in a browser. just a white screen.
    when i control click on the page in the brower it says the movie
    didn't load.
    where did i go wrong? again, i'm new to this stuff, but as
    far as i can tell, i've gone thorugh all the steps my book says i
    should. what am i missing?
    thanks in advance-
    d
    dreamweaver 8, flash 8, mac os 10.4.3, capricorn

    Let me make sure I understand.
    1. You have a swf file, and when you browse directly to that
    file, it plays
    in the browser.
    2. When you insert it on a page in DW (which version?), you
    get a gray box
    with an "F" in the middle?
    3. When you select that box, and press "Play" on the Property
    inspector,
    you get only a white box and no other activity?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Puzzle Ice" <[email protected]> wrote in
    message
    news:f7ng2a$bbt$[email protected]..
    > Hi Murray,
    >
    > I tried that. But, the swf displayed a white box even
    when I clicked on
    > the
    > play button at the DW design mode's properties. I
    verified that the swf
    > has no
    > problem, as I am able to launch the swf's content
    directly at window's
    > file
    > explorer as well as Flash appln. What could be wrong,
    the steps I took to
    > create the swf and DW's page are from McGraw's books.
    Pls adv.
    >

  • Strange page load problem

    Here is one for you. Recently a page I have been visiting often completely loads, then a moment later goes blank. Viewing the source code looks normal. I have deleted numerous files: Safari.plist, internetconfig.plist, cookies.plist, deleted the cache and icons. I just downloaded and reinstalled Safari and the problem still persists!
    The really strange thing is I can view any other page on the site normally. The problem page works in Firefox, Opera and IE5 (sort of). I have no problem with any other site or pages.
    FYI, the page is http://www.campusbooks.com
    What am I missing?
    Thanks,
    John
    OSX 10.3.8
    Safari 1.2

    I would just really like to know why this problem exists
    Sorry, I wish I could give you an answer there but I can't.
    Maybe it's caused by bad cache files (have you tried erasing the cache/resetting Safari?) or some enhancer application you're using (Saft, PithHelment for example).
    One quick test you can do to help narrow down things is browse with Safari in another user account. This will help us to know whether your problem is local to your account or system wide. If you don't have another account you can use System Preferences -> Accounts -> [+] to create a test one (and [-] to remove it if needed)

Maybe you are looking for