How can I get the underlying object from the ObjectReference

Dear friends,
I think this question has been asked a couple of times. But, I am still wondering if anybody has found an answer to it. Maybe this is some common need ...
I would like to get the underlying object for which the ObjectReference is
a mirror For example, I have a class Customer in my application, and I can get an ObjectReference through JDI during runtime. But how can I get the target VM's object which is a real instance of Customer, by which I can invoke methods defined in Customer?
Thank you so much for any input!
SunnyDay

I'll preface this response by admitting this far from an elegant solution, but I did write a function addressing this question, mostly as an exercise.
If passed an object with an InTextFrame property (Pgf, AFrame, Cell, Fn) that resides in an open document, the function will return the Doc object. Otherwise, it returns undefined.
function getParentDoc(testObj) {
    //Get object for current page
    try { var curPage = testObj.InTextFrame.FrameParent.PageFramePage; }
    catch(er) {return;}
    //Step backwards to first page in document
    var prevPage = curPage.PagePrev;
    while (prevPage.ObjectValid())
        curPage = prevPage;
        prevPage = prevPage.PagePrev;
    //Compare with first pages of open documents
    var testDoc = app.FirstOpenDoc;
    while (testDoc.ObjectValid())
        if (curPage.id==testDoc.FirstBodyPageInDoc.id) return testDoc;
        testDoc = testDoc.NextOpenDocInSession;    
    return;
To your PPS: Rather than seeing the native framework grow bloated to address additional features, I would love to see Adobe and other developers publish libraries of useful functions and class extensions.

Similar Messages

  • How can i get HD video out from the lumia 900. ? ...

    How can i get HD video out from the lumia 900. ? Is there some kind of gable. ? N8 has HD cable port..so where is lumia`s port. ?

    Download Zune and start it, when started connect your Lumia 900 and you can now transfer mediafiles from the Lumia to your PC through a USB connection. For Mac use the Mac connector.
    Press the 'Accept As Solution' icon if I have solved your problem, click on the Star Icon below if my advice has helped you!

  • How can I get a List Objects from my NameSpace

    Hello to All.
    I need a list of objects an specifc documentation about these. ( SAP XI)
    Any transaction o maybe tables , where located this objects .
    Thanks and Regards
    Edited by: Luis Ortiz on Oct 10, 2008 2:58 PM

    Location of XI objects in R/3.
    Please find the repository APIu2019s in the SE24 class builder that can be used for accessing repository objects from the ABAP stack of SAP XI. Check CL_SRAPI* in the SE24 transactions for digging further.
    location of interface objects
    CL_SRAPI_DATA_TYPE---data type
    CL_SRAPI_DATA_TYPE_ENH---data type enhancement
    CL_SRAPI_FAULT_MESSAEG_TYPE--fault message type
    CL_SRAPI_MESSAGE_TYPE--message type
    CL_SRAPI_INTEGRATION_SCENARIO--integration scenario
    chek this blog for more info
    Ripping off SAP XI Stack …Sharing the goodies of ABAP API’s..!!
    Regards,
    Sarvesh

  • HT204411 How can I get a tv show from the Canadian iTunes store from the United States Store?

    I have been trying to find the tv show the Listener and a few others everywhere. I can only find them in the Canadian iTunes Store. How can I get it in the United States Store?

    Ask whomever makes the show to sell it in the U.S Store.

  • HT201269 All the photographs stored on my computer ended up getting put on my iPhone. How can I get rid of them from the iPhone?

    All the photographs stored on my computer ended up getting put on my iPhone. How can I remove them from the iPhone?

    Photos synced to your phone can only be removed from your phone the same way they got there, through the iTunes sync process. Connect your phone, iTunes running, & under the photos tab remove the checks for all albums/folders you do not want on your phone. Hit the apply/sync button & they will be removed from your phone.

  • How can i get a particular model from the iphone 5s

    I am from austria an for the lte i need the iphone 5s model A1457 or A1530. If i would buy one, would i get one of the model?
    Thanks for answering. ;)
    ...and sorry for my english

    If you live in Austria you cannot purchase from an online Store in another country
    The various models are only available in the countries shown on table I linked for you
    You could purchase in Germany and you will get the same warranty cover in Austria since both are member states of EU

  • If messages are deleted from an itouch that is synced the same Apple ID and phone number, how can you get them to delete from the phone as well?

    how do I delete messages from both my itouch and my iphone

    You have to delete the messages from the individual device. If you delete messages on one device, messages on the other are not automatically deleted.

  • I need to set up a new iTunes account. How can I get all my music from the old account on to the new one??? Thanks../

    I have just bought an ipad 2 and wish to set up a new account as now I won't have to share with my sister. I want to get all the music off my current iTunes account & put it on to the ipad/new iTunes account. I'm not too sure how to do this though.... Please help lol :-) x

    If you mean iTunes libraries or computer user accounts, just create one. To make a new iTunes library on Windows, launch iTunes with the Shift key held down and choose Create Library.
    If you mean iTunes Store accounts, click here and request assistance.
    (79934)

  • How can I get back my bookmarks from the old sync?

    I reinstalled Firefox 29.0 but when I try to download the old sync bookmarks I can't find a way to enter my sync key.

    See this KB article - [[How to update to the new Firefox Sync]]

  • How can I get specific files back from my Time Machine backup?

    I wanted to make a fresh install on my MacBook Pro, in order to only have Java 8 instead of any older Java versions. So far so good. But now I want to get specific files/libraries from my external backup (USB):
    One Parallels Virtual Machine
    My old mail
    My iPhoto Library
    I don't need any settings for these, since I can easily configure them again.
    I already used the Migration Assistent to restore all apps.
    How can I get specific data back from the backup without restoring all stuff that I don't want anymore?
    I'm now working on a new account on the fresh system, called 'Admin'. My old account was called 'Hans' (or 'hans') and I'd like to create such an account again for all my tasks.
    Hans

    How can I get specific data back from the backup without restoring all stuff that I don't want anymore?
    I'm now working on a new account on the fresh system, called 'Admin'. My old account was called 'Hans' (or 'hans') and I'd like to create such an account again for all my tasks.
    You will want to add the same User account(s) which hold the data you want to restore. So you will want to add a User account of 'Hans or hans'. Check your Time Machine back up drive to see how the User account is labeled (Hans or hans). Navigate to the Users folder and see how it's labeled.
    You can then use your Time Machine back up drive and navigate to the User Home folder to copy its data over (e.g. contents from Documents, Downloads, Music, Pictures, etc.). Repeat for other Users.

  • How can I watch a Disney movie from the Disney website I have purchased movie cd and I can go to the website on by gateway computer but can't get it to play on my iPad it wants me to download flash but apple doesn't support flash or I can down loadQuickTi

    How can I watch a Disney movie from the Disney website I have purchased movie cd and I can go to the website on by gateway computer but can't get it to play on my iPad it wants me to download flash but apple doesn't support flash or I can down loadQuickTime but don't know how. Says to email website did that but takes me back to same place to email help

    Contact iTunes Customer Support, but honestly, there are no returns for iTunes purchases.

  • Since I downloaded the most recent version of iOS, my iPad and iPhone do not have all the music (from CD's) anymore that I have on our home computer iTunes Library.  How can I get all our music onto the music libraries on the iPhone and iPad? Thanks!

    Hi
    Since we downloaded the latest version of iOS on our iPad and iPhone, and synchronized our music collection in the Cloud, we can no longer see on our iPad and iPhone the music from our CD's that we have on our home computer's iTunes library.  We can only see music in the iPhone and iPad library that have been purchased on iTunes.  How can we get all our music from our computer's iTunes librbary visible on the iPhone and iPad?  Thanks, Nick

    Resync from your computer.
    iOS: Syncing with iTunes - Support - Apple
    If your having trouble syncing, come back and let us (fellow users) know.

  • My computer crashed and I lost everything. It was the only computer with Sync on it and I cannot get my recovery key: how can I get all my bookmarks from that Sync account?

    My computer crashed and I lost everything. It was the only computer with Sync on it and I cannot get my recovery key: how can I get all my bookmarks from that Sync account? I have a ton of bookmarks/saved password and the only way to get on sync is create a new recovery key and lose all of my information.
    Is there any way to get my stuff back without creating a new recovery key and losing all my old stuff?

    It has always been very basic to always maintain a  backup copy of your computer for just such an occasion.
    Use your backup copy to put everything back.

  • Ok I can't seem to get my apps,music, or photos from my iCloud from when I first setup iCloud on a iPhone 4. How do I get my things back from the iCloud and get them to my new device?

    Ok I can't seem to get my apps,music, or photos from my iCloud from when I first setup iCloud on a iPhone 4. How do I get my things back from the iCloud and get them to my new device?

    If you no longer have the phone or have any Backup of it at all, you can re-download your apps and your content from the iTunes Store by logging into your Apple ID at settings> iTunes & App Store. Unfortunately you can no longer recover the data that was associated with those apps.
    So far as your photos go, you can recover any photos that were in photo stream and taken less than 30 days ago by logging in with your Apple ID to settings> iCloud> photos. Unfortunately you will be unable to recover any photos from your camera roll.

  • How can I get iCal not to show the same birthday dates from my iCloud

    How can I get iCal not to show the same birthday dates from my iCloud?

    You don't need them stored locally for a backup. You can manually export your contacts as archive for backup. Also, if you are backing up with Time Machine, you already have a backup. If your hard drive crashed, you would have to rely on your backup or iCloud anyway.
    So, if you're comfortable with that, sign out of iCloud. Choose to delete contacts from the computer. When you sign back into iCloud, you should only have iCloud contacts listed in AB. When you open iCal, you should only have one listing for birthdays.
    The other alternative is to disable the Birthday c.alendar and create one manually.

Maybe you are looking for

  • Big Bang XPower II no longer boots, no video

    I'm having issues with my Big Bang XPower II not booting. First, some background information... For a couple months my computer has been acting strangely. My monitors would randomly go to sleep, and nothing would wake them (mouse movement, keyboard p

  • Oracle 8.1.7 for Linux is Complete????

    So that we may better diagnose DOWNLOAD problems, please provide the following information. - Server name rastorin - Filename linux817.tar - Date/Time 06/02/02 - Browser + Version Netscape 6 - O/S + Version Linux (Slackware 7.1) Kernel 2.2.16 - Error

  • Adobe Reader XI (11.0.10) op Citrix start 1e keer wel en daarna niet meer op / on Citrix it starts 1st time, 2nd time it crashes

    We hebben de Adobe Reader XI (11.0.10) succesvol uitgerold naar Windows 7 werkplekken. Echter bij uitrol naar Citrix op Windows 2008 R2 start de eerste keer Adobe Reader XI (11.0.10) wel op maar daarna geeft het starten van Adobe Reader XI (11.0.10)

  • Goods Reciept issue

    Dear All, during goods rreciept using movemetn type 561 initial entry of stack balances i am getting the below error account type M and G/l account with open item management not permitted kindly advise Mohammed Raees

  • Suddenly slow computer

    I was away in Israel for 2 weeks. When I came home and synced my ipad to transfer the pictures, my macbook pro has slowed so very much. It's in opeing applications and waking from sleep. It's slow in the internet as well. And it isn't constant. Rarel