Passing a session (or other scope) variable to a graphModel

So here's my delimma... I'm using 11.1.1.3g Jdeveloper.
I'm trying to get a graph which is gets its value from a View (which takes as an input a single variable). See definitions of some of these below. I'm trying to get the graph to pass the variable via binding to the view so that the query will return the graph's data based on the query. I'd like to use ADF's binding layer to do this and not involve a backing bean I'm not too sure how to begin. I've been through a lot of the documentation and cannot find exactly how this can be done. I've seen that you can do a master detail but this is not what I want (At least yet) I'd like to setup the value that in a DDL that the user can select from a change the graph below.
InventoryView:
SELECT kit_status, component_id, count(*) as total
FROM numbered_inv
WHERE trialname = :0     
AND kit_status in ('AVAILABLE', 'ASSIGNED/USED', 'PACKAGED')
AND site_id in ( '0000', '00001' )
GROUP BY component_id, kit_status
ORDER BY kit_status
:0 is bound to bind_trialName
Page Def so far:
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
version="11.1.1.56.60" id="shipFreqPageDef"
Package="com.almac.aurora.gateway.clinicalsupplies.pageDefs">
<parameters/>
<executables>
<variableIterator id="variables">
<variableUsage DataControl="PCSAppModuleDataControl"
Binds="Inventory1.variablesMap.bind_trialName"
Name="ExecuteWithParams_bind_trialName"
IsQueriable="false"/>
<variable Type="String" Name="robsVariable"/>
</variableIterator>
<iterator Binds="Inventory1" RangeSize="-1"
DataControl="PCSAppModuleDataControl" id="Inventory1Iterator">
</iterator>
</executables>
<bindings>
<graph IterBinding="Inventory1Iterator" id="Inventory1"
xmlns="http://xmlns.oracle.com/adfm/dvt" type="BAR_HORIZ_CLUST">
<graphDataMap leafOnly="true">
<series>
<data>
<item value="componentid"/>
</data>
</series>
<groups>
<item value="total"/>
</groups>
</graphDataMap>
</graph>
<action IterBinding="Inventory1Iterator" id="ExecuteWithParams"
RequiresUpdateModel="true" Action="executeWithParams">
<NamedData NDName="bind_trialName" NDType="java.lang.String"
NDValue="${bindings.ExecuteWithParams_bind_trialName}"/>
</action>
<attributeValues IterBinding="variables" id="bind_trialName">
<AttrNames>
<Item Value="ExecuteWithParams_bind_trialName"/>
</AttrNames>
</attributeValues>
Pointing me to a tutorial that updates a DataModel based on an input from the session or from a DDL would be helpful. I cant seem to find one...
Thanks in advance!!

Sorry I'm still having trouble figuring this out. So, on my graph (shown below) I have the value referring to the binding... How do I make the binding pass the view a value?
<dvt:graph id="horizontalBarGraph1"
value="#{bindings.Inventory1.graphModel}"
graphType="#{backing_shipFreq.graphType}"
dynamicResize="DYNAMIC_SIZE"
styleClass="AFStretchWidth">
<dvt:background>
<dvt:specialEffects/>
</dvt:background>
<dvt:graphPlotArea/>
<dvt:seriesSet>
<dvt:series/>
</dvt:seriesSet>
<dvt:o1Axis/>
<dvt:y1Axis/>
<dvt:legendArea automaticPlacement="AP_NEVER"/>
</dvt:graph>

Similar Messages

  • Session scope variables and weird behaviour of AdfContext()

    Hello,
    what is the best method and correct API to create a session scope variable?
    I am currently using ADFContext().getCurrent().getSessionScope().get()/put(), but it looks like it has some problems: for some unkown reasons I loose the variable, that is get() returns null when called from a method of a (overridden)ViewRowImpl. Why does this happen?
    Thanks you in advance

    There are a couple of ways you can set values on a sessions scope but I would have to question if you really need a scope as high as session to accomplish what you want to do. At any rate, you should be able to store the value using the method you described but you could also try setting it using EL by using the setExpressionValue and resolveExpression methods in JSFUtils.java (you can find this in the latest fusion demo application). JSFUtils also has a getFromSession and storeOnSession that you could try.
    With all that said I don't think it is good practice to access scope variables from your model layer. You should write your method in the ViewRowImpl class to accept the value as a method parameter and then pass the value in through the binding layer or when invoking the method from your bean class.

  • Passing Session to Other Java Application

    Dear All,
    We need to pass session of SAP BO to other java application.in short we need to make single sign on between these two without using third party authentication type.
    by research , i could find out extension point API which supports to environment, through which it might be possible.
    I need your help on this.
    Environment:
    SAP BO 4.1 Sp2
    Any Help on this would be appreciated.
    Best Regards,
    Atulm

    Hi all, i have one problem. I need to pass some
    session to a java bean for processing.. Can i know are
    there any possible ways of passing? thanks.if i understand you correctly, and you mean passing a session object
    to a bean from a jsp page, do this:
    have in your bean:
    import javax.servlet.http.HttpSession;
    private HttpSession session = null;
    public void setSession (HttpSession sessionFromJsp) {
    session = sessionFromJsp;
    in your jsp:
    beanname.setSession(session);
    the variable named session is available is jsp pages,
    it is an instance of the javax.servlet.http.HttpSession class,
    and provides access to the client session information.
    dave

  • Passing Record type parameter from one session to other session

    Hi,
    I have a package.procedure, in that I am calling custom workflow, inside this workflow again I am calling
    same package.procedure (Its an recursive call)
    I need to pass record type parameter in this package.procedure.
    I tried with global variables but Workflow starts its new session so it losses all variables.
    Now I am going with creation of Custom table.
    Please advice, is there any way other than creation of Custom table.
    I mean can we pass Record type parameter from one session to other session without creating table.
    Regards
    Rohit

    Al-Salamu Alikum We Rahmatu Allah We Barakatu...
    want this place from to be passed as a parameter to the shipping bill form..... using web.show_documentwhy don't u think of just passing data parameter or global parameters from one form to another
    Pass global variable between two forms.
    Hope this helps...
    Regards,
    Abdetu...

  • Passing session id from one session to other in BI query.

    Hi all,
    i have an application developed in VC and launched in portal, on this application i have button, on push/click of this button, i am fiering a BI query to retrive data from infocube in backend BI server. here i have implemented an SSO already between portal and BI server, but on click of this button i am again asked for the authentication. I know what the problem is, on click of this button entirely new session is starting so in new session i am asked for authentication, but i guess if i pass the session id from old sesion to this new one, the cookie will get transfered and i will not be asked for authentication.
    Am i correct in this approach?
    Has anyone faced this issue,? i have searched all forums but didnt get anything relevent to my issue.
    Any help will be hghly appreciated!!
    Regards,
    Ameya

    Solved using SSO and using FQDN

  • Passing value to LOV page scope

    Hi ,
    In my application ,I am using ADF task flow and af:region
    to display lov (each lov search content is in a seperate jsff file).
    I have to pass some parameters to fragment page flow scope and
    for that I am declaring parameters in base page def and task flow def.The problem
    with this is, the passed parameter does not contain the latest value. Though
    I have made sure that each time the passed parameter must refreshed by setting
    refresh condition of base page def config as ifneeded and each time I am passing
    a dummy parameter (containing Math.random() value) only to make sure that
    each time it passes a different set of parameters.
    Can anybody find out what is going wrong here?
    One more thing... If I put the values in other scopes (process, session) and try to
    access, the value passed is null.
    Thanks in advance,
    Ghosh

    Hi ,
    I have tried out ur suggestion but it's still not working ,here i am attaching my code,
    pls chk..
    On my poplist event following acton will be excuted in process form request :
    OAFormValueBean frmBean1 = (OAFormValueBean)webBean.findIndexedChildRecursive("OrgFrmValue");
    String nbrOrgvalue = (String)pageContext.getParameter("OrgNameChoice");
    frmBean1.setValue(pageContext,nbrOrgvalue);
    i also mapped this OrgFrmValue as critem item in LOV , which in turns refers to UserIdFrmValue bean of LOV Page from value Item .
    I am using following code in my LOV Page CO :
    Dictionary passiveCriteriaItems = pageContext.getLovCriteriaItems();
    String OrgName = (String) passiveCriteriaItems.get("OrgName");
    System.out.println(" ORG NAME" + OrgName);
    but it gives me null value , can u tell me where is the problem ??
    please help.
    thx Anand

  • How long is the life time of process scope variable ?

    Hi All,
    How long is the life time of process scope variable befoer it expires ?
    Is it the same with the life time of session scope ?
    How can we set the value in OAS when deployment ?
    Thank you,
    xtanto

    Hi,
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/devguide/communicatingBetweenPages.html
    " Finally, processScope never empties itself; the only way to clear processScope is to manually force it to clear:
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.getProcessScope().clear();
    Otherwise the variable lives for the duration of the window process. The referenced document above also shows how to set a variable to process scope
    Frank

  • How to pass serialized session/usertoken to BO webservice from xcelsius?

    I wonder how to pass serialized session/usertoken to BO webservice from xcelsius. Could anyone help me how to pass the serialized session/user token to BO web service from Xcelsius?
    Xcelsius is working fine when i use the username/password. But i would like to pass serialized session/usertoken from jsp file to Xcelsius as flash variable , then i will use this variable to get the data from webservice.
    Is that possible to send serialized session/usertoken using soap header?
    Thanks in advance...

    Hi Micheal
    Thank you for the reply.  I have already created the CELogonToken Flash Variable and i am able get the logon token and map to the flash variable.
    Now i would like to pass the same to biws as parameter. But the service has only 2 parameters as username and password.
    Is there a way that i can create my custom parameters(CELogonToken/CESerializedSession) in BIWS service?

  • Pls help...How to pass a executed value to a variable?

    hi everyone im new here..
    ok im having prob in passing the executed value of a string into a variable for me to manupulate the value. sample codes as below :
    declare @Str varchar(500)
    declare @Str1 varchar(50)
    declare @Int varchar(50)
    declare @Str2 varchar(50)
    set @Str1 = 'where ET.isVerified = 1'
    set @Str = 'select sum(ET.Sundries+ET.Entertainment+ET.BalReimbursement+ET.Fee+ET.TrainerCharges+ET.SeminarPack+ET.Food+ET.Accomodation+ET.Flight) from ExpensesTransactions ET ' + @Str1
    EXEC(@Str)
    Answer : 16935.00
    so now i want to pass the output(Answer) into a variable so that i can insert the value into a table. anyone can help me in this thing . thank you so much..
    regards
    -nash-

    hi Jurek
    thanx for ur help dude, i change as what u said but i got this error msg "Incorrect syntax near '@Answer'"
    declare @Str varchar(500)
    declare @Str1 varchar(50)
    declare @Int varchar(50)
    declare @Str2 varchar(50)
    declare @Answer varchar(50)
    set @Str1 = 'where ET.isVerified = 1'
    set @Str = ' BEGIN select sum(....) INTO @Answer From ExpensesTransactions ET ' + @Str1 + ' END;'
    EXEC(@Str)
    print @Answer
    but then i change the script abit to 'Begin select....' + @Answer + ' From ..' + @Str1 + 'END;'...this time i got no error msg but there is no value in variable @Answer...
    thanx everyone
    - nash -

  • Passing field symbol value to a variable

    Hi All,
    I have a value in Field Symbol declared as   <FS-STATUS> TYPE STANDARD TABLE.
    I want to use the value  <fs-status> -low  in  a case statement.
    For this i think i have to pass the <fs-status> -low  into a variable and then use in case statement.
    Can anyone explain how to pass values in field symbol to variable? Or if this is not possible is there any other solution.
    Thanks in advance.

    Hi ,
    I have give some code sample ; just check ..
    DATA: BEGIN OF line,
             col1(1) TYPE c,
             col2(1) TYPE c VALUE 'X',
           END OF line.
    FIELD-SYMBOLS <fs> LIKE line.
    ASSIGN line TO <fs>.
    MOVE <fs>-col2 TO <fs>-col1.
    WRITE: <fs>-col1, <fs>-col2.
    Or u can check this link :
         http://www.erpgenie.com/abaptips/content/view/401/62/

  • Method Scope variables controls Multi-Threading !

    Hye there Experts !
    First, let me thank you all for such a brain-stuff sharing around; feel nice to be a part here.
    While browsing through the below article, found something confusing...kindly clarify.
    http://www.javaworld.com/javaworld/jw-07-2004/jw-0712-threadsafe.html?page=1
    Extract from the above discussion I understand :
    when a variable is moved to method scope instead of instance scope, synchronization is achieved.
    How is this true for servlets ???
    Method scope variables are available only during method call I think...here, since this is a servlet, there will be only one instance and if many (lets say 10) requests hits this servlet object, all these threads will read same counter as all of them enter into this only one method of this object,
    so...this should be still not thread safe I guess.
    I didn't want to execute and see results of this code, but I am trying to understand the key at first.
    Please guide me before brain blows... :-)
    Would also appreciate any references that really says true things about
    'synchronization for enterprize (handle huge requests) web apps - technques for servlets and any other stuff'
    Thanks again guys, have a wonderful time.

    feel nice to be a part here.Welcome to the mad-house ;-)
    Method scope variables are available only during method callWARNING: I'm no guru, so this may be misleading or just plain wrong.. but as I understand it:
    Yep a "local" variable exists only the context of the execution of it's containing method... so a local variable is implicitly bound to the thread that created it (by invoking the method in which the local is declared)... a local variable can't be accessed directly by another thread simply because the other thread has no access-path to the variable (you can't expose a local through getters & setters)... hence locals are thread safe.
    The important bit is that it's the thread which "owns" the local variable... not the declaring method... if the method is executed concurrently by two threads, each thread will have its own private copy of all the local variables.
    One other question though: are locals in static methods still thread safe? I'm not sure.
    package forums;
    class NonfinalLocalVariableInThreadTest
      public static void main(String[] args) {
        try {
          new Thread(new Runnable() {
            public void run() {
              System.out.println(args[0]);
          }).start();
        } catch (Exception e) {
          e.printStackTrace();
    compiler error
    C:\Java\home\src\forums>"C:\Program Files\Java\jdk1.6.0_07\bin\javac.exe" -Xlint -d c:\java\home\classes -cp c:\java\home\src;.;c:\java\home\classes c:\java\home\src\forums\NonfinalLocalVariableInThreadTest.java
    C:\Java\home\src\forums\NonfinalLocalVariableInThreadTest.java:9: local variable args is accessed from within inner class; needs to be declared final
              System.out.println(args[0]);
                                 ^
    1 error
    Output completed (0 sec consumed)

  • Suggestion: JavaScript scope variables and event listeners

    Invoking Java from JavaScript in ADF Mobile is surprisingly efficient although it is still relatively expensive compared to plain HTML5/JavaScript/CSS stuff in the native UIWebView. But whenever you want to do something "dynamic" you have to revert to invoking Java, even for simple use cases. As far as I can see it as soon as you use listeners on components, managed beans or data controls you're in the Java world.
    Why not add similar concepts that are pure JavaScript implementations for performance. As an example I want to have a SelectOneButton component and depending on its state I want to enable/disable an InputText component. As far as I can see it I would need Java to make this happen. First, I would need a Java managed bean to keep the enabled/disabled state. Then I would set the value property of the SelectOneButton with an EL expression to this managed bean property, or for other scenarios use a Java based ActionListener to change the state. Then the InputText component could use an EL expression in its Disabled property.
    For this simple use case this would still perform fast, but real applications grow more complex.
    Why not have the option of creating JavaScript based managed "beans"? The could live on javaScriptPageFlowScope or javaScriptViewScope. Then the AMX components could reference this from EL and it would be even better if we can create pure javascript ActionListeners (or other listeners). This would make it similar to the choice with ADF Faces application between doing a server roundtrip with partial-page-rendering and using pure clientListeners and clientAttributes for optimal performance.
    For situations where we do need to power of Java, it would be great if we can access these javascript scope variables from Java.

    This is a good suggestion, Wilfred. We haven't gotten to this level of optimization in the framework yet. At some point it's likely we'll have an option for the developer to specify the layer to handle the method.
    Thanks

  • Dataype of cfdocument scope variables

    Hello,
    It seems that since I installed the 8.0.1 updater the
    datatype of the cfdocument scope variables (eg totalpagecount and
    currentpagenumber) has been changed. Before the update the datatype
    was numeric, but now it seems unknown. This means I can't use
    mathematical expressions to these variables. Is this a new bug in
    CF 8.0.1 or....??
    Frank

    I have done some tests and it seems that the variables are
    replaced by {currentpagenumber} and {totalpagecount} and I think
    these variables are filled in by the pdf reader. I think we need
    some pdf programming guide to find out how to manipulate these
    variables.
    I have no clue why Adobe decided to change this behaviour in
    CF 8.0.1.

  • Is it possible to pass nQuireID (session ID) via URL ?

    is it possible to pass nQuireID (session ID) via URL?
    (how to get the session id ?)
    therefore, we dont need to pass the userid and password. (embedded in the URL)

    Ummm you can't get a session ID unless you login first, chicken and egg problem? Have you looked at implementing SSO? That's the proper way of solving integration issues, hard-coding the user ID and the password on the URL is a nasty and insecure "hack"...

  • BPEL designer bug changing local scope variables

    My appologies if this was already known.
    I am using bpelz version 0.9.10 and encountered the following bug:
    When I use the BPEL Inspector to change the XML variable name in a scope (the variable is defined locally in the scope), the name change occurs in other scopes (including leaf scopes not in the local scope chain).
    Perhaps I am using to old a version and this has been fixed.
    Cheers,
    -Dustin

    Thanks a lot Dustin. I will check it and communicate the same to dev team.

Maybe you are looking for