Is it possible to change Application Module at runtime?

Hi all!
I'm trying to change Application Module for my page at runtime. I've used such code:
  public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAWebBeanContainer webBeanContainer = (OAWebBeanContainer) webBean;
    webBeanContainer.setApplicationModuleDefinitionName("mypackage.MyAM");       
    webBeanContainer.setApplicationModuleUsageName("MyAM");
  }but I see that Application Module haven't been changed.
  public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
   System.out.println(pageContext.getApplicationModule(webBean).getFullName());
   System.out.println(pageContext.getApplicationModule(webBean).getDefFullName());   Is it possible to change Application Module at runtime?
How can I do it properly?
Pavel

The AppModule for a page is configured in an attribute of the root element of that page. Maybe that attribute is available at the OAWebBean parameter in processRequest.

Similar Messages

  • Is it possible to change application state from a component?

    I was wondering if it is possible to change application state from within a custom component and if so, what would the syntax be if I had an application named "zzz" and I wanted to change the app state from "state1" to "state2" from my component?
    Thanks!

    Hi,
    you always have a static class Application.
    Application.application will be the root component. After that you can change it state.
    Application.application.currentState = "state2";
    But it's not the best way to change states. It's better to dispatch events from components and change states in listeners.

  • Can i change application schema at runtime?

    I created a workspace with 3 schema (for instance three different customers).
    Just one application (starting with one of this three schema).
    I'd like to know if it is possible to choose (by code) at runtime the schema to associate to the application.
    thank you in advance to all.
    Francesco Galante

    Hi Seek78 !
    "Otherwise you can create 3 different home page in 3 different apps, that call directly the 4 "Main" app where the business logic in. Typically 1 app per schema."
    Let's say we have 2 applications : 100 et 101. I consider 101 is the main application.
    - 100 runs with schema SA, login page calls the 101 application page 1 after a successful logon
    - and 101 with schema SB, contains the business logic.
    When I login to application 100, schema SA, if login is successful then I get to application 101. But data displayed is the one of schema SB.
    This solution doesn't seem to work. Otherwise please indicate how I should implement the inheritance of the SA schema.
    As for the "ALTER SESSION", I tried it in the login process of my login page, writing it in an anonymous bloc. But I get the error ORA-06550. Here is the code :
    BEGIN
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    ALTER SESSION SET CURRENT_SCHEMA [MYSCHEMA];
    END;
    As APEX doesn't open a new database session when login a new user, where can we code this ALTER SESSION ?
    Thanks for your help,
    Fred.

  • Is it possible to change function module?

    Hi ABAPER's
       Once we activate smart form we will get one system generated fuction module.
    my question ? Is it possible to make changes in that function module.
    Thanks & Regards
    sathsih

    Hi,
    You cannot do directly in the FM, if you want you can modify the smartform. Automatically you will have the changes.
    Thanks,
    Sriram POnna.

  • Change application parameter during runtime

    Hello,
    I have a WD application that expects a parameter: system_name.
    The parameter is defined in the application parameter field and is correctly interpreted by the handledefault function of the startup event default.
    The handledefault event handle sets a context parameter mdm_system_name to the value of this input parameter.
    On the other side,
    I have an input field, where the context parameter mdm_system_name can be changed by the user.
    I would like to change the application parameter value in the URL , whenever the input field value has changed.
    Do you know whether this is possible?
    kind regards,
          Sahla

    Yes,you can.Just assign the new source to the source property of swfloader.

  • Is it possible to change memory size while runtime?

    Hi!
    Is it possible to set the Xmx value while runtime?
    I try to do something like this java Myclass -Xmx128mBut only in a dynamically way while my application is running.
    I'm developing an image-rendering - extension for an existing app and there's no chance to edit thejava XYZ statement.
    I don't think that's possible, but If anyone has an idea....
    Thanks!

    Yes. Both RAM and the hard drive are easily accessible and replaceable. The warranty is not voided because both are considered DIY. However, if you damage the computer in the process then your warranty will not cover that damage. But it is not voided.

  • Changing Application Availability_Status in runtime environment

    I have a monthly process where team leaders review and approve some data.
    I want to have the Apex Application (F200) with an Application Status of 'Unavailable' except during the brief period (three days) that the data is published for action.
    I am considering use of the Application Availability_Status but I don't want to have to involve a DBA or Apex Developer into the process each month.
    I have a second Application (F100) in this schema with access limited to the group responsiblefor the process. I would like to add a page where they can control availability of Application F200.
    Is there a procedure that will toggle the application between Available and Unavailable? Any other thoughts?
    Oracle 10g, Apex 3.2
    --Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Thank you Iloon,
    I was hopeful that the Apex Availability_Status would be available from within the Application to use for this purpose.
    After searching the Web I could not find any information on the idea.
    Seems silly to have to build/maintain an independent Authorization scheme when Apex has one. But then, if Oracle does not provide an API hook to use the feature, it would be best not to back-door the APEX_030xxx Schema and abuse it!
    -Rob

  • GP - Email templates-is it possible to change Email title at runtime

    Hello Gurus,
    We have a requirement in GP , we need to show value of one of the context parameter in Email Title, is it possible? if yes,please post snap shot of the Code here......
    Thanks & Regards,
    Veera.

    Reply from SAP..
    Hi Veera, Using the standard mail templates in GP, it is not possible to add context variables for the mail subject. These can be only added to the mail content.
    You can submit a development request at; www.service.sap.com/drq Here they will;
    1) Provide a fix specifically for your system.
    OR 2) Provide you with the most up-to -date information on whether this is something that is being developed or will be in the future.
    OR 3) Put this down on a 'wishlist' for you.
    I am closing this thread...

  • Is it possible to change Enhancement Set at  runtime ?

    If yes plz give an example

    Hi Anjeyulu,
    You can set the Enhancement Set in the Implementation for the Badi - Component_Loading, Method - Get Active Enhancement Set, as already mentioned by Bhushan. Here you need to assign the required Enhancement Set name to the Returning Parameter of the method - RV_RESULT. For  e.g., if you want to load a particular enhancement set for a business role, you can code as follows -
    DATA: lr_profile TYPE REF TO if_crm_ui_profile,
              lv_profile TYPE string.
    lr_profile = cl_crm_ui_profile=>get_instance( ).
    lv_profile = lr_profile->get_profile( ).
    IF lv_profile = 'SALESPRO'.
             rv_result = 'ZENH_SET'.  "your enhancement set name
    ENDIF.
    Regards,
    Rachna

  • How to change the module name

    Hello All,
    I saved a report as XYZ.rdf. When I open this it opens with a module name as say ABC.
    Now is it possible to change the module name to DEF instead?
    (I have some closely numbered reports, I need to change one of them to avoid stepping over the names)
    Thanks,
    Chiru

    Hi Chiru,
    Right click on the module name and select the Property Inspector. Now you can change the property Name.
    Regards,
    Vincent

  • Nested application module use own connection

    Hi everyone,
    I'm trying to figure out how to let a nested application module use it's own connection instead of it's parent.
    Any suggestions?
    We're using Jdeveloper 10.1.3.3.0.
    Regards

    Hi,
    The issue is not about the data, but about the database connection. The idea is to have a general BC library (with iits Application Modules and View Objects), using its own database schema, and have that one imported in other applications, with other database schemas.
    We have to use these imported BC's in the application AM, because that's the way JHeadstart works. This will result in a table not found exception, because the imported VO's are in another schema.
    We were hoping that we could nest an imported Application Module and that it uses its own connection to its own database schema, but unfortuantely that does not seem possible since nested application modules inherit the connection of the parent (root) application module.
    Or is there perhaps a way to achieve this; i.e. have a nested application module using its own database connection and not inherit this from its parent?
    Ciao
    Aino

  • Nesting Application Modules from different Projects(solved).

    I am wondering if there is a possibility of nesting application modules that are part of different projects?
    thanks, Florin
    Message was edited by:
    florinmarcus

    I've fond myself the answer to this question.
    It is explained in the documentation:
    Fusion Developer’s Guide for Oracle Application Development 11g
    Chapter 35.7 Working with Libraries of Reusable Business Components

  • Change Tuxedo licence on runtime (Tuxedo 9.1)

    Hi,
    Is it possible to change the licence at runtime on Tuxedo 9.1 ?
    Indeed, on a live Tuxedo environment, the licence file (lic.txt) was modified to replace a wrong one (extension from 10 to 20 users) without rebooting Tuxedo on the machine.
    It seems this change is not taken into account by Tuxedo because the error CAT 4747 continues to be generated in the ULOG file.
    Best regards.

    Hi,
    I believe the Tuxedo license file is read at application boot time, so no, you won't be able to change the license on a running system. Please note that in recent versions of Tuxedo no license file is required (although obviously a license is still required!)
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Change SWFLoader source during runtime

    Hi
    I am using SWFLoader  to load png images.
    Is it possible to change SWFLoader source  during runtime?
    Thanks
    Amir

    Yes,you can.Just assign the new source to the source property of swfloader.

  • Is it possible to change the URL of an application?

    Hi All,
              I was working with the oracle apex and created few applications almost a year back, due to my higher studies there is a gap with the tool..and finally I am in.
    Am planning to create an application which will be similar like a personal website.My doubt here is ..whether it's possible to change the URL by keeping a simple one which includes my name also
    instead of having this big..
    http://apex.oracle.com/pls/apex/f?p=10221:1:116416608594529
    I can understand that the whole URL describes the appln no,page no and session ID but its my doubt possible or not..If possible then how to proceed?
    Thanks
    with Regards,
    Ramya.

    My doubt here is ..whether it's possible to change the URL by keeping a simple one which includes my name also
    instead of having this big..
    http://apex.oracle.com/pls/apex/f?p=10221:1:116416608594529
    I can understand that the whole URL describes the appln no,page no and session ID but its my doubt possible or not..If possible then how to proceed?
    If you are just looking for a nice and short URL to start your application, why not just use a URL shortener service like goo.gl ?
    Just put in your long URL and it will create a nice and short URL for you... for example, the above URL is now http://goo.gl/FijYxn
    - Morten
    http://ora-00001.blogspot.com

Maybe you are looking for

  • Updated macbook to OS X, now volume won't work?

    2010 Macbook, having problems with the volume. Have been in settings and all looks normal but no sound. Also just completed OS X install, now can't open Safari. Ideas?

  • Help in Custom Doclet

    Hi, I m trying to get going with my first doclet. I m using jdk 1.4 and it tools on MS-XP m/c. I m able to process my tags in my doclet and able to create an HTML for a specific java file. But i wanted to know how i can use some features of the Stand

  • RE:WebDynpro for java

    hi all, I have a web service and i have to use it in webdynpro application using Adaptive WebService model. After that i have checked  the Radio Button *Use Destinations for Metadeta Execution*  so how should i create the *Default MetaData Destinatio

  • SAP R/3 IDES Demo version

    Hi, I am just starting out to learn SAP Basis and trying to find the SAP R/3 IDES or ECC 5.0 or later demo version down load. Please let me know if some one know where I could down load  the SAP R/3 IDES or ECC 5.0 later. Thanks in advance.

  • Line Under Menu

    The line under the top menu bar is off center. How can I correct this? view at <http://www.pablofrasconi.net> Thanks