How is the getReturnParam Map set in the dialog framework?

Hi All,
I'm trying to pass around some values from my main window, to a dialog window, and then use those values in a call to a business method when the user presses "Approve" on the dialog. I want to call the business method in the returnListener method, but I can't find any information on how to manipulate the Map that is returned by:
event.getReturnParameters();
Does somebody have an example of setting and using this Map?
Thanks,
Matt

I found a solution for this problem. Here is the new code for the launchListener:
  public void approveMessageForSend(ActionEvent e) {
    final AdfFacesContext adfi = AdfFacesContext.getCurrentInstance();
    adfi.returnFromDialog(new String("approvedToSend"), adfi.getProcessScope());
    adfi.getProcessScope().clear();
    logger.info("RETURN FROM approveMessageForSend");
  }note the second argument in returnFromDialog. I am accessing the process scope, which returns a Map of all the values I placed in processScope using the launchListener.
Thus I am able to access that map in the returnListener with the following code:
  public void sendApprovedMessage(ReturnEvent event)
    Map m = event.getReturnParameters();
    ... rest of method ...Thanks for your help. I wouldn't have thought of using the returnFromDialog method for this.
-Matt
Message was edited by:
mattedelman

Similar Messages

  • Override renderKit to customize the dialog framework behavior

    Hi all,
    We're using JDeveloper 11.1.1.5.
    Our requirement is to hide the browser's tool bar of the window opened by the dialog framework.
    The below post says that the dialog framework only cares for height and width and ignores all other parameters.
    How to Make dialog as full screen
    And the below Java Doc says that the list of window property names that are supported by DialogRenderKitService.launchDialog() depend on the RenderKit.
    http://www.jarvana.com/jarvana/view/org/apache/myfaces/trinidad/trinidad-api/1.2.7/trinidad-api-1.2.7-javadoc.jar!/org/apache/myfaces/trinidad/render/DialogRenderKitService.html#launchDialog%28javax.faces.context.FacesContext,%20javax.faces.component.UIViewRoot,%20javax.faces.component.UIComponent,%20java.util.Map,%20boolean,%20java.util.Map%29
    Therefore it is likely that we can accomplish our requirement if we implement our own renderKit and set it as default.
    Is it possible to override default renderKit (oracle.adf.rich) to customize the dialog framework behavior?
    Regards,
    Kenji

    Thanks for your response.
    However I think that overriding renderer is not the way to go but overriding render kit is.
    It seems to me that dialog launching in the dialog framework is executed by launchDialog() method of DialogRenderKitService which is obtained as follows.
    RenderKit rk = FacesContext.getCurrentInstance().getRenderKit();
    DialogRenderKitService service = Service.getService(rk, DialogRenderKitService.class);Thus the solution should be, I think, something like this:
    1. Override launchDialog() of DialogRenderKitService of the dialog framework so as to launch a dialog without the browser's toolbar.
    2. Extend the default render kit (oracle.adf.rich) so as to return the extended DialogRenderKitService when Service.getService(rk, DialogRenderKitService.class) is called.
    3. Set the extended render kit as default in faces-config.xml.
    However, this is not easy (or I should not do this) as both the default DialogRenderKitService and render kit are in internal packages.
    There may be another solution that is applicable.
    Any idea?
    Regards,
    Kenji

  • How to send a request parameter to a dialog pages with jsf

    I'm using the dialog framework of oracle, java server faces.......
    I need to open a url on a dialog page(request scope), and I must to pass request parameters. I put <f:param> objects inside the commandLink who I click.....
    If the page is not dialog, it woks fine, but when I put in a dialog way.... nothing work
    =[
    anyone know what I have to do?
    thanks

    Hi, I suppose you have already seen the ADF DIalog Framework, isn't it?
    I think there tells how to pass parameter
    A workaround is to save them in your session and then get them back and remove

  • How do I use GarageBand as a amp/speaker to listen to my Electronic Drum set? I have a MIDI-USB cord already but I can't figure out how to listen to my set through the software using my computer speakers?

    How do I use GarageBand as a amp/speaker to listen to my Electronic Drum set? I have a MIDI-USB cord already but I can't figure out how to listen to my set through the software using my computer speakers?

    If you want to listen to the sounds of your drum set, you should use an audio cable and connect it to the computer's line-in, then create a real instrument track.
    If you use a Midi/USB interface, you'll have to create a software instrument track and select one of GB's drumsets as the instrument. Hopefully your drumset's midi notes are mapped to the right sounds in GB.

  • How to integrate bing map for including or displaying multiple locations at the same time

    how to integrate bing map for including or displaying multiple locations at the same time

    Have you aware of the geolocation field that's been introduced with SharePoint 2013?  You can store location data within a list and then integrate this within Bing.  The second tutorial on this Bing team blog will show it well.
    https://www.bing.com/blogs/site_blogs/b/maps/archive/2013/03/26/connecting-a-sharepoint-list-to-bing-maps.aspx
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • When I tap on the to line to add an address sometimes people's names come up that I don't have as contacts.  How can I change this setting?

    When I tap on the to line to add an address sometimes people's names come up that I don't have as contacts.  How can I change this setting?

    The only way that I know currently know of to remove old or incorrect email addresses from the Mail app is to reset the iPad back to factory defaults, which I assume that you don't want to to. You could try leaving feedback for Apple and maybe one day we'll day be able to edit them : http://www.apple.com/feedback/ipad.html#ipad

  • I made a big mistake to change the setting of my Mac book pro to "me only". Now ofcourse It cannot open the login page, for how would the mac know it is me? How can I change the setting back to "everyone"?

    I made a big mistake to change the setting of my Mac book pro to "me only". Now ofcourse It cannot open the login page, for how would the mac know it is me? How can I change the setting back to "everyone"? I have back up in the past but the last month I have not. I really want to keep the data.
    So how can I go in and change the setting, It stays ofcourse at the apple screen with wheel. All info is there and the computer works fine, just cannot use it or have been able to log in.

    wjosten is spot on.  If you really want iCloud, then you will need to acquire a new or second hand MBP that can run Lion.
    Ciao.

  • HT1386 I have double and triples of photo's on my iPad. Not all my pics but most of them. I was told that I screwed up in synching with iTunes when I initally set up. How in the **** do I get rid of all the dups? I cannot delete them from my iPad. HELP ME

    I have double and triples of photo's on my iPad. Not all my pics but most of them. I was told that I screwed up in synching with iTunes when I initally set up. How in the **** do I get rid of all the dups? I cannot delete them from my iPad. HELP ME!

    If the shows are in fact still on the pad, they will be found in the videos app, not the music or I tunes app.  Look there and see if they are still there.
    If you don't see them there, go to the searchlight screen ( farthest left home page) and type in the name of one of the shows.  If it is on the pad, hiding somewhere, this will find it.
    If they are not there, they should not be using up space.
    To get them back onto your pad, plug in and sync again.  Make sure you transfer purchases first.   Before you sync, take a look at the video tab in your I tunes, and check what you want and don't want synced.

  • HT204266 I live in an Arab country and don't read Arabic but the account set up screens are all in Arabic.  How do I get English set up screens to let me set up my account?

    I live in an Arab country but do not read Arabic. The set up screens for an iStore account are presented in Arabic. How do I get English set up screens?

    Set your language in Settings > General > International > Language

  • How to choose Mail (Mapi) when clicking "Export" in the Report Viewer

    I'm using .net 2008 and CR 2008 for reporting.
    In a form I placed the ReportViewer.
    Everything works fine.
    Here my problem: When I click "Export" in the Viewer I get the File-Dialog with Excel, Word, PDF.
    But I'm missing the Dialog where I can choose MAPI (Microsoft Mail) as destination.
    To illustrate, how I implemented the CR 2008 in our application:
        Public Sub ReportStarten()
            Dim l As Integer
            Dim Cmd As System.Data.SqlClient.SqlCommand = Nothing
            Dim Reader As System.Data.SqlClient.SqlDataReader = Nothing
            Dim ReportDataTable As System.Data.DataTable
            Dim SqlConn As New System.Data.SqlClient.SqlConnection()
            Dim ReportFenster As New ReportForm
            If Me._DruckVorschau Then
                ReportFenster.Text = Me.Reporttitel
                ReportFenster.Show()
                ReportFenster.WindowState = Windows.Forms.FormWindowState.Maximized
            End If
            'Diese Selektion wird im Report selbst berücksichtigt
            Me._ReportRpt.DataDefinition.RecordSelectionFormula = Me._RecordSelection
            l = 0
            Dim myTables As CrystalDecisions.CrystalReports.Engine.Tables = Me._ReportRpt.Database.Tables
            For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In myTables
                SqlConn.ConnectionString = Me._ConnectionString
                SqlConn.Open()
                Cmd = New System.Data.SqlClient.SqlCommand(Me._TableSource(l))
                Cmd.Connection = SqlConn
                Reader = Cmd.ExecuteReader(CommandBehavior.CloseConnection)
                ReportDataTable = New System.Data.DataTable()
                ReportDataTable.Load(Reader)
                myTable.SetDataSource(ReportDataTable)
                l += 1
            Next
            If Me._DruckVorschau Then
                'Vorschau
                ReportFenster.CrystalReportViewer.ReportSource = Me._ReportRpt
            Else
                'Sofortdruck
                Me._ReportRpt.PrintOptions.PrinterName = Me._DruckerName
                Me._ReportRpt.PrintToPrinter(1, False, 0, 0)
            End If

    The wiki (http://social.technet.microsoft.com/wiki/) is probably a better place for this.
    Jason

  • AIM IM The message "Hello" could not be delivered.  The other person appears to be offline. The user is not accepting offline messages. How do I change this setting?

    AIM IM The message “Hello” could not be delivered.  The other person appears to be offline. The user is not accepting offline messages. How do I change this setting?

    HI,
    The simple shortest answer is that you can't (Change a Buddy's settings)
    From your own end you can reply to the first Off Line IM you get on an AIM login (an accompanying IM for AIMSysMessage asks if you want them to Continue - replying No stops them)
    IF you have stopped Off Line IMS than you can reset this at AIM Settings
    You can log in here with AIM and Apple IDs that end in @mac.com and @me.com  (iCloud issued @me.com name are an Exception)
    In addition the Setting in iChat > Preferences > General Section that refers to setting the Status to Off Line on Quit stops the App starting up if iChat is not launched but the computer is ON
    8:16 PM      Friday; March 23, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Transfer Rules: How does the mapping work?

    Transfer Rules: How does the mapping work?
    Is there a document out there that explains the following or can someone help clarify it for me. I have some confusion on what is really going on.
    When I create an InfoSource (IS_Test)  as a “Flexible update…”  and then “Assign DataSource”  (DS_Test) and I respond Yes, to the message “DataSource assignment DS_Test to InfoSource IS_Test Save”
    a) <b>Under “Transfer_Structure/Transfer_Rules”</b> in the InfoSource
    1)  the “Transfer Rules” tab, what are the fields found in the right column (Assigned InfObjct-field)? And where do the fields you enter in the left column (<b>Communication Str/</b>Transfer rules) eventually go?
    2)  the “DataSource /Trans. Structure” tab, can I always assume that all the fields in the right column (DataSource) came from DS_Test? The left column (Transfer Structure), in my test was exactly the same as on the right. Where do these fields eventually go?
    b) Under “<b>Communication_Struct.”,</b> in the InfoSource
    3. the right column (ISource Fileds) where from those InfoObjects. if I am now creating my InfoSource. Where did they come from?
    4. The left column is “<b>Communication Structure</b>”, which at this point has no InfoObjects, if I move a couple of InfoObjects from the right to the left, where do these Objects in the left eventually go?
    5. what is the relationship between the “Communication Structure” in 4 and 1? Or any relationship between a) and b) as a whole?
    Thanks.

    Hi Caud,
    As Ashish pointed out, communication structure contains fields (infoobjects) that suppose to go to data targets. Which IO in CS to which IO in the data target will go (and what transformation of data may occur) is determined in URs of the data target.
    The transfer structure is the structure in which the data is transported from the source system into BW:
    http://help.sap.com/saphelp_bw33/helpdata/en/3f/0e503c3c0d563de10000000a114084/frameset.htm
    In “Transfer_Structure/Transfer_Rules” in the IS, DataSource /Trans. Structure” tab, right part shows fields in the Datasource, the left part – fields in the transfer structure. There is also a transfer structure in R/3 for a given DS. Transfer structure in BW is created identical to the TS in R/3 during TRs activation.
    During data load data are transferred 1:1 from TS in R/3 to TS in BW.
    TS in BW corresponds to the PSA table structure.
    How data from PSA are transferred to the CS is determined in TRs.   
    The 3rd column (“Field”) (“Transfer Rules” tab, right part (Assigned InfObjct-field)), contains field names of the DS (TS); and the 1st column shows IO in the CS to which the DS field will go. So, it’s a mapping DS filed -> CS field.
    The left part (“Communication str./Transfer rules”) is always identical to the CS content. But the 4th column (“Tp”) shows possible data transformation during transfer from PSA to CS. If this column contains a yellow triangle then there is no transformation (Value of DS field will go to value of CS field). If there is a red cross, it means that no data for this CS field is supplied from a DS. You can click on this yellow triangle and choose: 1). Another field from a DS; 2). Constant; 3). ABAP routine; 4). Formula. So, here you can determine the data transformation. Moreover, there is a possibility to create a start routine (blank sheet icon at the top).
    And finally, here are the answers on your questions:
    Q:
    a)     Under “Transfer_Structure/Transfer_Rules” in the InfoSource
    1) the “Transfer Rules” tab, what are the fields found in the right column (Assigned InfObjct-field)? And where do the fields you enter in the left column (Communication Str/Transfer rules) eventually go?
    A: Right part shows a mapping between DS and CS fields. Left part shows CS fields and data transformation (TRs) during data transfer from TS (PSA) to the CS. These are fields in the CS that will go to data target and which are fed from a TS (DS).
    Q: 2) the “DataSource /Trans. Structure” tab, can I always assume that all the fields in the right column (DataSource) came from DS_Test?
    A: Yes, you are right.
    Q: The left column (Transfer Structure), in my test was exactly the same as on the right. Where do these fields eventually go?
    A: As I described, left and right parts are identical. These fields will go to CS.
    Q: b) Under “Communication_Struct.”, in the InfoSource
    3. the right column (ISource Fileds) where from those InfoObjects. if I am now creating my InfoSource. Where did they come from?
    A: these are fields from an IS template, the name of this template you can see above this right part.  Actually, during IS (CS) creation you can choose different templates and choose fields from them transferring them into the left part.
    Q: 4. The left column is “Communication Structure”, which at this point has no InfoObjects, if I move a couple of InfoObjects from the right to the left, where do these Objects in the left eventually go?
    A: these are fields of CS (left part) and as I said before they will go to data target.
    Q: 5. what is the relationship between the “Communication Structure” in 4 and 1? Or any relationship between a) and b) as a whole?
    A: CS in 4 just shows IOs that will be transferred to data target. CS in 1 also shows how values for CS IOs are to be fed and transformed.
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov

  • HT4623 How to make Google Maps as the default Map App in my iPhone 5

    How to make Google Maps as the default Map App in my iPhone 5, so that I could still use the old bookmarks and use the pins to drop, Please assist.

    You cannot make Google Maps the default mapping app.

  • What is the second, third, etc. next-hop address in the route-map set command for?

    What is the second, third, etc. next-hop address in the route-map set command for?
    route-map TEST_PBR permit 10 match
    match ip address 101
    router(config-route-map)#set ip next-hop 1.1.1.1 ?
    A.B.C.D IP address of next hop

    Hi,
    You may get your answer in below link
    http://www.groupstudy.com/archives/ccielab/200812/msg00999.html
    First next-hop will be used unless until that is not unreachable. If first is unreachable, then next one will be used. Since these next-hops are directly connected, router can easily come to know whether they are active or not. In case you want to set some loopback ip as next-hop then you need to use keyword recursive "set ip next-hop recursive"
    --Pls dont forget to rate helpful posts--
    Regards,
    Akash

  • HT1766 I have had this i-phone almost a year and the last update crashed it.  I back up to i-cloud but this is not a new phone.  How do I get into set-up to restore from i-cloud?

    I have had this i-phone almost a year and the last update crashed it.  I back up to i-cloud but this is not a new phone.  How do I get into set-up to restore from i-cloud?

    From your OLD computer...
    Copy your ENTIRE iTunes FOLDER to an External Drive... and then from the External Drive to your New Computer..
    Full Details Here  >  http://support.apple.com/kb/HT1751
    Also see this migrate iTunes library post by turingtest2

Maybe you are looking for

  • How to calibrate PS CS5 to correctly print in HP T770 Plotter

    Hi, I recently installed in my shop a HP T770 Plotter but when I print something in it all the colors look faded. I calibrate my monitor using Windows 7 tool and after I did that the colors looks amazing in my monitor, but not that great on paper aft

  • LTE signal lost, about 2 bars worth city wide (4 down 2,2 down to zero) city wide last 3 months.

    The last 3+ months LTE service has dropped about an even 2 bars worth all over my home city, of North Ridgeville, Ohio 44039. Areas that had 4 bars are down to about 2, In my home I had 2 bars and now have no LTE and only 1 bar og 3G service that som

  • IconURL in JavaPortlet

    Hi. I am getting the following error while trying to specify an iconUrl in a JSR 168 portlet. Any clues? <Mar 1, 2004 11:57:55 AM PST> <Error> <netuix> <BEA-421519> <One or more validat ion error(s) occurred during parsing /portlets/MarketWatchPortle

  • Epson EPL 6200L impossible to print with Bonjour

    I [07/Nov/2007:22:16:31 +0100] [Job 171] Adding start banner page "none". I [07/Nov/2007:22:16:31 +0100] [Job 171] Adding job file of type application/pdf. I [07/Nov/2007:22:16:31 +0100] [Job 171] Queued on "EPSON_WIFI" by "pk 1". I [07/Nov/2007:22:1

  • How do you convert projects from html 5 to ac3?

    I started a project using html 5 but i want to switch it to an action script 3.0 project. I know its really easy to switch ac3 to html 5, but i cant find the other way around.