How to access parent document from Java listener

I have two applications, let's call them Gantt and Activity List. The Gantt application is an ADF application. The Activity List application is not. The Gantt application is hosted inside an <iframe> in the Activity List application. There is an input text entry field with ID "unassignedTaskId" in the Activity List application.
In the Gantt application, when the user clicks a button, there's a Java "listener" method in a bean. In this Java code, I want to access the value in that "unassignedTaskId" field and use it. How can I do that? JavaScript will not work for me in this case. I can access the UIViewRoot which is the top-level component in my page, but how do I get that one more level up, into the owner of the <iframe>, from the listener Java code?
I am using JDeveloper 11.1.1.0.2. Any advice appreciated.

I found a way to achieve what I want. I finally realized (I don't know why it took me so long) that the Java code was server code and that the UIViewRoot is sort of a copy of what is in the "real" DOM. Of course I can't get to the outer frame. Duh!
Once that finally clicked, I looked around and rediscovered clientListeners. I added a Javascript function getUnassignedTaskId(event) to get the value from the parent app and copy it into a hidden component in my app. Then I added an af:clientListener to my button to call this function. The clientListener gets called before the actionListener. So first the client side JavaScript copies the value from the parent app to my ADF app's hidden control, then the server side Java code can see it via the hidden control and its backing bean. Problem solved!

Similar Messages

  • How to access physical files from java platform

    Hello All,
    We have one JDE Word Writer program, which export the order master data in the DB2/400 Physical files.
    We want to access this data from our java program (reside on windows platform). I am wondering how we can do that. I got one hint that can be accessed by ODBC connection. But I am unable to get the correct ODBC driver. I am looking for correct driver to access the data.
    If some one has done this already, please help me. Or suggest me any alternate way.
    Dinesh

    Can use File class to write code to examine and manipulate file.
    Tutorial: http://java.sun.com/docs/books/tutorial/essential/io/file.html

  • I have iCloud but I don't know how to access my documents from my iPad on my Macbook Pro.

    I have Mac OS X Lion 10.7.3. I have read some things as to how to access files from iCloud in iTunes; but this didn't work or maybe I am not doing it correctly. i just started a doument on my ipad and I want to know how to access it now on my MacBook Pro. Help!

    Go to www.icloud.com with Safari on the Mac. You will have to enter your username and password. iCloud will open to your account and there will be an iWorks icon that you can click on. Then you can click on Pages, Numbers or Keynote at the top. All of your documents should be in there. You can click on a document to download it. Follow the prompts if it asks what format you want.
    As far as I know - only the iWorks applications currently work with this feature.

  • How to access KM documents from detailed navigation tree area in EP???

    Hello Gurus,
    I want to simulate the portal navigation. I want to show a page also with a detailed navigation tree with links to several KM documents on left frame and a content area for such content files on right frame.
    I have decided to modify standard par file "com.sap.portal.navigation.lightdetailednavigationtree" and I tried to modify JSP to show dinamically several links to KM documents applying logic based on webdynpro tutorial "Using Knowledge Management funcionality in Web Dynpro applications". But a runtime error occurs. I don´t know if I must add sharing references in portalapp.xml for using such classes and also I don´t know the way to do it.
    It would be really grateful if somebody could guide me through this issue or give me another more proper solution.
    Thanks in advance.
    Best Regards.
    Rosa

    Hi javier,
    If u want to access KM documents in some different format then ur default KM navigation Iview.
    Then please have a look at this blog. It will really help you:
    Launching WebDynpro from Universal Worklist
    I hope it helps.
    Please revert back in case of further issues.
    Regards,
    Sumit

  • How to access system calls from java program?

    i am having a doubt regarding accessing system calls from a Java program like accessing unix system calls from a c program.

    Runtime.getRuntime().exec("line command here");
    example:
    Runtime.getRuntime().exec("ls -la");

  • HOW TO OPEN WORD DOCUMENT FROM JAVA???

    hi everyone! Can you please help me to come with this problem? Let me to set my main target I want to achieve:
    1) In my program user should first press a button;
    2) Then already created Word Document should be opened (I DO NOT NEED to open that Word Document in Java or something like JField). Just simply it should be opened as a Microsoft Word Document.
    I DO NEED YOUR HELP! PLEASE HELP ME....!

    Running cmd using the exec is also a windows only solution, there is no "more" or "less" it that solution compared to the rundll.
    Since word is a windows format its pretty obvious that the application is ran under windows platform.
    If you are running on a different platform (maybe using open office you can open word documents, i'm not sure) you might want to use the JDIC library (https://jdic.dev.java.net/) which enables you to open/edit/browse such files using the default viewer/editor/browser of the system you are working on.
    Look at the org.jdesktop.jdic.desktop.Desktop object for these methods.
    You can also find the Desktop object in J2SE6 but its still in beta.

  • How to access iCloud documents on your mac.

    I struggled with this for days and finally found a simple solution.
    Here's one way:
    http://www.youtube.com/watch?v=YrmZbTZwoeA&feature=player_embedded
    Here's another. Thanks to http://osxdaily.com/2012/08/09/how-to-access-icloud-documents-from-the-mac-os-x- finder/
    Getting Easy Access to iCloud Documents from the Mac Finder
    Placing the Mobile Documents folder in the Finder window sidebar allows for quick access to files in the cloud:
    From the Finder, hit Command+Shift+G to bring up the Go To Folder window, and enter the path to the user Library folder found at ~/Library/
    Locate the directory titled “Mobile Documents” and drag that folder into the Finder window sidebar, or make an alias, this allows for easy access
    If you poke around the “Mobile Documents” directory you’ll find another series of folders, some are named nonsensically based on GUIDs as this folder is not intended for general user access, but each one is in accordance to an application that stores documents in iCloud. Apps including Notes, TextEdit, Reminders, Mail, Keynote, and any other Mac app with iCloud support will be included.Making changes to a document that syncs with an iOS device will reflect in the appropriate app from iOS. Likewise, for any documents stored in iCloud the changes made to the folder will reflect on other Macs. Versions does not work here, so be careful with changes you make.One thing you may notice is that Camera Roll pictures are not stored in here, but there is a similar way to access the iOS Photo Stream from Mac OS X too if you use that feature on an iPhone or iPad.Heads up to MacWorld for the recent tip reminder

    hidden files in Finder
    terminal copy&paste:
    defaults write com.apple.finder AppleShowAllFiles TRUE ;killall Finder
    defaults write com.apple.finder AppleShowAllFiles FALSE ;killall Finder
    if it is just the user library you are looking to change:
    chflags nohidden ~/Library

  • Can I access an element in parent document from Edge Animate Function?

    Hi, Very, very new to Edge Animate.
    I want to know if I can access elements in the parent document from the Function I attach to the Stage or other element within my animation.
    i.e. the equivalent of window.parent.document.getElementById
    I notice that the function automatically passes 'sym' which I'm guessing is the animation document reference so can I get to sym.parent?
    Sorry if this is a bit basic but it is really new to me.  Thanks.

    Hi,
    I had a similar issue, the need to access a DOM element of the Dreamweaver index.html file from within the Actions panel of my Edge composition.
    In my example, I have a <div> in the index.html with id="footer".
    This is how I obtained a JQuery style reference to the element within the composition's Actions panel:
    $("#footer", window.parent.document)
    This allowed me to access attributes, like this:   $("#footer", window.parent.document).html()... or you could assign it to a variable, like this: var myFooter = $("#footer", window.parent.document);
    Hope that helps!

  • How can I access xml document from javascript whithin a JSP page

    how can I access xml document from javascript whithin a JSP page?
    I have a JSP that receives an XML document from a JavaBean, so I can access it within the entire JSP, but I need to access it from the javascript inside the JSP... and I have no idea how i can do this.
    Thanks in advance!

    The solution would only work on MS IE browsers, as other browsers do not support an XML DOM.
    It can be done, but you would be stuck with using the Microsoft broswer. If that is acceptable, I have some example code, and a book recommendation.

  • How to attach a document from cloudOn to my online application form or website

    How to attach a document from cloudOn to an online application form or website?

    You will need an app (web browser) capable of both storing a document and accessing the site's functionality sufficiently enough to upload a file. Safari can't do this (and I'm pretty certain CloudOn can't either). A couple of options:
    iCab Mobile - store documents in the Downloads section and has settings to both change the BrowserID to a non mobile browser to unlock site functionality, and has a setting for uploading files from its storage rather then iOS in general. Its not free, but not very expensive and is a pretty could all around web browser in its own right. I've been using it for quite some time.
    iUploader - has both free (trial) and paid versions. I've only experimented with it a bit, but works fairly well. Like iCab, has its own file container that you up load from.
    In both cases you would need to transfer your files from the source app (CloudOn, in this case) to the file storage, and then access the website.

  • How do I save documents from the new Pages into a Word Document

    How do I save documents from the new Pages into a Word Document?

    Thank you so much - so simple!  I had been using the 'share' option (worked in old Pages) and only had icloud or email as options.  I have to attach word documents to emails to send to work. I don't want to use icloud because it's too public and I don't trust it.  Also, you have to be able to access the internet and I need word documents on my USB stick for work where there's no internet.
    I love my Mac but I do wish Apple would remember those of us living in less-than-perfect computer-land.
    Thanks again
    Lindsay

  • Access SAP Tables from Java Program

    Hi All,
    We have a requirement to integrate attendance portal(which is done in java) with SAP.
    Our problem is how to access SAP tables from a Java program?
    Database is Sybase.
    Please suggest us a good solution.
    Thanks in advance...

    Did you go through Sap Help?
    Calling BAPIs from Java - BAPI User Guide CA-BFA) - SAP Library
    Regards,
    Philip.

  • How to access the cloud from my pc?

    how to access the cloud from my pc?

    Go to Verizonwireless.com, log in to your account (or register your phone number if you haven't done so).  Once logged in, Go to My Verizon, My Device, Backup my contacts.  That should bring you to your Cloud "dashboard" - where you can view Contacts, Photos, Videos, Music,Documents, and anything else  you've sent to Verizon Cloud.
    If this doesn't work for you, then where does it break down?  Do you get any error messages?

  • How do i transfer documents from the cloud to the iPad for off line reading.?.

    How can I transfer documents from the cloud to my iPad for off line reading.?

    If you're using the mobile reader, you can use the technique mentioned in this infographic titled How to work with files on the go using Adobe Reader for mobile. Or, now you can access Acrobat.com from the iPad just using a browser as mentioned in this blog Acrobat.com on iOS is a beautiful thing.

  • How can I move documents from my iPad to the cloud?

    I am trying to move documents into the cloud from my iPad. Every time I select the upload icon, only my photos show up. How do I find my documents?

    squirrels,
    To save a single PDF document on iPad to Acrobat.com (i.e. one document at a time)
    Open a PDF document in Adobe Reader for iOS.
    Tap anywhere in the document to display the toolbar.
    Tap this icon in the toolbar.
    Select "Save to Acrobat.com".
    If prompted, sign in with your Adobe ID.
    If you want to transfer a lot of PDF documents on your iPad to any cloud storage service, you can transfer them to your Windows/Mac desktop computer using iTunes first.
    How to transfer PDF documents from your iPad/iPhone to your computer
    and upload them to the cloud storage service of your choice via a web browser.
    Does it answer your question?
    Please let us know if you still have a problem with uploading files.

Maybe you are looking for

  • Iphoto dies every time when I try to open it

    HELP.....my iPhoto 9.2 dies every time when I try to start it.... what can I do????? reinstalled it for at least 3 times, followed the guide which pops up when error occurred for at least 3 times, what else can I do with it ???? PS.1: OS X 10.7.2 PS.

  • How do I know if my device is data roaming?

    I turned on the device in a remote area on the Canadian side of US-Canada border near MI. Seemed that it was picking up 3G signal as it displayed "3G Verizon connected".  Does this mean it was not roaming.  How do I know when it is roaming or not wit

  • Rates In Scheduling Agreement

    Hello, We are maintaining purchasing info records for all material and vendor combination and from Info records rates are flowing in the purchase order and scheduling agreemnt. But in schediling agreement buyer can change rates by going on condition

  • Problem with chart : LV 7.1, 8.6 and 2010

    Hello I have a problem when I am trying to plot a 2d array in a chart with stacking plots. The LV crashes (the 2010 just disappears, 8.6 is saying that there is a problem...) . I get this problem on two different computers with all versions I have LV

  • Replaced battery now my screen is white

    need help