Basics navigation passing context

Folks,
I have and adf faces select-one table. having selected one row I would like to click on the submit button for this table and have it take me to another page.
The navigation is no problem but I would also like to take some values from the table iterator and use that value to restrict the iterator on the target page.
I am conceptually running into some challenges:
1. The manual I am using seems to alude to using EL expressions in the listener attached to the submit button. I have done this much and am getting row.rowKeyStr value but am not sure what the "to:" side should be. Does the listener request scope allow you to put values to a new page, or restrict an iterator or something?
2. If not request scope, does one have to create a session scope managed bean. I was not sure if I could use a request scope so I tried to create a managed bean, but when I try to set an attribute in my session the constructor never fires. I thought that ADF was supposed to handle instanciating these bean I created in the overview tab of the faces-config.xml file
3. What about other methods for passing values to other pages? Parameters? Setting some values on the target page directly?
4. And once you are at the new page how do you get at and use the value you have set to chage what the iterator brings back?
Thanks for any and all help.

OK, Shay. That is a great idea.
It looks like from a quick look I had on this document is that they are using a session bean. They called it userState.
I was heading down that path...I just had a few holes to fill in. I will peruse this document and find out more.
When I tried to create and use a session bean it was giving me an error that seems to indicate that the bean is not getting initiallized or constructed. Have you ever had such issues when creating managed beans in the session scope? Any scope?

Similar Messages

  • Webdynpro abap- navigation to context node

    Hello all,
    I am a new user for Webdynpro - abap. I was trying to set a default value to a input field. I am using WDDOINIT method for navigation to context node FLIGHTINFO. But i am not getting the exact idea behind the navigation at code level. Also not clear about get element at lead selection for context node FLIGHTINFO.
    Please provide inputs in this case.
    Thanks,
    Yogesh

    Hi
    There can be many nodes in the context, and many elements in each node. In order to set the default value to one of the attributes, we need to proceed as follows:
    1) Get the reference of node, whose attribute needs to be defaulted. Following is the code for the same:
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
    navigate from <CONTEXT> to <CN_NODE> via lead selection
    lo_nd_cn_node = wd_context->get_child_node( name = wd_this->wdctx_cn_node ).
    wd_context has the reference of context node (root node). It gives the reference of desired node (its child node) using method get_child_node. We pass the name of desired node as parameter of this method.
    2) In similar way we proceed to get the reference of desired element using following code:
    DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
    get element via lead selection
    lo_el_cn_node = lo_nd_cn_node->get_element( ).
    3) This element may have many attributes. We set the default value to attribute of selected node using following code:
    set single attribute
    lo_el_cn_node->set_attribute(
    EXPORTING
    name = `CA_TEST` " name of attribute where input field is bound
    value = lv_ca_test ). "Value that you want to set as default
    Follow the links for more help:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/14cf058d484250e10000000a1553f6/content.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/1b994f0c475a67e10000000a1553f7/content.htm.
    Regards,
    Saket.

  • How to pass context based parameters to subquery?

    Hello to All!
    How to pass context based parameters to subquery of custom folder when I schedule workbook?
    Thanks, Oleg

    Hi Russ
    Yes, I've done this too. Basic SQL though will not allow the updating of a table inside a function, so we have to get clever. The trick is to use the PRAGMA AUTONOMOUS TRANSACTION command. Here's an example:
    FUNCTION UPDATE_MYTABLE(P_VALUE IN NUMBER)
    RETURN VARCHAR2 IS
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    UPDATE SCHEMA_OWNER.MY_TABLE SET MY_VALUE = P_VALUE;
    COMMIT;
    RETURN('Done');
    END UPDATE_TABLE;
    When the update has been completed the Discoverer worksheet will respond with 'Done'.
    Everyone: don't forget to grant EXECUTE on this function to all of the necessary users, including the EUL owner, and also don't forget to import the function using the Admin edition so that it is available for the users. You will also need to make sure that all necessary users have been granted the UPDATE privilege on the table.
    I hope this helps
    Regards
    Michael

  • Passing context parameter as Subject to GP Mail template

    Hi ,
    I am using NW 7.0 SP14. I am using GP mail notifications to send out mails and I am successful sending context parameter values in the  body of mail template. Is there any way I can change the mail subject line dynamically by passing context parameter to the mail template.
    Thanks.
    Madhan

    Hi Madhan
    Unfortunately, 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.
    Best regards
    Armando

  • Pass context variables to input parameter

    Hello,
    I want to pass context parameters to a service call.
    If you read the context parameters, they are aways declared of type wd_this->element_<context-name>
    If I pass the context paramter to the service call, I get a type mismatch error.
    So how could I pass context parameters to a service call without binding it, because the ui-element is already bound to another context element.
    Regards Christian

    Hello,
    I've solved the problem.
    The parameter of the service call was a table parameter.
    I've forgotten to check the table-operation checkbox at the wizard.
    Regards
    Christian

  • How to Display Detailed navigation passing Top level navigation node name

    Hi All,
    I have prepared a DLN par file but unfortunatly my requirement is such that I need to pass one of the toplevel node name as input parameter and that should display the corresponding DLN which is from 3rd level.
    I have checked in sdn for passing a value to the navigation tag lib which will consider it as a selectednode but could find none.
    Can some body suggest me how to acheive this.
    Thanks in Advance.
    Sai Krishna. K

    Hi Kiran,
    Thanks for your Reply..
    Following is my Scenario:
    I use 2 same versions of portals connected via federated portal concept.
    I have my detailed navigation par file in portal2 and was calling it from portal1 from a iview.
    Since I am not physically navigating in portal2(which mean there is no selected node to iterate ), when I call that iview in portal1 it is picking up only 1st node in top level navigation.
    So i need to pass "My reports" (as 1st level) & "India" (as 2nd level) as parameters such that it gets only its DTN at all times from 3rd level.
    Hope you understand my scenario, below is my iteration code logic.
    <div id="myslidemenu" class="jqueryslidemenu">
    <ul>
         <nav:iterateSelectedNavNodesLevel level="<%=START_LEVEL%>">
         <%-- the 'currentDepth' attribute provides the byte value of the current level --%>
        <nav:recurseNavNodeChildren currentDepth="depth">
             <% current = start + depth.intValue() - 1; %>
             <%=writeClosingTags(last - current)%>
             <%
            last = current;
            %>
            <%-- we want to distinguish between folder and leaf nodes so we can use different graphics --%>
              <%-- complete the html syntax for the 'class' attribute pass it as an anchor attribute--%>
              <li><nav:navNodeAnchor navigationMethod="byURL" />
              <%-- checks for additional navigation level and the appropriate html tags to accomodate them --%>
            <nav:ifNextRecursionDepthWillIncrease>
                <ul>
            </nav:ifNextRecursionDepthWillIncrease>
            <nav:ifNextRecursionDepthWillNotChange>
                </li>
            </nav:ifNextRecursionDepthWillNotChange>
        </nav:recurseNavNodeChildren>
        <%=writeClosingTags(last - start)%>
        <% last = start; %>
    </nav:iterateSelectedNavNodesLevel>
    </ul>
    </div>
    As per the passing parameter concept please explain me a bit more clear with step by step procedure.
    <b>Here if not passing parameters, providing static values will also do for my requirement.</b>
    Many Thanks,
    Sai Krishna.
    Edited by: Konchada Sai Krishna on Feb 14, 2009 9:42 PM

  • Passing context value to Popup Window

    Hi,
    I am having a list of Sales Order numbers in a table.  And if any one of the SO is clicked then a popup have to show its item details with in a table.
    I am having the values of item list in the main view context and how to pass this data to the popup window. Also how to create the table in a window.
    RK

    Got the solution.
    Thanks
    RK

  • Navigation and context root

    I have a web application that only has four pages. A login brings a user to a welcome page and then from the welcome page, the user should be able to access either of the other two pages. However, jsf is trying to direct to the other pages relative to the page it is currently on. For instance, in my WebContent folder I have an html folder which has otherTwo and welcome folders. welcome.jsp is in the welcome folder and the page I am trying to get to is in the otherTwo folder. When I click the link to get to the page, it says html/welcome/html/othertTwo/page.jsp is not found.
    Relevant code
    <navigation-rule>
    <navigation-case>
      <from-outcome>otherPage</from-outcome>
      <to-view-id>/html/otherTwo/page.jsp</from-outcome>
    </navigation-case>
    </navigation-rule>I have never had this problem before with jsf. I am using backbase for the first time in this application and was wondering if anyone knew if it is known for causing issues like this. Also, is there a way to set the context root explicitly in say web.xml or something like that?
    Thanks

    sl,
    Have you looked at the deployed applications in the OAS admin tool (GUI)? I'd be curious as t what you might find there with two applications using the same context root.
    -Michael

  • Passing context data back to Java Webdynpro

    Hi All,
    I have created Java Webdynpro's with Adobe Interactive Forms in them. I use ActiveX not Native. Yesterday passing data from the AIF to Webdynpro for Java was working like this (it didn't work in Native mode) today it doesn't. Neither does pressing any buttons. I'm not sure what has been installed on my system, it could be Adobe Read 9.0. Now creating the forms using the livecycle designer in de Netweaver developer studio is also very unstable (unworkable)
    My main question is: how can I pass the data from the interactive form to webdynpro for java (without using the submit button, as I want to have such buttons on my webdynpro and not in my forms.)
    Jeschael

    Jeschael,
    Try creating a new project and repeat the same steps. Do you get error there as well.
    Also try setting some context in WD, assign it to a Text Field of Adobe and see if you get the value.
    For eg: Let's assume you created a Context called "Name" then set it
    wdContext.currentContextElement.setName("Test");
    Now try to assign this to Text Field, see if you get the value in Adobe form by writing this code in the initialize event of Text Field in Adobe LiveCycle Designer in JavaSript.
    xfa.host.messageBox("Value is :"+TextField1.rawValue);
    Chintan

  • Navigation passing values question

    Hi All,
    I have two reports master and detail.
    On the master report, i have an employee name column and the value interaction type is navigation which links to detail report. Is there anyway i can pass more than one value or employee id thru navigation link to detail?
    Thanks!

    Hi...
    In your main report you are navigating to detail report based on values of employee name.. not with the employee ID.
    But in detail report you have kept is prompted on empid..
    How it could work... as you are not passing any empid values to your detail report from your main report... to apply filter on for empid values..
    So if you want to navigate based on employee name then, you need to keep Is Prompted on empname only for detail report also..
    So try it.. It works..
    And don't forget to close the thread.. if answered.. also check your previous threads..
    Thanks & Regards
    Kishore Guggilla

  • Odd Basic Navigation Issue-CS4/Indesign/Acrobat

    I'm teaching an interactive document unit with my students, and right now we're just doing basic interactive work. Today was their first day adding functionality in the form of Forward/Backward buttons for a document. We created the buttons from basic text on the master page. We simply assigned them an "On Release" action of "Go to next page," and "Go to previous page"
    When we export the document, I made sure they check the book to include interactive elements. Every student's worked fine as expected except for one. No matter what we did, the buttons were clickable in Acrobat, but they would not change pages. I triple checked everything on the InDesign end, but to no avail. I'm guessing this is something machine specific on Acrobat's end.
    Any ideas?

    When you exported the PDF what compatibility did you choose?
    Is the compatibility you choose higher than the version of Acrobat viewing on?
    What you can try is using the PDF options from a computer that worked.
    In the Persons PDF options that works choose Save Preset
    Then load that preset on the other computer in
    File>Adobe PDF Presets> and select the file.

  • Staroffice Basic, Calc, passing and using ranges

    Okay, I was trying to transfer a VBA function from Excel to StarOffice.
    The routine call looks like this:
    =PS_MUL($K$22:$K$277 ; $L$22:$L$277 ; $F$22:$F$277 ; F22)
    That is, there are three ranges, and a value input.
    Here is my attempt at STAROFFICE's version of this routine
    Function PS_MUL(Tay1_A as Object, Tay2_A as Object, Rank_Vector, Rank_A as Long) as Double
       Dim Product_sum as Double
       Dim Element1 as Double, Element2 as Double
       Dim i as Integer, j as Integer
       Dim cell1 as Object, cell2 as Object
       Product_sum=0
       i=0
       For Each Element1 in Rank_Vector
          i=i+1
          j=0
          cell2=Tay2_A.GetCellByPosition(i,0)
          For Each Element2 in Rank_Vector
              j=j+1
              cell1=Tay1_A.GetCellByPosition(j,0)
              If Element1+Element2=Rank_A Then Product_sum=Product_sum+cell1.Value*cell2.Value
          Next Element2
       Next Element1
       PS_MUL=Product_sum
    End FunctionIn VBA, I simply refereced "Product_sum=Product_sum+Tay_1A( i ) * Tay_2A( j )"
    That is, the input cell ranges are 1-D arrays, and Tay_1A was implicitly defined. So I just used them as arrays, and no problem.
    Here, no matter what I try to do with my code, including getting a cell reference by position and taking its value or whatnot, I still get errors.
    I think it is becoming clear to me that I don't understand how to pass and use range references in StarBasic.
    If anybody could help me out with understanding passing and using these range references, I'd appreciate it.
    Just for comparison, here is the function in VBA:
    Function CombSumProd(Tay_1A, Tay2_A, Rank_Vector, Rank_A As Variant) As Variant
    Dim Product_sum As Variant, Element1 As Variant, Element2 As Variant
    Dim i As Integer, j As Integer
    Product_sum=0
    i=0
    For Each Element1 in Rank_Vector
      i = i+1
      j = 0
      For Each Element2 in Rank_Vector
          j=j+1
          If Element1+Element2=Rank_A Then 
                 Product_sum=Product_sum+Tay1_A(i) *Tay2_A(j)
       Next Element2
    Next Element1
    CombSumProd=Product_sum
    End Function

    Hi
    Follow the steps below - (I am assuming that you are using BI queries in your model & your tabs are as per quarter - one tab for each quarter)
    1. Create one radio button & in entry list create static list as 1 - Quarter 1, 2 - Quarter 2 & so on.
    2. Now you want plan Vs actual in one graph & Currency in another. So create these reports for each quarter separately, so in all you will have 8 reports (2 for each quarter)
    3. IN the layout you have to arrange it vary carefully, you take all the 'Plan Vs Actual' report for all the quarters & arrange them exactly one over the other. Same for Currency reports also.
    4. NOw Give visibility condition for each report example - if report is for first quarter then condition will be - bool(if(radio button string=="1",true,false)) & assign the default value in radio button as 1. so that at the time of execution you will get these reports by default.
    5. Like wise give condition for all.
    6. When you execute this report you will get radio buttons at the top & as you select different buttons differents report will get opened.
    7. As you have plased these exactly one over the other, user will not come to know these are different reports.
    Try this method, if you have any doubts for this, please do ask me.
    Regards
    Sandeep

  • Navigation & passing on values & javascript

    Hi experts,
    I'm quite new to BSP so I apologize in advance if my question seems silly...
    I have to modify a CRM screen so that it calls a web service from a popup window. I've created the popup window calling the web service, and it appears when the user hits the TAB button after filling in the "firstname" and "lastname" fields in the CRM screen. This was done with javascript.
    I want to know what I need to add to my code CRM screen code and where so that these two values be passed on the BSP popup page that I call. Also what do I need to add to the popup BSP page to be able to use these parameters.
    Here is the code of the firstname and lastname inputfields that generates the popup action:
    <crmic:gridLayoutCell columnIndex="<%=lv_c4 %>" rowIndex="<%=lv_r2 %>" colSpan="<%=lv_colspan2 %>"><crmic:inputField id = "ContactName2"
                        width     = "100%"
                        maxlength = "35"
                        focus     = "TRUE"
                        value     = "//SearchContactAsBP/ContactName2" /></crmic:gridLayoutCell>
    <crmic:gridLayoutCell columnIndex="<%=lv_c6 %>" rowIndex="<%=lv_r2 %>" colSpan="<%=lv_colspan3 %>"><zcrmic:zinputField id = "ContactName1"
                        width     = "100%"
                        maxlength = "35"
                        CALL_JS_FUNCTION_ON_TAB = "TRUE"
                        JS_FUNCTION_NAME = "callWebService()"
                        value     = "//SearchContactAsBP/ContactName1" /></crmic:gridLayoutCell>
    And the javascript function callWebService() is the following:
    <script language="JavaScript">
        function callWebService(){
            window.open('http://server.sap.corp:50000/sap/bc/bsp/sap/z_bsp_popup/default.htm'
    ,'WebService','resizable=yes,height=350,width=300,dependent=yes,status=1');
    </script>
    The two BSP apps are not in the same package, is this important ? (the CRM screen is in a temp package and the BSP popup page is in a Z package)
    Thanks, points will be rewarded
    Micol

    in z_bsp_popup/default page add two page attributes
    1. first_name type string (check the auto check box)
    2. last_name type string (check the auto check box)
    change the javascript function which calls the popupt to pass first name and last name.
    window.open('http://server.sap.corp:50000/sap/bc/bsp/sap/z_bsp_popup/default.htm?first_name=<firstname>&last_name=<lastname>'
    now when you call the popup the first_name and last_name variables in the popup will automatically get the values which you have passed via url.
    Raja

  • Frame actions, basic navigation

    Hi
    I've recently started using CS4 and am having a problems
    trying to put actions into a frame. i used MX years ago so i
    thought i has a slight understanding of creating a simple website
    but am having a few lil problems.
    I have a scene which has an intro animation, and an outro
    animation. What id like to be able to do is to have buttons that
    when pressed will play the outro animation then automatically goto
    a scene.
    is it possible to make a button play the outro animation then
    goto scene 2, and have another button on the same stage that will
    play the outro animation then goto scene 3?
    im sure this is real noob teritory but maybe im not seeing
    the wood for the trees?
    many thanks in advance

    Cyman666,
    > i got my idea of having an action on a frame at the end
    of the
    > reversed animation to work!
    Great! Yes, it's important to realize that your code and be
    associated
    with any keyframe on any timeline, and depending on your
    needs, multiple
    keyframes is often a useful way to gol.
    > but would still like to know if theres a better way to
    do it?
    >
    > i guess it would be some type of variable?
    Yes, you could certainly declare a variable to hold whatever
    information
    you like, such as where the playhead just came from.
    > " if printwork button is pressed then goto and play
    frame 20
    > then goto scene 2"
    > " if illustration button pressed then goto and play
    frame 20
    > then goto scene 3"
    You've got the right idea. Here's a quick test that should
    provide you
    with a useful proof of concept. Create a new ActionScript 3.0
    FLA file and
    enter the following code into frame 1:
    var myVar:String = "Scene 1 timeline";
    this.gotoAndPlay(1, "Scene 3");
    You don't have a Scene 3 yet, but you're about to create
    one. So far,
    this code simply declares a variable named myVar, types it as
    a String
    (because that's what it's going to be), and then set it to
    the String value
    "Scene 1 timeline," which is where you are. After that, the
    MovieClip.gotoAndPlay() method is invoked on the main
    timeline (which is, in
    fact, a movie clip), instructing this timeline to go to Scene
    3 and play
    frame 1 of that scene.
    Pretty straightforward, right? Now open your Scene panel
    (Window >
    Other Panels > Scene) and create two new scenes, which
    will by default be
    named Scene 2 and Scene 3. Select Scene 3 and enter the
    following code in
    frame 1:
    trace("Just came from: " + myVar);
    myVar = "Scene 3 timeline";
    this.gotoAndPlay(1, "Scene 2");
    When you eventually test this SWF, it's going to create the
    myVar
    variable, then jump to Scene 3. When the playhead hits frame
    1 of Scene 3,
    the trace() function will output the message "Just came from:
    Scene 1
    timeline," because the value of myVar at this point is "Scene
    1 timeline".
    Does that make sense? You'll see this message in the Output
    panel, which
    will open for you automatically if it isn't already open.
    After the trace()
    function, the value of myVar is set to "Scene 3 timeline,"
    and the playhead
    is sent to Scene 2.
    Select Scene 2 from the Scene panel and enter the following
    final code
    in frame 1:
    trace("Just came from: " + myVar);
    myVar = "Scene 2 timeline";
    trace("Stopped at: " + myVar);
    this.stop();
    Study that code a bit, but it should probably make sense by
    now. Test
    your SWF, and you should see the following messages in your
    Output panel:
    Just came from: Scene 1 timeline
    Just came from: Scene 3 timeline
    Stopped at: Scene 2 timeline
    So, in AS3, variables carry over from scene to scene. In
    your case, you
    may want to declare a variable in frame 1 of Scene 1 that
    describes the
    timeline most recently visited. In your button code, you can
    use an if()
    statement to check if the value of that variable is one
    thing, another, or
    something else, and perform various actions based on the
    variable's value.
    Use the first frame of each new scene to update that
    variable's value as
    appropriate.
    Note: If all of this setup code occurs in frame 1 of Scene
    1, make sure
    not to have your other scenes send the playhead back to Scene
    1's frame 1
    ... otherwise you might accidentally "reset" whatever you
    code into that
    first "entry" frame. (You can always have the other scenes
    return you to
    frame 2 (or frame 100, or whatever) of Scene 1.
    > ps your site is very helpful David!
    Thanks! I'm always glad to hear that. :) Just make sure,
    whatever
    blog entry you're reading pertains to the version of
    ActionScript you have
    in mind.
    David Stiller
    Co-author, ActionScript 3.0 Quick Reference Guide
    http://tinyurl.com/2s28a5
    "Luck is the residue of good design."

  • Basic UDO Navigation with Userform

    Hi there!
    I have a problem with the basic navigation provides by udo in sap.
    A userform linked to an udo object has the following basic navigation:
    - Create New Record
    - Search Record
    - Move to First Record
    - Move Back
    - Move Forward
    - Move to Last Record
    These are the buttons you can see in the menu on top of sap.
    Normaly all these buttons are activated when linking a userform to an udo.
    but now i have 2 forms, where i can only add a new record and search for a record. but i can't navigate between them...
    i don't know why..is there a difference between udo-types, should i add a special code line to my code or set a property of my userform?!?! like i said before, normaly this is working, but now?!
    please help..
    btw: the udos do also have a sap-standardform. but these aren't really necessary.
    thanks
    matthias

    Hi,
    For Navigation functionality to run in your customized form.
    First of all please check whether Find option is checked in your User-Defined Object Registration screen from SAP B1.
    If it is not then please checked it.
    You have to place an edittext either visible or non visible in your screen and bind it with DocNum (in case of master type bind with code) of your table.
    Then wite
    either
    objForm.DataBrowser.BrowseBy = "ID of that EditText"     (in your code)
    OR
    <DataBrowser BrowseBy="id"/>     (in xml)
    Please try
    regards:
    Sandy

Maybe you are looking for

  • Missing Mail Rules after upgrade to 10.8.2 from 10.6.8

    The title says it all, really - I just upgraded to 10.8.2 via the App Store from 10.6.8, and, after a long period of re-indexing my email, Mail.app opened up and all of my sorting rules were gone  gone gone. There doesn't seem to be an easily findabl

  • My hard drive is no longer listed in my disk utility

    I had to reinstall my OS X on my 2010 MacBook Pro after booting to a white screen that had a "?" in a folder flashing. I had to install on off an external hd because the computer wasn't recognizing my internal hd (factory installed). Once I was able

  • Problem starting Acrobat 6.0 after installation of Adobe Reader 10

    Every time i start acrobat 6.0 i am getting the following error: there was an error while loading the plug-in HTML2PDF.api there was an error while loading the plug-in PPKLite.api Worked fine with adobe reader 9 I have the last update of Acrobat 6.0.

  • How to make it

    I have a RDF file, <rule:Imp> <rule:head> <rule:Atom>      <rule:rel>worksWith</rule:rel> <rule:atomArg>           <rule:Var>           <rule:varName>X</rule:varName>           </rule:Var>                     </rule:atomArg>      <rule:atomArg>      

  • Link to other scenes in drop down menu

    I have a drop down menu in AS2 Flash. I want to be able to link to any scene, any frame from this one menu. All I want to do is to go back to the root and then to go to the relevant scene/frame. Inside my menu (a series of buttons inside a movieclip)