TP4 Lov and application module procedure

Hi!
I have a little problem. I have a page with a LOV and a Task Flow.
In the Task Flow i have a table, wich depending the value that users select in the LOV present some data. (Whith where clause and a bind variable).
This works ok. But when I add to the task Flow a button that invoke a procedure implemented in the application module. The result, is that the LOV doesn´t work. i mean not appear the data to select.
Any idea?
Thanks
Rowan

Ok my english....
First what a want to do:
I´m doing a create,update,insert,remove page, using adf rc. But for doing those, I need to use PL/SQL procedures, not the create, remove.. procedures that jdev gives us in the data control. And as the table has a lot of records i ´ve put in the page a LOV to search the rows that the user want to modify.
Now how i do that (in short):
First i "programmed" the LOV. I´ve created a ViewObject for the lov and another view object for the table the second VO has a bind variable and a where clause.
"Where tabla.cod = :LovParam"
For passing the value from the LOV to the table i have defined a Task Flow View with input parametre, with a panel collection and inside the table VO. have defined an executeWithParams binding and invokeAction executable.
I´ve drop the task flow to the .jspx.
In the .jspx I´ve inserted a LOV component and create a variable executable a inside of this a variable. And then i´ve bind the LOV with the variable.
Probably here is missing a step, but how i say up this is in short what i have done.
Finally all this works fine.
The second step is to add the command button that calls the PL/SQL, for doing this:
I´ve programmed in the application_module_implementation a function which calls the PL/SQL, I´ve followed the steps that are explained in the adf guide, in chapter 25.5.2 Invoking Stored Procedure with Only IN Arguments.
And then i´ve dropped the function from data control to statusbar facet of the Data Collection.
The result is that when the button is on panel collection, the LOV does´t work. And if remove the button the LOV works. This haven´t any sense for me.
I have made more test and, if instead of the panel collection I use a form layout the LOV works but the button gives me the next error "Not supported function".
I know that this is another think. and now i´m trying to solve this one.
I hope now you have material to work with. I think that it´s strange what happens with the collection panel. And about the function sure that i´m doing something wrong.
Thanks, for you interest
Rowan

Similar Messages

  • Calling stored procedures from entity object and application module

    Hello
    I've put in place an EntiyImpl base class containg helper methods to call stored procedures.
    I now need to call stored procedures from the application module.
    Apart from creating an application module base class and duplicating the helper method code is there a way
    to share the helper methods for calling stored procedures between the entity impl and application module impl ?
    Regards
    Paul

    Does the helper code depend on features of a particular entity object instance, beyond its database transaction?
    If so, I'm not sure I see how it could be used from an application module class.
    If not, here's what you do:
    Step 1:
    Parametrize the database transaction--you might even want to. So instead of
    protected myHelperMethod(Object someParam) {
    DBTransaction trans = getDBTransaction();
    change this to
    protected myHelperMethod(DBTransaction trans, Object someParam) {
    Step 2: make the method public and static--once you parameterize the DBTransaction, you should be able to do this.
    public static myHelperMethod(DBTransaction trans, Object someParam) {
    Step 3: Remove the method from your EntityImpl base class into a utility class:
    public abstract class PlSqlUtils {
    private PlSqlUtils() {}
    public static myHelperMethod(DBTransaction trans, Object someParam) {
    When you want to call the method from an application module, entity object, or even view object class, call
    PlSqlUtils.myHelperMethod(getDBTransaction(), paramValue);
    Unlike Transaction.executeCommand(), this lets you provide functionality like setting procedure parameter values, retrieving OUT parameter values, etc.
    Hope this helps,
    Avrom

  • Programmatically created ViewDefImpl and application module releasing

    Hello!
    What will happen with a programmatically created ViewDefImpl instance after module releasing (for Stateful release mode, I mean if module will do passivation)? How I see it gone away.
    As workaround I'm using a distinct module with Reserved relese mode, but it's no good.
    Don't inspect closely, but I think the error during actiovation caused by this reason:
    java.lang.NullPointerException
    at oracle.jbo.server.Serializer.activateDynamicVO(Serializer.java:425)
    at oracle.jbo.server.ApplicationModuleImpl.activateVOs(ApplicationModuleImpl.java:7145)
    at oracle.jbo.server.ApplicationModuleImpl.doActivateState(ApplicationModuleImpl.java:6962)
    at oracle.jbo.server.ApplicationModuleImpl.doActivateAMState(ApplicationModuleImpl.java:6927)
    at oracle.jbo.server.Serializer.activate(Serializer.java:272)
    at oracle.jbo.server.DBSerializer.activateRootAM(DBSerializer.java:330)
    at oracle.jbo.server.ApplicationModuleImpl.activateState(ApplicationModuleImpl.java:5519)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:171)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7735)
    Code fragment from module for wich activation failed:
    >>>>>>>>>>>>>>>>>>>>>>>>>>>
    viewDef = new ViewDefImpl(QUERY_RESULTS_VO_DEF_NAME);
    for (...) {
    ViewDefHelper.addUpdateableTransientViewAttr(viewDef,
    attr.getFirstChild().getNodeValue(),
    String.class);
    viewDef.resolveDefObject();
    viewDef.registerDefObject();
    resultsVO = (SimpleXMLViewObjectImpl)createViewObject(QUERY_RESULTS_VO_NAME, viewDef);
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    Thanks in advance.
    Ilya.

    application module1 is for table1, table4 and table5 and Application module 2 is for different tables say table2,table3 now I got 1 requirement where I need to do insertion in table1 after insertion in table2,table3 from applicaiton module2

  • Is it possible to export and import jsf page and application module?

    Hi,
    I want to export a application module and then import it to another application,so deos jsf pages.If I can do this ,then my team could do the diffent work at the same time.one group response for data model then commit as application module,one group for page create and edit and so on .Who has any good idea?
    Thanks advance
    lixinzhu
    2007/09/19

    hi,frank
    thank you.
    You know a page include a .jspx file,a page definition file and depend faces-config.xml,faces-config.oxd_faces and other I don't know information,so if i only put the first two file into cvs,but how can i get other information in the last two file?When I get the first two file and needed information in the other file,how can i merge these into new project and let jdeveloper "reconize it"?Applicaion is more complex,it not only depend its self java class,xml and many entity object and view object,how to handle the "export" and "import" process?Just like oracle form,only a fmb is enough,database object only need to "put into database","export" and "import" are very simple,so i need jdeveloper to supply these "import" and "export" function.I'm not familar with cvs,does it can know object dependency like application module?if it can,how to let jdev "reconize" imported in object?
    lixinzhu
    2007/09/19

  • Maven dependencies and application Module

    hi,
    I'm using jdev 11gR2. When i use project propertie-->maven-->dependencie-->"add from repository", and select a jar : errors from import in java files avec solved, but i can't see package from this jar in the Application Module (Data Model).
    How can i see it?
    thanks
    Clément

    no idea?

  • DataBindings and Application Module Bean

    Hallo everybody,
    I am working on JDev 10.1.3.4 and Oracle Application Server 10.1.3.4.
    I developed an 'application module' and I maked it as remotable using 'EJB Session Bean' option;
    then I deployed it on the AS.
    I know how to call remote application module by code in a JClient application ([thanks to a metalink note|https://metalink2.oracle.com/metalink/plsql/f?p=130:14:6076423513290714654::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,309753.1,1,1,1,helvetica|thanks to a metailk note]):
    bq. JUApplication app = new JUApplication(TestClient.getAppModule()); \\ app.setClientApp(DCDataControl.JCLIENT); \\ +     app.getApplicationModule(+)
    I would like to use remote application module function by DataBindings and %PageDef.
    is it possible? how can I do this?
    best regards
    Edited by: user567554 on Dec 17, 2008 5:44 PM

    Hi Frank,
    thank you for reply.
    Could you make an example how to configure my datacontrol for a remote Application Module Connection?
    I'm able to connect to a remote AM deployed to Local Embedded OC4J, but I'm not able to connect to to a remote AM deployed in a remote AS
    I think need change DataControl Configuration Attribute with the appropiate AM Configuration. Probably my AM Configuration is wrong:
    &lt;AppModuleConfig name="AppModuleEmbeddedASTest2"&gt;
    &lt;DeployPlatform&gt;EjbIas&lt;/DeployPlatform&gt;
    &lt;java.naming.security.principal&gt;oc4jadmin&lt;/java.naming.security.principal&gt;
    &lt;java.naming.security.credentials&gt;*ASpwd*&lt;/java.naming.security.credentials&gt;
    &lt;jbo.internal.embedded&gt;true&lt;/jbo.internal.embedded&gt;
    &lt;JDBCDataSource&gt;jdbc/+myConnDS+&lt;/JDBCDataSource&gt;
    &lt;AppModuleJndiName&gt;AppModuleBean&lt;/AppModuleJndiName&gt;
    &lt;HostName&gt;*AS-IPAddr*&lt;/HostName&gt;
    &lt;ApplicationPath&gt;+ejbAM  (My Application Name)+ &lt;/ApplicationPath&gt;
    &lt;java.naming.security.authentication&gt;simple&lt;/java.naming.security.authentication&gt;
    &lt;ApplicationName&gt;model.AppModule&lt;/ApplicationName&gt;
    &lt;ConnectionPort&gt;*+23791 (found in $ORACLE_HOME/j2ee/myTests//config/rmi.xml)+* &lt;/ConnectionPort&gt;
    &lt;jbo.server.internal_connection&gt;jdbc/myConnCoreDS&lt;/jbo.server.internal_connection&gt;
    &lt;/AppModuleConfig&gt;

  • ScheduledExecutorService and Application Module

    I have an Long running job which is submitted from UI, so I used ScheduledExecutorService to execute the task by passing the reference of Application Module. Now the Thread makes some database commits new rows. I have RichPoll which will keep pooling for the progress.
    As Soon as the data is inserted I call transaction commit.
    Now What i noticed is the data committed in the Run method is not available in DB until the run method completes , Any idea what's going wrong
    public class MyClass implements Runnable {
    private MyAMImpl aM;
    public String doAction() {
    FacesContext fc = FacesContext.getCurrentInstance();
    Application app = fc.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = fc.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, "#{data.MyAMDataControl.dataProvider}",
    Object.class);
    aM = (MyAMImpl )valueExp.getValue(elContext);
    ScheduledExecutorService ses = Executors.newScheduledThreadPool(1);
    setService(ses);
    ses.schedule(this, 3, TimeUnit.SECONDS);
    public void run() {
    try {
    String bug = this.bug;
    am.executeTask();
    } catch (Exception e) {
    e.toString();
    }

    Hi,
    how should we know if the work is done in the part that you don't share? Have you debugged it to ensure the commit happens ?
    Frank

  • Cisco SAMI (Cisco Service and Application Module for IP) modules

    Hi,
    Could anyone confirm whether Cisco SAMI module on 7600 supports traditional ppp over vpdn wholesale broadband?
    Currently we have setup on Cisco 7200's and we want to upgrade the hardware to 7600 to scale better, MWAM module supports the VPDN configuration but its now end of sale and replacement product is SAMI whose literature is quite confusing.
    Thanks
    Hitesh

    Try this link for more information on cards
    http://www.cisco.com/en/US/products/hw/univgate/ps501/products_white_paper0900aecd801f92c1.shtml

  • Template and application module code sharing

    Experts,
    I have a template which has some BTF as dynamic regions. Each BTF is based on one App Module. My use case is
    Login page - AppModule
    Main page
    pageFragment1 - AppModule1
    pageFragment2 - AppModule2
    Successful login takes me to Main Page with Pagefragment1 as the default region. In page Fragment 1 , i am displaying total by exposing a method from AppModulue1 (cant store this in any scope variable as i need to have a ppr from the pageFragment to the main template page).
    I want this total to be appearing on the main page also.
    How can i do this ?
    thnks
    Jdev 11.1.2.1

    Hi,
    this is only possible if the bounded task flows share the DataControl scope in which case adding the AM to the main page also shows the value you see in the bounded task flow. Alternatively, you can pass a JavaBean object defined as a managed bean in the main page to the task flow (as an input parameter), then have the bounded task flow updating the bean reference and use EL in the main page to show the value (addressing the managed bean property)
    Frank

  • Issue in Application Module and Enterprise Integration for SAP applications

    Hi,
    When I enabled the Application Module and Enterprise Integration for SAP applications Version 2.60 Patch 2 I am getting error in defect entity and Application Module. Does any one face this issue? Please let me know the solution.
    QC details:  QC 11.0 with patch 7
    I followed the steps given in ALM addin page to install the adapters
    Attached Screen shots of the Error

    Hi
    If you are wanting to know how to configure ESSO to be used to logon to SAP applications then there is a guide in the helpfile of the admin console. Simply do a search for SAP.
    In short ESSO-LM comes with a SAP helper object which needs to be selected on install. To enable the ESSO SAP helper to interact with SAP, the SAP server and the SAPGUI client need to be configured. The details for this are in the helpfile. If you have multiple SAP systems launched from the SAPGUI then this is the best method because it means ESSO can distinguish between the different SAP systems through matching screens
    If you have only one SAP system and you do not want to configure the SAP server then you could use send keys and not use the SAP helper object at all.
    Hope this helps

  • Best practice for application module  for scalability

    if i compare application module with forms 6i runtime session.(correct me if i wrong)
    In forms 6i, we create for single form for purchase entry. in which we select table like po , po_item, item_master, customer master
    also single form for sales entry. in which we select table like sales , sales_item, item_master, customer master, po , po_item
    So my question is. in jdeveloper , we planning to make separate jsp page and applicaiton module for purchase entry,
    separare jsp page and application module for sales.
    is it ok.
    or
    what is the best practice in this senario.?? ( or in scalability senario)
    if i made one single application module for whole application (let say 300 entity's(tables)) will performance of my app server degrade.

    You might want to read the chapter about AM Granularity in the ADF Developer Guide:
    http://download.oracle.com/docs/html/B25947_01/bcservices009.htm#sm0229

  • ADF panel executes all queries in the application module.

    Hi all,
    I have created an ADF Panel, which allows the user to run a few simple queries against an Oracle database done using ADF view objects and ADF view links and ADF application module.
    As I add more functionality meaning more available queries meaning more ADF views and ADF view links, running the Application Modules becomes slower.
    Let’s say the application module AM1 is made of 30 different view links. And application module AM2 is made of another 30 view links.
    Now let’s say that ADF Panel1 references 8 view links from AM1, but it appears that all 30 view links that make up Application Module AM1 are executed before returning the result sets of the 8 view links referenced in ADF Panel1. Let me also underline the fact that each view link in Application Module AM1 can be executed independently, so the question is how I can make Jdev not to run all 30 queries in view links in the Application Module AM1 when ADF Panel1 is executed, but just the 8 that are referenced in the ADF panel1.
    I hope I made my question understood.
    Your inputs are greatly appreciated.
    Thanks.
    Bobby A.

    Hi,
    if this is what you see then you should file a bug because certainly its not the way it is designed to work. Note that in JDeveloper 11g - you don't specify the release you are on - the iterators by default are set to refresh deferred. Only iterators that belong to a PageDef file are executed when the page loads (you can suppress this by setting a refresh condition). Other queries are not executed
    Frank

  • ADF BC: Optimal Application Module Runtime Configuration

    Have implemented an intranet application for 1000 users using the following technologies implemented on Oracle JDeveloper 10.1.3.0.4:
    ADF BC for my Services layer
    JSF for my Controller layer
    JSF and ADF for my View layer
    ADF Model for my Data layer
    The application is entirely designed by .jspx and .jsp pages (for reports), handling 106 application modules, with several entity and view objects and without any step-by-step stateful scenario. At each page, there appears a commit button to commit the end-user transaction, and a rollback button to return to the previous page.
    The application is database-backed from an Oracle Database 10g, deployed on three application servers Oracle 10.1.3.1 on three different hosts on Suse Linux OS, used data-source connection and AM pooling, and load-balanced by one webcacher in front of the 3 servers.
    Under stress test scenario, on a heavy system load in production environment, several ADF State Management errors were recognized that pushed the webacher and application server with the maximum load to automatic restarts due to either demand for JVM increased heap size or errors from the database that the TNS listener complained it could not handle any more connections.
    Thus, we started a safety/reliability tess for all our application module components (disabling "Enable application module pooling"), and a stress test using a third-party stress tool at work, but we're still faced with several questions.
    (a) What is the best strategy for AM configuration, to quit State Management at all since our application doesn't need it, and if so can it be done globally or declaratively and not individually and programmatically?
    (b) Testing on application module runtime configuration, we observed that not to "hang-on" on a connection -default functionality- but to release it at the end of each HTTP request, as each deployment is concentrated on a single data-source connection pool/single user, brought less open JDBC connections on A.S.? Is this the optimal run-time configuration than the default for our case?
    (c) If State Management errors are resolved, and using a software balancer before 3 application servers, regulate the traffice by 1/3 to each, is it possible that a system crash will be avoided next time?
    So, our problems related to ADF tunning and State Management Errors, but we need a good advice on this topic as the overall documentation is case-specific.

    Chapter 29 "Understanding Application Module Pooling" in the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html is the best place to start. There is no "magic" optimal configuration that I (or anyone here, really) can suggest to you. You need to understand the various "knobs and dials" that control the pool sizing and pool cleanup behavior, and then apply application-specific information to this information to derive what the optimal configuration for your particular application will be. The chapter explains how the application module pool and database connection pool interact, and in which situations it is best to change the default setting of the jbo.doconnectionpooling property to true.
    Chapter 28 "Application Module State Management" describes the functionality of that facility of the framework, as well as how to release the application module in stateless, unmanaged mode if you need to.
    By following the tips in the section "28.3.2.4 Setting Release Level in an Custom ADF PageLifecycle" (which builds on information introduced in section "10.5.4.1 Globally Customizing the ADF Page Lifecycle"), you can generically impose a different release level in your application without "touching" every page.
    As a general rule, if you have:
    (*) Lots of distinct application modules
    (*) Each of which is used as a separate data control (rather than being nested inside a containing application module as described in section "8.9.3 Root Application Modules Versus Nested Application Module Usages" of the dev guide)
    (*) Each of which uses the same database connection
    Then as described in section "29.8 How Database and Application Module Pools Cooperate" in the guide, your application can decrease the total overall number of connections used by using the non-default setting of jbo.doconnectionpooling=true.
    Applications using many distinct data controls in the span of a single user's session need to be aware of Bug# 4566186 ("PERF: ADFBINDINGFILTER CHECKS OUT ALL ADF BC DATA CONTROLS USED AT LEAST ONCE"). This issue has been fixed in JDev/ADF 11g, but apparently the fix was too complex to accommodate a 10.1.X backport. I'm trying to document a workaround and publish it on my blog, but I'm not finished with it yet.

  • ADF Libary Issue - Application Module disappear from data control

    Hi All,
    I am facing an issue while adding an Application module to an ADF project as an ADF libray.
    I have two applications - ADF Application1 with Model1 project having an Application module AM1, ADF Application2 with Model2 project having an Application Module AM2
    I have created an ADF library jar file of Model1 project.
    When I add it to Model2 project, the Application Module AM2 of Model2 disappears and Application Module AM1 from the library appears in data control.
    Please suggest what could be wrong.
    Regards,
    Rekha

    Hi,
    verify that both application modules don't share the same ID in their databindings.cpx file. Which release version of JDeveloper 11g are you on ?
    Frank

  • Disconnect Application Module Upon Release and LOV NPE

    Environment
    Jdeveloper 11.1.1.4.0
    Jheadstart Release 11.1.1.4.26
    There seems to be some sort of incompatibility with some LOVs when I enable Disconnect Application Module Upon Release.
    I have an LOV based on an updatable VO with a bind parameter.
    When I first log on the application an try to use the LOV I get a NPE when I select the row from the LOV popup and press OK.
    If I navigate to another page and return the LOV starts working correctly
    The NPE occurs in line
    keyList.add(getIterBinding().getCurrentRow().getKey());
    of LovItemBean
    getIterBinding().getCurrentRow() is null it this case.
    Do you have any hints?
    public void copyReturnValues(Map selectedRowData, Row baseRow, boolean copyToUI, boolean commaSeparated)
    // first clear any dependent items, if they exist
    if (getTableBean() != null)
    List keyList = new ArrayList();
    keyList.add(getIterBinding().getCurrentRow().getKey());
    getTableBean().getTable().setRowKey(keyList);
    Edited by: spooker on May 31, 2013 9:28 AM

    I was using Disconnect Application Module Upon Release to overcome an issue I had with multiple duplicated rows being generated in a table under certain circumstances.
    What I had is a button which reads the rows of a table and creates new rows in another table (other viewobject) which have a foreign key to the rows of the first table.
    If I issue multiple requests on the first table (5rows) by clicking different rows very fast and at the same time I press the button to create new rows to the second table the results are undefined. Instead of getting 5 new rows I get 10 or even 15 or 20. I don't know if this is a bug or if I am doing something wrong but I managed to overcome this by using the Entity RowSet instead of the ViewObject RowSet.
    so now I am not using Disconnect Application Module Upon Release any more.
    Edited by: spooker on Jun 3, 2013 7:38 AM

Maybe you are looking for