How to use global session in ADF

Hi all,
My problem is that I have several sessions that connect to a table in an ADF application. If I update some data in one session and commit, the other sessions do not see it until they requery the data because they are using their own local sessions and caches. I want the changes to be seen by all the sessions. Is there something like a global session in ADF?
Thanks in advance,
S/\EE|)

Hi,
From the documentation
"For example, say you have a page that lists all products, and a user can navigate from that page to another page to create a product. A button on this page both creates the product and navigates back to the list page. In order for the user to see the product just created, you must set the iterator binding for the product list to cacheResults=false. Doing so forces the iterator to reexecute when returning to the page and display the newly created product."
Frank

Similar Messages

  • How to use Multiple selection in ADF faces

    i i would like to know how to use an multiple selection (ADF select many choice) to update the database.

    Hi,
    Timo is correct that there is no automated way for doing this. You can access the select many selection from a managed bean either accessing the ADF binding layer or by referencing a managed bean array property. So the use case is important. Use case would include the database attribute type to update
    Frank

  • How to use a collection in ADF

    Hi all,
    How to use the collection in ADF.
    Thanks in advance
    C.Karukkuvel

    hi John,
    Scenario:
    In my page,i have two tab pages .In that when the user enter the Location names in the first tab.when the user navigates to the next tab,we need to give the LOV having the Loactions based on the first tab values.
    when i try to use the view object it will list only the data's in the database.but i needs the locations entered in the current page also.pls guide me in this
    Thanks & Regards
    C.Karukkuvel

  • How to use image maps in ADF 11g

    Can somebody point me to code snippet for using image maps in JSF Page.
    I just want to use image maps in my application..but i don't know how to use image maps in ADF.
    -Deepti

    Hi chris,
    My DataBase script is given in below
    CREATE TABLE XXSR.SR_HIERARCHY
    FORM_ID NUMBER,
    FORM_NAME VARCHAR2(30 BYTE),
    PARENT_FORM_ID NUMBER,
    FORM_LOCATION VARCHAR2(1000 BYTE),
    IMAGE_FILE ORDSYS.ORDIMAGE
    I want to store the image in database from front end using ADF 11g
    -Deepti
    Edited by: 913387 on Feb 24, 2012 5:36 AM

  • How to use autosuggest feature in adf?

    how to use autosuggest feature in adf?

    You can refer below link
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/004-auto-suggest-169120.pdf
    Thanks
    AJ

  • How to use a session, created in a jsp page, in a php page

    Hello, forgive me for the newbie question.
    Here is my problem:
    I want to have a jsp page create a session, set some session variables and then redirect to a php page which will access those same session variables.
    I have the redirection worked out, but I can't seem to find out how to use the jsp session in my php script.
    Is this possible at all, and if so, how does it work?

    Note that javascript runs on the client side, and JSP runs on the server. JSP and the session objects are NOT available to javascript in reaction to the user.
    If this function is called only when the page is first created, not when the user interacts with the page, or if you want that value to be constant with respect to the javascript, then you can do this:
    <%
      String someValue = (String)session.getAttribute("theAttributeName");
    %>
    <script type="text/javascript">
         Calendar.setup({inputField:"f_date_dfFirstPmtDate",
                                              button:"f_trigger_dfFirstPmtDate",
                                             singleClick:true,
                                              ifFormat:<%=someVale%>});
    </script>

  • How to use a session bean in another session bean (or an EJB in a session)

    JDev 11.1.1.4, WLS 10.3.4, Windows 7 x64
    I have a login controller with a session-scoped bean that manages logins.
    I have another session-scoped bean that manages menu security.
    both modules compile and work fine now I need to share the data from one to another.
    I need to reference the login controller in the menu security bean. How do I reference (include) the login bean in the security bean?
    I tried an EJB - what a farce - these are supposed to be universal and easy ( basis of the oop in Java).
    the bean is defined:
    @Stateless(name = "SecurityEJB", mappedName = "ZITASApplication-ZITASModel-SecurityEJB")
    I have tried :
    ic = new InitialContext();
    session = (SecurityEJBLocal)ic.lookup("ZITASApplication-ZITASModel-SecurityEJB#model.security.logic.SecurityEJB");
    session = (SecurityEJBLocal)ic.lookup("ZITASApplication-ZITASModel-SecurityEJB#model.security.logic.SecurityEJBLocal");
    session = (SecurityEJBLocal)ic.lookup("java:ejb/model.security.logic.SecurityEJB");
    session = (SecurityEJBLocal)ic.lookup("java:ejb/SecurityEJB");
    session = (SecurityEJBLocal)ic.lookup("java:app/SecurityEJB");
    session = (SecurityEJBLocal)ic.lookup("java:module/SecurityEJB");
    All return null pointers and claim the name cannot be resolved.
    As you can see - I have found various claims to how to do this.
    One way says create a sevlet, generate a listener and use the sevlet. Basically one for every EJB - a lot of work to use the EJBs
    I would assume that this would be one of the easiest parts of java - as it is the foundation of re-usability and oop.
    I can do either in the application - the added complexity of the EJB is less desirable - but better programming?

    Hi,
    ic.lookup("ZITASApplication-ZITASModel-SecurityEJB#model.security.logic.SecurityEJB");This should work with remote interface. If you want to lookup local interface, you need to register it in web.xml. Quote:
    To access the business local interface you need to define ejb local references for your component environment (i.e. from your servlet environment). You can do this by defining references in your web.xml. For example:
    <ejb-local-ref>
    <ejb-ref-name>ejb/BusinessLogicBean</ejb-ref-name>
    <local>packagename.BusinessLogicBean</local>
    </ejb-local-ref>
    To lookup your local reference from your servlet you need to use the following JNDI reference:
    java:comp/env/ejb/BusinessLogicBean Another one
    First, declare a local ejb reference in your web.xml file (This will add it to JNDI):
    <ejb-local-ref>
    <ejb-ref-name>ejb/Foo</ejb-ref-name>
    <local>simple.ejb.FooLocal</local>
    </ejb-local-ref>
    Then it can be looked up from JNDI:
    InitialContext ctx = new InitialContext();
    FooLocal foo = ctx.lookup("java:comp/env/ejb/Foo");Hope this helps.
    Pedja
    Helpful links (judging from your first post, you are probably sick of these :) )
    How to lookup local EJB in Oracle Weblogic 10.3
    http://m-button.blogspot.com/2008/07/reminder-on-how-to-use-ejb3-with.html
    http://www.coderanch.com/t/451012/EJB-JEE/java/EJB-Local-Lookup-not-working

  • How to use global classes and display returned data?

    Hello experts,
    I have the following code in a program which accesses a global class (found in the class library). It executes one it's static methods. What I would like to do is to get hold of some elements of the returned data. How do I do that please?
    Your help is greatly appreciated.
    ***Use global class CL_ISU_CUSTOMER_CONTACT
    DATA: o_ref TYPE REF TO CL_ISU_CUSTOMER_CONTACT.
    DATA: dref_tab LIKE TABLE OF O_ref.
    DATA: begin OF o_ref2,
    CONTACTID               TYPE CT_CONTACT,
    P_INSTANCES             TYPE string,
    P_CONTEXT               TYPE CT_BPCCONF,
    P_CONTROL               TYPE ISU_OBJECT_CONTROL_DATA,
    P_DATA                  TYPE BCONTD,         "<<<=== THIS IS A STRUCTURE CONTAINING OTHER DATA ELEMENTS
    P_NOTICE                TYPE EENOT_NOTICE_AUTO,
    P_OBJECTS               TYPE BAPIBCONTACT_OBJECT_TAB,
    P_OBJECTS_WITH_ROLES    TYPE BAPIBCONTACT_OBJROLE_TAB,
    end of o_ref2.
    TRY.
        CALL METHOD CL_ISU_CUSTOMER_CONTACT=>SELECT  "<<<=== STATIC METHODE & PUBLIC VISIBILITY
          EXPORTING
           X_CONTACTID = '000001114875'   "Whatever value here
          RECEIVING
            Y_CONTACTLOG = o_ref
    ENDTRY.
    WHAT I WOULD LIKE TO DO IS TO MOVE o_ref TO o_ref2 and then display:
    1) P_DATA-PARTNER
    2) P_DATA-ALTPARTNER
    How can I do this please?

    I now have the following code. But when I check for syntax I get different error. They are at the end of the list.
    Here is the code the way it stands now:
    ================================================
    ***Use global class CL_ISU_CUSTOMER_CONTACT
    DATA: oref TYPE REF TO CL_ISU_CUSTOMER_CONTACT.
    DATA: dref_tab LIKE TABLE OF oref.
    DATA: begin OF oref2,
    CONTACTID TYPE CT_CONTACT,
    P_INSTANCES TYPE string,
    P_CONTEXT TYPE CT_BPCCONF,
    P_CONTROL TYPE ISU_OBJECT_CONTROL_DATA,
    P_DATA TYPE BCONTD,      "THIS IS A STRUCTURE CONTAINING OTHER DATA ELEMENTS
    P_NOTICE TYPE EENOT_NOTICE_AUTO,
    P_OBJECTS TYPE BAPIBCONTACT_OBJECT_TAB,
    P_OBJECTS_WITH_ROLES TYPE BAPIBCONTACT_OBJROLE_TAB,
    end of oref2.
    TRY.
    CALL METHOD CL_ISU_CUSTOMER_CONTACT=>SELECT     " STATIC METHODE & PUBLIC VISIBILITY
    EXPORTING
    X_CONTACTID = '000001114875' "Whatever value here
    RECEIVING
    Y_CONTACTLOG = oref
    ENDTRY.
    field-symbols: <FS1>      type any table,
                   <wa_oref2> type any.
    create data dref_tab type handle oref.   " <<===ERROR LINE
    assign dref->* to <FS1>.
    Loop at <FS1> assigning  <wa_oref2>.
    *use <wa_orfe2> to transfer into oref2.
    endloop.
    write: / 'hello'.
    =========================================
    Here are the errors I get:
    The field "DREF" is unknown, but there is a field with the similar name "OREF" . . . .
    When I replace itr by OREF I get:
    "OREF" is not a data reference variable.
    I then try to change it to dref_tab. I get:
    "DREF_TAB" is not a data reference variable.
    Any idea? By the way, must there be a HANDLE event for this to work?
    Thanks for your help.

  • How to manage User Session in Adf ?

    Is there any guide line to manage the user session in adf ?

    View layer Http session if it is not a desktop based application. Model layer also you can store session using
    getSession().getUserData()But before that the information you provided is not enough. You need to describe in more detail of what session and what exactly are you looking for

  • How to use Connection Pool in ADF ear file creaion from jDev 10.1.3

    Hi,
    We are developing big application in ADF with 10 different modules. We are creating ear file with data source setting.
    How to use connection pool while creating ear file from jDev. Connection pool is alreday created in Application Server 10g.
    What all the setting we need do to make use of connection pool while creating ear file jDev.
    Thanks

    User,
    If you are using ADF Business Components, you can right-click each application module, select "configurations" and edit the configuration you are using. On the initial page of the configuration dialog, you can specify to use either a JDBC URL or a Datasource - you just need to choose Datasource and then provide the name by which to access it.
    John

  • How to use no wait in adf

    hi jdev experts,
    am using jdev 11.1.1.5.0 - adfbc-oracle db10g.
    here my code.
    SELECT GlLvlAccountsEO.GLAL_BU,
           GlLvlAccountsEO.GLAL_LVL1,
           GlLvlAccountsEO.GLAL_LVL2,
           GlLvlAccountsEO.GLAL_LVL3,
           GlLvlAccountsEO.GLAL_LVL4,
           GlLvlAccountsEO.GLAL_ACCT,
           GlLvlAccountsEO.GLAL_OPT_TYPE,
           GlLvlAccountsEO.GLAL_CRE_BY,
           GlLvlAccountsEO.GLAL_CRE_DATE,
           GlLvlAccountsEO.GLAL_UPD_BY,
           GlLvlAccountsEO.GLAL_UPD_DATE,
           GlLvlAccountsEO.GLAL_DESC1,
           GlLvlAccountsEO.GLAL_DESC2,
           GlLvlAccountsEO.GLAL_STATUS,
           GlLvlAccountsEO.GLAL_SENT_FLAG,
           GlLvlAccountsEO.GLAL_TITLE_ID,
           GlLvlAccountsEO.GLAL_FBT_PCT,
           GlLvlAccountsEO.GLAL_FBT_CAT,
           GlLvlAccountsEO.GLAL_BUD_FLAG,
           GlLvlAccountsEO.GLAL_PLANT,
           GlLvlAccountsEO.GLAL_CL_ID,
           GlLvlAccountsEO.GLAL_PAR_LVL1,
           GlLvlAccountsEO.GLAL_PAR_LVL2,
           GlLvlAccountsEO.GLAL_PAR_LVL3,
           GlLvlAccountsEO.GLAL_PAR_LVL4,
           GlLvlAccountsEO.GLAL_PAR_ACCT
    FROM GL_LVL_ACCOUNTS GlLvlAccountsEO
    where GlLvlAccountsEO.GLAL_BU = :pbu
    and GlLvlAccountsEO.GLAL_STATUS  IN ('E') for update nowaiterror
    some parenthesis is missing.if i remove the for update nowait means it's perfectly working.
    i know how to use sql statement
    eg:
    select * from dept
    where deptno =10
    for update nowait ;here i can able to understud.
    but,
    In adf why its doesnt supports ah?
    please anyone help me.

    hi john,
    nice to see you here ;)
    in this blog. i read out the how to use for update no wait.
    http://radio-weblogs.com/0118231/stories/2004/03/24/whyDoIGetOraclejborowinconsistentexception.html
    ok. my question is :
    am unable to use the for update no wait statement in query as like as they said.?
    I'll not comment about the use of pessimistic locking like this in a web-based app.ok. am not use pessimistic locking.
    (although I have just implied that there could be some issues - ADF is not Forms).
    ADF is not Forms.
    from this what i understood means.
    some issues - ADF technology
    not in forms technology. are you mean like this. is it so?
    http://jdeveloperfaq.blogspot.com/2010/02/faq-12-how-to-disable-query-wrapping.html could help you
    how does helps me.
    this blogs deals something about advanced stuff operator (union,unionall...)
    i cant your undertud the previous post fully.
    sorry for misunderstanding from your post..
    Edited by: ADF 7 on Jan 30, 2012 12:16 AM

  • How to use the session id provided by fuego.papi.ProcessServiceSession

    Hi, I'm wondering how to reuse the session id provided by the ProcessServiceSession in the Oracle BPM 10g Process API (PAPI)...
    After the processService.createSession(passport, "localhost") call, I get an ProcessServiceSession instance, wich has an getId() method, so... the question is:
    Is there a way to reuse this sessionId in another call to the processServiceSession's methods?, something like: I have this sessionId "userName321321321321321", so I want to reuse it to avoid passing the username and password in another moment of the application...
    Moment 1: The user does the log in step and obtains a sessionId, then, the user exits the application... (I'm not going to execute the close() of the ProcessServiceSession, so, I keep the session alive)
    Moment 2: The user goes back to the application and does some other things, so, with the generated session id in moment 1, I'd like to retrieve that session (by the session id) and accept him as valid user, without ask him the password again and allow him to do PAPI stuff.
    Is this doable?
    Edited by: user11204803 on 09/11/2010 11:41

    hi
    yes , you can get SQL_ID from v$session and also you can join it for v$SQL also it get another details ......
    CHeers

  • How to handle multiple session in ADF using jdevloper11g

    Hello All
    i want to use the form in Multiple sessions.
    i have one sign up form. user enter only 4 to 5 fields & he may not fill the the manditory field & he left.but data base dont give the error to him. but next day he will come at the next day to complet his sign up i.e. when he commit the all detail that time all validation will hapen.
    for that i use one table without constrain to store the temarory detail.& use other table (with constrains) for final submition.
    1) i creat the view n entity for temparory table
    2) & also i create views n entity for Final table
    n i create one methos in viewRowImple file in that file i overrid create method from using this i set the value from tempary to final table...
    but when user left the manditory field then it allow to submit the data in temparory field but when i copy that data to final table(with constrain) n user submit the data then validation happn i.e. "this fild is mandatory".when i click this error message it goes to first screen.
    IS Thiis Possible.. in ADF

    Generally this can be done.
    I see a problem with your use case, which has nothing to do with jdev or java:
    How do you identify the user when he comes back to finish the form?
    For this you can't use information like session cookie or IP address because they change.
    So you have to save some information about the user which lets you identify him when he comes back. All other requirements can be implemented by ADF.
    Timo

  • ADF - How to create a session in ADF

    Hi, how I would to create a schema of session im my application?

    http://docs.oracle.com/javaee/5/tutorial/doc/bnaqm.html
    1-create a View object. For example:
    SELECT USU.USUARIO, USU.TIPO_USUARIO,
    USU.VENDEDOR_NUMERO,
    usu.NOMBRE,
    Usu.FUENTE_CIA, USU.COMPANIA
    FROM VENTAS.USUARIOS USU
    WHERE USU.USUARIO = upper(:pUsuario)
    2-set parameter (:pUsuario) with default value expresion:
    adf.context.securityContext.userName
    3-Use ViewObject in backing bean with session scope.
    package view.backing;
    import java.io.IOException;
    import java.util.Date;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ActionEvent;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.jbo.Row;
    public class Usuario {
    String TipoUsuario, VendedorNumero, Nombre, FuenteCia, Compania;
    Date Hoy;
    Boolean Leido = false;
    public void Logout(ActionEvent actionEvent) throws IOException {
    String javaScriptText = "window.close();";
    ExternalContext ectx =
    FacesContext.getCurrentInstance().getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    String url = "VentasMenu.jspx";
    HttpSession session = (HttpSession)ectx.getSession(false);
    session.invalidate();
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("expires", "0");
    response.setHeader("Pragma", "no-cache");
    try {
    response.sendRedirect(url);
    FacesContext.getCurrentInstance().responseComplete();
    } catch (IOException e) {
    e.printStackTrace();
    FacesContext.getCurrentInstance().responseComplete();
    public Date getHoy() {
    return new java.util.Date();
    void iniciarValores() {
    DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    //ViewObject find user data from DB
    Row rowUsuario = bindings.findIteratorBinding("voUsuario1Iterator").getRowAtRangeIndex(0);
    if (rowUsuario != null) {
    TipoUsuario = rowUsuario.getAttribute("TipoUsuario").toString();
    VendedorNumero = rowUsuario.getAttribute("VendedorNumero").toString();
    Nombre = rowUsuario.getAttribute("Nombre").toString();
    FuenteCia = rowUsuario.getAttribute("FuenteCia").toString();
    Compania = rowUsuario.getAttribute("Compania").toString();
    Leido = true;
    public String getTipoUsuario() {
    if (!Leido) {
    iniciarValores();
    return TipoUsuario;
    public String getVendedorNumero() {
    if (!Leido) {
    iniciarValores();
    return VendedorNumero;
    public String getNombre() {
    if (!Leido) {
    iniciarValores();
    return Nombre;
    public String getFuenteCia() {
    if (!Leido) {
    iniciarValores();
    return FuenteCia;
    public String getCompania() {
    if (!Leido) {
    iniciarValores();
    return Compania;
    }

  • How to use a session variable in Conditional Format?

    Hi Gurus,
    I created a session variable , called Actual_date,
    using the following SELECT:
    SELECT SYSDATE FROM DUAL
    In a report title the following expression worked fine:
    @{biServer.variables['NQ_SESSION.Actual_date']}
    I red in a reply in this forum, under the
    "Oracle BI EE Variables Overview"
    that we can use the above format in Cond.Format.
    However I got an error:
    "The value entered msut date and Time..."
    Any tips?
    Thanks
    Laszlo

    It's because when you fired
    SELECT SYSDATE FROM DUALYour variable have a LONGVARCHAR type (if I remember)
    Check here how to find the data type.
    http://gerardnico.com/wiki/dat/obiee/obi_server_variable_find_value
    If you just need to get the current date, you can try the system presentation variable current time as :
    @{system.currentTime} Good luck
    Nico

Maybe you are looking for

  • Data recovery or directory repair?

    Hi Everybody, I quick formated the wrong external firewire hard drive the other day. I've been trying to find the lost data with limited success. I've tried Stellar Phoenix, Data Rescue II and TechTool Pro 4. Have I been approaching this in the right

  • Tooltip for each series of Business Graph in webdynpro

    Hi Experts,     Here In the Business Graph of webdynpro, on x-axis am taking sales order&corresponding purchase orders on each day and in the y-axis am taking Prices...Iam able to display successfully,Here the requirement is whenever the user place o

  • Mobile user can't log in

    Hello, I have an issue with mobile users. I have a Mac OS X server set up with OD. I have created mobile user profiles on it. Those profiles can log in to the server without issues. Yet, I can't log on to any other mac on my network with those mobile

  • Screen scraper java applet.

    Can anyone help me?? Actually i have to read some data from java applet website.Reply me soon

  • Paste from other Application

    I type frequently in Spanish using the U.S. keyboard and formats for Spanish. When I copy and paste in Appleworks, InDesign, Filemaker PRO, the copy and paste function is normal. When I create Spanish text with the accents in a document other than Pa