A change in apex 4.1?

Hi,
In my app, I have a process running after submit that prints out some javascript to close a modal popup, which worked pre 4.1 and now it doesnt. It only worked when there was no branches defined on the page.
Now it doesnt work anymore, and it seems that the page defaults to branch to itself when there is no branches??
To make it work I have to change my javascript to run before pagehead and set a condition on it. Also I have to create a branch with a request to make the condition on the javascript work.
Anyone knows if its intentional that the page now defaults to branching to itself when there is no branches defined?

Hi,
yes that was an intentional change in 4.0 to automatically branch to the current page if no branch or no branch condition evaluated to true.
In 4.1 this logic was changed to always reset the HTTP buffer before writing the redirect into the HTTP buffer, because the problem was that the redirect was ignored by the browser if somebody wrote data to the HTTP buffer before the redirect was written.
If you want to write something to the HTTP buffer during accept, just add a
apex_application.stop_apex_engine;at the end of your code to instruct APEX to not continue with its default processing.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf

Similar Messages

  • How to handle source code changes in apex

    hi all,
    can anybody help me plz...
    how to handle source code changes in apex.
    which development process is best suite for apex.
    Regards
    Alekh

    Thanks Andy, so as per the suggestion we have to handle the above snippet as individual if block statements as i had shown below.
    But in this case how we show the else part as NULL.
    correct me if my understanding is wrong.
    if  'Products' in (:P1_ENG_GRP1, :P1_ENG_GRP2, :P_ENG_GRP3) then
                    lv_to_email_id :='[email protected]';
    end if;
    if  'Materials' in (:P1_ENG_GRP1, :P1_ENG_GRP2, :P_ENG_GRP3) then
               lv_to_email_id :='[email protected]';
    end if;Thanks,
    Anoo..

  • Change the APEX at the URL

    Hello all,
    I'd like to know if it's possible to change/remove the APEX from the URL, something like: http://192.168.20.1:8080/apex/f?p=200:1 to http://192.168.20.1/f?p=200:1.
    Is it possible to change on Apex App, GlassFish or IIS config?
    Thanks in advance,
    Alan Martini.
    Edited by: Alan Martini on 21/03/2011 14:52

    Couple of methods are discussed here : Patrick's Blog
    A simple method using frames is discussed here
    Might not be exactly what you are looking for, but should give you some ideas.

  • Is it possible change path /apex to something else

    Hi,
    Is it possible change default path /apex to something else when using Apex listener?
    Regards,
    Jari

    Hi,
    When I remove policy for Apex listener I can see this
    SEVERE: Error listenerStart
    Aug 23, 2011 10:12:40 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [/htmldb] startup failed due to previous errors
    Aug 23, 2011 10:12:40 AM oracle.jdbc.driver.OracleDriver registerMBeans
    WARNING: Error while registering Oracle JDBC Diagnosability MBean.
    java.security.AccessControlException: access denied (javax.management.MBeanServerPermission createMBeanServer)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
         at java.security.AccessController.checkPermission(AccessController.java:546)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:500)
         at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:320)
         at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:199)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.jdbc.driver.OracleDriver.<clinit>(OracleDriver.java:195)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:247)
         at sun.misc.Service$LazyIterator.next(Service.java:271)
         at java.sql.DriverService.run(DriverManager.java:664)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.sql.DriverManager.loadInitialDrivers(DriverManager.java:506)
         at java.sql.DriverManager.initialize(DriverManager.java:612)
         at java.sql.DriverManager.getDrivers(DriverManager.java:356)
         at org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1581)
         at org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1499)
         at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:734)
         at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4398)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4246)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
         at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:744)
         at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:144)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:738)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
         at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
         at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)But I'm not sure about does my logging work ok. See below link about Ubuntu 8.04 and Tomcat 5.5 logs
    http://serverfault.com/questions/73626/missing-logs-tomcat-5-5-ubuntu-8-04
    Regards,
    Jari
    Edited by: jarola on Aug 23, 2011 10:48 AM
    I did find this also from /var/log/tomcat5.5/localhost-XXXX-XX-XX.log
    Aug 23, 2011 10:12:40 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Exception sending context initialized event to listener instance of class oracle.dbtools.rt.web.SCListener
    java.security.AccessControlException: access denied (java.util.PropertyPermission apex.home read)
            at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
            at java.security.AccessController.checkPermission(AccessController.java:546)
            at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
            at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
            at java.lang.System.getProperty(System.java:650)
            at oracle.dbtools.apex.config.ApexConfigFile.choose(ApexConfigFile.java:53)
            at oracle.dbtools.apex.config.ApexConfig.init(ApexConfig.java:154)
            at oracle.dbtools.rt.web.SCListener.contextInitialized(SCListener.java:33)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
            at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:744)
            at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:144)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:738)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
            at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
            at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
            at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
            at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
            at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
            at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
            at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
            at org.apache.catalina.core.StandardService.start(StandardService.java:448)
            at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
            at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)

  • Changing the APEX framework Error Message

    I was wondering if anyone could help me out here.  I am faced with a security issue where I need to hide any and all APEX framework error messages.  Specifically, I need to hide the error messages on the screen you get when trying to access an application that doesnt exists (the whitescreen with the red "x").  This had been implemented already in the past, however, the 4.2 upgrade knocked it out.  To change this in 4.1.1 is just a matter modifying the APEX_040100.WWV_FLOW_ERROR package.
    Does anyone have any suggestions here?  Any and all would be appreciated!
    Thanks in advance,
    Shawn

    What is the specific security issue you are facing?
    This sounds like a generic penetration test, perhaps something along the lines of "Error messages reveal the underlying technology" or "Error messages can contain information helpful to an attacker". This is because of the ORA- messages. I would push back on this and see if you can argue the point that;
    a) The technology can not be hidden, we (for example) have written detection routines for nessus to detect APEX without relying on any error output.
    b) Ask for a *specific* example where the framework error message has lessened the security posture of the application/framework.
    c) If you cannot then you really do need help to ensure that any changes/patches to the framework do not decrease application stability. What is the risk to the business? Can the business accept this low risk?
    d) Just because somebody saw an 'ORA-01403: no data found' message once doesn't instantly mean you are insecure.
    Though saying that, it would be a good feature to suggest, certainly a 'turn all errors off' might easily combat these types of over-zealous security reports: https://apex.oracle.com/pls/apex/f?p=55447
    regards,

  • DB IP changed ans apex not working

    Dear All,
    We have changed the ip address of the database server (oracle 10.2.0.1) and after that apex (4.0) is not opening. Please let me know what needs to be done. Thanks.
    Regards,
    Anand.

    I am using the default XDB gateway and i searched for dads.conf , but that file is not available.
    I have changed the local_listener and restarted the listener, but no luck,
    Show parameter local_listener
    local_listener string (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.25.82)(PORT = 1521))
    I have further probed and identified the below package to change the IP,
    begin
    dbms_xdb.setlistenerendpoint(
    endpoint => dbms_xdb.XDB_ENDPOINT_HTTP
    , host => '10.10.25.82'
    , port => 8080
    , protocol => dbms_xdb.XDB_PROTOCOL_TCP);
    end;
    SQL> begin
    2 dbms_xdb.setlistenerendpoint(
    3 endpoint => dbms_xdb.XDB_ENDPOINT_HTTP
    4 , host => '10.10.25.82'
    5 , port => 6060
    6 , protocol => dbms_xdb.XDB_PROTOCOL_TCP);
    7 end;
    8 /
    endpoint => dbms_xdb.XDB_ENDPOINT_HTTP
    ERROR at line 3:
    ORA-06550: line 3, column 22:
    PLS-00302: component 'XDB_ENDPOINT_HTTP' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    But it gives the following error on my db which is 10.2.0.4 SE but the same is executing in 10.2.0.1 XE.
    Please let me know if anything can be done other than reinstalling apex. Thanks.
    Regards,
    Anand.

  • Aligment Changes in Apex

    Hi,
    I am Using Select type as a report and SQl Query ( SELECT * FROM TABLENAME)and theme is 20 traditional Blue.
    I want to change the Alignmnet on my page to center. but it is showing Left side of the page.
    How to get the Alignment of this page ?
    i tried like HTML tags like <STYLE type="text/css"> BODY {text-align: center} </STYLE>
    Advance Thanks ...
    Regards,
    Mohan

    Always include the following information when asking a question:
    <ul>
    <li>Full APEX version</li>
    <li>Full DB/version/edition/host OS</li>
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)</li>
    <li>Browser(s) and version(s) used</li>
    <li>Theme</li>
    <li>Template(s)</li>
    <li>Region/item type(s)</li>
    </ul>
    And search the forum before posting a new question to save everyone's time
    837142 wrote:
    Hi,
    I am Using Select type as a report and SQl Query ( SELECT * FROM TABLENAME)and theme is 20 traditional Blue.
    I want to change the Alignmnet on my page to center. but it is showing Left side of the page.
    How to get the Alignment of this page ?
    i tried like HTML tags like <STYLE type="text/css"> BODY {text-align: center} </STYLE>
    Edit your apex region > Region Attributes > add this
    //amend the width attribute accordingly
    style="width:500px; margin:0 auto;"see this {message:id=10401282}

  • ORACLE Password Change using APEX FORM

    Greetings!
    I would like to find out, if there is a utility or a sample page that permits the Database password changes for the DB users within the Database. My goal is for users to maintain password using the Browser, instead of using SQL*Plus or similar Windows tools
    Thanks in advance for your help!
    Muni

    So if you and I can both authenticate to this application, we will necessarily have separate accounts, say in the Application Express account repository of that application's workspace. Our accounts will each have a password that is not synchronized with our database account password. The application will allow me (SCOTT) to change only the database account named SCOTT and will allow you (VIKAS) to change only the database account named VIKAS. That rule would make it unnecessary for the provided form to provide an input field for the database account name (it would be pre-populated). Unfortunately, the chosen authentication method requires each of us to remember our application password, and, if the application is built correctly, to remember our old database password as well. (Implementing that verification has its own issues.) If the application used LDAP then a mapping table would be needed to relate [email protected] to VIKAS. Every time a new database user needed the self-service password facility, a new user account (and a new password), and a new mapping table entry would have to be created. All of that complexity is eliminated if the application uses Database Account credentials authentication -- a new database user is created, the user can authenticate to the application and use it; the database user is removed, the user can no longer authenticate.
    Let's not confuse the aim of providing a self-service "change my database password" application (the original requirement) with the simpler task of providing a super-user-oriented database account management page (like we did in XE).
    Scott

  • DB column name changes and APEX

    All,
    I found out that the database architect is planning to make changes to several of the column names in all of the tables I use in a large application. So...rather than open every screen, every condition, every procedure, etc. looking for the db fields I need to change, I am hoping I can find a way to do it in sql*plus.
    At a minimum, I hope to be able to create a report for each table/column referenced in the application that will show the pages and places where it is referenced. Any ideas?
    Thanks,
    Steve

    Patrick directed me to the Object Dependencies report - and it would work but you have to click on the "count" to see where it is referenced. I am hoping for a detail report. Patrick also suggested editing an application export to do global column name changes - that will also work. If you have done it differently, let me know.
    Steve

  • Someone changed the apex admin URL then left the co; how can I retrieve it?

    Hi alll
    I have an XE database running an APEX site at http://127.0.0.1/ port 80
    http://127.0.0.1/apex is 404 NOT FOUND
    How can I find the admin URL of the apex? This is Windows 64 bit
    Edited by: charred on Feb 14, 2012 10:33 AM

    Hi,
    which XE-release did you configure how to run which APEX on port 80?
    Basically, the error message you receive tells you you don't have APEX on port 80...
    Note that the default port for the APEX shipped with XE would be 8080.
    The Admin-URL for apex would usually be http://<yourhost>:<yourport>/apex/apex_admin
    -Udo

  • How to change the default apex port

    hi,
    i am installed apex4.0 in EBS R12 DB with HTTP Server method. my apex is running from application server 10g and default port is 7777.
    URl: http://hostname:7777/pls/apex
    My EBS R12 running on http://hostname:8007.
    is it possible to change the apex port to EBS Apache port(8007) in R12 and finally i want to change above URL like this
    Before change : http://hostname:7777/pls/apex
    After Change : http://hostname:8007/pls/apex
    Thanks in advanace....

    How to Change the Default SSH Port from Terminal ?
    now showing default SSH Port 22 i need change it pls help me how can do

  • Changing passwords using APEX and Database Credentials

    We are developing an application that uses database credentials. We can login very easily. Is there a simple way to create a page so that the users can change their own passwords? I understand that the users will in effect be issuing an ALTER USER statement from within APEX. However, we get an "Insufficient Privileges" error message when issuing the command from APEX. So, whose credentials is APEX using?

    J,
    So, whose credentials is APEX using?
    There are no credentials involved here. All code in your PL/SQL application is parsed as the schema that owns the application. When you implement your PL/SQL application using Application Express, that schema is the "Owner" attribute, or parsing schema.
    See Re: ORACLE Password Change using APEX FORM
    Scott

  • To whom it might interest - "bulk" changes to the apex repository

    For those who might be interested in methods for "bulk" changing the apex repository, especially for medium large applications, i wrote a few queries that may come in handy for common problems like :
    - "how to change template on all labels currently set to "Optional"?
    - "how to quickly delete a region with a given name from multiple pages in one shot?"
    - "how to check if there are items or buttons attached to a region?"
    and stuff like that...
    The list of queries that i initially supplied is supposed to grow in the future.
    Of course this kind of practice is absolutely unsupported, officially discouraged, so, use at your own risk.
    http://oraclequirks.blogspot.com/2008/10/some-examples-of-bulk-changes-to-apex.html
    Flavio
    http://oraclequirks.blogspot.com

    Hi Flavio
    Your post didn't appear to set session state anywhere, which tends to screw things up.
    ie. your objects "disappear" from your workspace and get reassigned to flow_id 0.
    I always do the following before any changes:
    declare
    l_flow_id number := 101; /** set to match application */
    l_company_id number := 1203342054321505; /** set to match application */
    l_user varchar2(30) := 'MARK'; /** set to match application */
    l_sgid number := wwv_flow.get_current_flow_sgid(l_flow_id,l_company_id);
    l_csize number := 12;
    begin
    -- set Apex context
    apex_application.g_user := l_user;
    wwv_flow.g_flow_id := l_flow_id;
    if l_sgid is not null then
    wwv_flow_api.set_security_group_id(p_security_group_id=&gt;l_sgid);
    else
    raise_application_error(-20000,'Security group ID not found - must fix before can continue.');
    end if;
    /*** now do your changes ***/
    end;

  • Changing theme template in my APEX applications by scripts

    Hello every body,
    I wonder if there any issue to change my APEX applications themes by script ?
    Best Regards

    Anton,
    1) When you export your application 100 from within Application Express from your old instance and you compare it to the one generated, are there any significant differences?
    2) Can you export your application 100 from within Application Express from your old instance and import it back into the same (old) instance but with a different application identifier?
    Joel

  • Apex changing IE.css

    Hello,
    I'd like to change the Apex IE css file, can someone tell me how to do it? Because the rendering of my apps is not good looking in IE. I just need to know how to access the file.
    ps: I work on a 10g DB
    Tyia,
    Cheers,
    Arnaud
    Edited by: Arnaud Reper on Dec 23, 2008 2:10 AM

    Hey Arnaud,
    Depending on whether you are running Apex using 10g XE or 10g + HTTP Server the file is on a different location.
    On the 10g XE version it is supposed to be inside the database using xdb.
    If you are using 10g + http server it will be in the directory you installed the apex images.
    Hope this helps.
    Nils

Maybe you are looking for

  • How do i get my library from one computer to another?

    My iTunes library is on an older PC that I don't use anymore. I want to move the files to my newer computer. The older computer will NOT connect to the internet... The two computers are close to each other. I'm wondering if I can set up a network wit

  • Cell Definition in the query

    Hi Experts, Iam new cell definitions in the query. can anyone please explain an easy example scenario using cell definition and the reason why we go for it eventhough we can do all the filters in the query definition windows as well. Thanks, DV

  • Photoshop CS6 doesn't recognize my NVIDIA GeForce GTX 675M GPU?

    I just bought a brand new Alienware M17x R4 with Windows 8 Pro x64 and Photoshop CS6 won't recognize my NVIDIA GeForce GTX 675M GPU? I've already updated Windows 8, Photoshop and the Nvidia graphics driver. Any ideas?  I spent so much on a nice graph

  • Excel not showing up as a "Save As" option

    I have an existing pdf that I'd like to save as an Excel Spreadsheet but that option isn't showing up in the drop down list (Word shows up fine). It's not in the Export drop down either. Is there a setting somewhere that I should know about? I'm usin

  • Print the Assembly Parent Item Code only on the AR Invoice

    Hi Experts, We have this scenario wherein for certain assembly items we want only the Parent Item code to appear on the AR Invoice; printed for the customer. How can we achieve this? Is it possible to specify particular field in the layout? As per ou