How can I open an attachment from inside a PDF portfolio using flex 4.1?

I am currently developing a portfolio and have a DataGrid which lists my sorted attachments.
I can right click on an attachment to open it but I require it to happen on the double click event.
My code currently looks like this (taken from an old example):
private function itemDoubleClicked(event:ListEvent):void
                                        var itemIndex:int = event.rowIndex;
                                        var item:AttachmentImpl = AttachmentImpl(sortedCurrentItems.getItemAt(itemIndex));
                                        var command:CommandImpl = collectionManager.host.commands(acrobat.collection.CommandType.PREVIEW);
                                        Alert.show("you double clicked " + item.fileName);
                                        collectionManager.host.selection = [item];
                                        command.execute(item); 
but i get a null pointer exception because command is null.
Could anyone give me pointers or another solution?
Thanks,
Chris.
Edit:
I would like to extend this question as follows:
when using 'host.commands' (as i believe is correct) I get the error that host is 'write-only' and therefore can access none of its methods.
The example I use is from here: http://pdfdevjunkie.host.adobe.com/05_sorting.shtml
Using this method, the host is overwritten by doing the following:
public function set host(host:INavigatorHost):void
                                             if(host != null) {
                                                       _host = host;
                                                       startEverything();
                                             } else {
                                                       _host = null;
                                                       //Alert.show("Navigator Ending");
When I try to do this I recieve the error that the method is not set for override.

If i try to simply use the host e.g.
host.selection = [item];
It tells me that host is write-only. How can this be true?

Similar Messages

  • How can I delete an attachment from a received email but save the message?

    Hi all, how can I delete an attachment from a received email but save the message?*

    Over the years this issue crops up again and again. Here are the cases I know about:
    Case 1 - it simply doesn't work
    I have a message in my inbox with a jpeg of about 300Mb. Select message, choose option "remove attachment" which is not greyed out, and it does not work.
    Case 2 - it works if you save the message first
    I move the message from the inbox to a mail box. Open the mailbox (select), select the message, choose option "remove attachment", result: the attachment is removed, a small text file is added and an error appears in the message "missing plug-in". The message size is reduced from 300Mb to a few bytes.
    Case 3 - the option "remove attachment" is greyed out.
    I've googled this at least 10 times and read all the advice about editing various files from the library and all the other hacks. The simple truth here is that the user should not be inconvenienced by such inappropriate behaviour. We're not used to this from Apple any more, not since OS X. Even Windows does this stuff painlessly. In fact this kind of function is something that Outlook and Exchange do incredibly well. If they didn't the corporate world would have ground to a halt.
    My point: the remove attachment option should work all the time and should be redesigned. Right-click + save as + delete in the message would be a hundred times easier.

  • TS3276 How do I open an attachment from my email with macbook pro on aol?

    How do I open an attachment from my email with macbook pro on aol? It keeps flipping back?

    Wirth an iOS device you have to first go to the app that has the item you want to attach. When in that app you then select the email option for sharing.  You can't start from the Mail app.

  • How can I open raw files from my Nikon D7100 in CS4 or CS5?

    How can I open raw files from my Nikon D7100 in CS4 or CS5?

    Andy,
    In the simple and short form, what happens with the ACR (Adobe Camera RAW) module is that it gets updated with regularity, to accommodate the camera mfgr's. changes for their newer models. That ACR works within the host program, such as Ps, PsElements, Lightroom, etc.. At a point, Adobe ceases to support older host program versions. When that happens, the user has a few options:
    Upgrade the host program version
    Use another host program, such as PsElements or Lightroom
    Use the free DNG converter, per Curt's suggestion. That is not host program dependent
    Glad that the DNG Converter works for you.
    Good luck,
    Hunt

  • How can I open RAW files from Nikon D7100 in Photoshop Elements 9?

    How can I open RAW files from my Nikon D7100 in Photoshop Elements 9

    Three choices:
    1. Upgrade to PSE11
    2. download the free Adobe DNG Converter and then convert your RAWs to DNG, which will open in PSE9
    3. Use manufacturer's software and convert to TIF (or JPG)

  • How can i open the popup from java class

    Hi,
    Please tell me how can i open the popup from java class.
    I am using jdev 11.1.1.7.0
    I have used the below code which works fine in jdev 2.1 but it will have some errors in 11.1.1.7.0.
    Please tell me some way to do this in all jdev versions.
    Bean obj = (Bean)RequestContext.getCurrentInstance.getExternalContext.getPageFlowScope(“obj”);
    Code for hide pop-up
    FacesContext context = FacesContext.getCurrentInstance();
    String popupId = obj.getPopUpBind().getClientId()
    ExtendedRenderKitService service = Service.getRenderKitService(FacesContext.getCurrentInstance(),
    ExtendedRenderKitService.class);
    String hidePopup = "var popupObj=AdfPage.PAGE.findComponent('" + popupId +
    "'); popupObj.hide();";
    service.addScript(FacesContext.getCurrentInstance(), hidePopup);
    Code to Show pop-up
    StringBuffer showPopup = new StringBuffer();
    showPopup.append("var hints = new Object();");
    showPopup.append("var popupObj=AdfPage.PAGE.findComponent('" +
    obj.getPopUpBind().getClientId() + "');popupObj.show(hints);");
    service.addScript(FacesContext.getCurrentInstance(), showPopup.toString());
    Code need to be added in jsff pop tag
    binding="#{pageFlowScope.bean.popUpBind}
    Variable need to be added in Bean.java
    private RichPopup popUpBind;

    Hari,
    Since you're using a non-public build of JDeveloper, you should be using a non-public forum.
    John

  • How can i open the plugins from the channel strip. I can't open it

    How can i open the plugins from the channel strip. I can't open it. Here's the vid detailing it www.youtube.com/watch?v=NkR04dHjUiI
    www.youtube.com/watch?v=GW9AwMITcoM
    Thanks for your help.

    From the online Help menu search on     Opening Plug
    Chose the help that starts with:   Opening, Closing, Resizing
    Read it.

  • How can I remove ASCII text from a field when I use it in a query

    How can I remove ASCII text from a field when I use it in a query?
    I am running a select statement on a table that appears to have ASCII text in some of the fields. If I use these fields in the where statement like the code below nothing returns:
    SELECT FIELD1 FROM TABLE1 WHERE FIELD1 IS NULL
    But the field looks empty if I do a straight select without the where clause. Additionally, one of the fields has text but appears to be padded out with ASCII text, which I need to strip out before I can use this field in a where or join statement. I have tried using a trim, ltrim, rtrim, to_char, nvl, decode and nothing works. When I use excel to run the same query it looks as if these ASCII fields are boxes.
    I have asked our DBA team to see what they can do to prevent these from going into the table, but in the mean time I still need to run this report.
    Do you have any suggestions?

    Can you provide an example? I've been trying (for
    example) "select translate(' test one', ascii(' '),
    'X') from dual" with no luck.
    Thank you.To replace space, you should query like this:
    select translate(' test one', chr(32), 'X') from dual instead of select translate(' test one', ascii(' '), 'X') from dual Thanks,
    Dharmesh Patel

  • How can I change the email from my app store an use a different email forgot password

    How can I change the email from my app store an use another email

    Hi there,
    You may find the article below helpful.
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311
    -Griff W.

  • How can i open a attachment with the fileextension .note sent from an Ipad

    A friend of mine sent me an email from his Ipad with an attachment which has the extension .note. How can I open this file on my Mac?

    It appears that this extension is related to the ipad app 'notability'. It would have to be exported as a pdf or rtf file to be opened.
    You can do some googling, but might be better if the sender converts the file to something more common and sends again.

  • My document.numbers can not be opened how can i recover the version from yesterday i was not using time machine and it was not in icloud. is there an app i can buy that might help

    my document.numbers can not be opened how can i recover the version from yesterday? i was not using time machine and it was not in icloud. is there an app i can buy that might help

    Thanks Andy,
    I wish I could have told my sister about this as she could not open my homepage back before my new iWeb site. She now can open my site without the yet in case denial window does appear = I thank you.
    I think my iWeb site works as Noone has said otherwise from any platform etc...
    Alex L
    I do agree that should not have to be a consideration for any users so i agree that it would be great if Apple could allow simplicity to run seemlessly.
    I have had this problem since Homepage, and here is
    what has worked for me. I send out the link, and
    then for PC users I send the link with "<" after the address (without quotation
    marks. e.g., <http://site.com>).
    I also put a note that if that doesn't work, to just
    copy and paste the link into a browser. With that I
    have only had 1 person say they still can't open.
    Everyone else gets it to work.
    It's a lot to do and seems like a hassle, but you get
    used to it.
    Hope this helps!
    Andy Martini
    PS - APPLE! When are you going to fix this??! It
    seems like such a small thing yet you guys have been
    stumped for YEARS on this!

  • How can I open shared files from laptop?

    I have connected my external hard disk to Airport extreme and configured through my laptop (Windows). Now I want to see files existing in hard disk through wireless. How can I open files and photoes?
    Regards,
    Balaji.

    Please check out the following Apple Support article for details.

  • How can I copy the titles from a project volume one use them for the rest?

    I'm editing a four DVD set, and would like to use the same opening titles and credits for each. How can I copy the titles from volume one and use them for the rest? Thank you.

    Open the project that has the titles you want to use. Select (highlight) all the title clips you want, then right-click and choose COPY.
    Open the new project(s), then paste the titles onto the Timeline.
    Done.
    -DH

  • How do I open raw files from a Panasonic DMC-GF5 using Elements10 on a PC?

    How do I open RAW files from a Panasonic DMC-GF5 camera using Elements 10 on my PC?  When I try to open a Raw file I get a message 'wrong type of file'

    I believe you need ACR 7.1 which PSE10 cannot be updated to. 
    Use the DNG Converter to make DNGs from the RAW files and those should open in your older PSE version.
    You can also buy a newer version of PSE.  Perhaps do a Trial (Try) of PSE12 and see if PSE13 comes out in the next week or so.
    The DNG Converter can be found on this page:  http://www.adobe.com/downloads/updates
    PSE12 Trial: http://www.adobe.com/downloads.html

  • How can I call Adobe Reader from inside my Application and prevent operator to access Open/save opt

    Can Anyone help to find a way?
    http://answers.acrobatusers.com/How-call-Adobe-Reader-inside-application-avoid-operator-op en-save-doc-q13487.aspx
    From inside my application that run on an Automation PC, under Windows O.S, I want to call Adobe Reader using a shell command to open up an PDF Document containing some informations.
    Shell command like these
    "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" /A "<options>" "C:\mydoc.pdf"
    or
    cmd  /c "C:\mydoc.pdf"
    Operator is using a touchscreen.
    I want to prevent user to access any option that can give him acces to filesystem (Open/save/save as).
    I want also to prevent any change/add information to PDF document
    Thank you in advance for the time you will spend for me.

    You can use the Installation Tuner for Reader to customize the UI elements provided to the user.  Details on the Adobe web site.

Maybe you are looking for

  • Advance payment  in PO should not Exceed 25%

    Hi Gurus, Can any body give your inputs on the following scenario : We have advance payment scenario for all the vendors and the advance payment is 25 % on the Po net value. If the po value = 1000 RS  then the sys should allow only 250 RS (i.e 25%)as

  • If i know class name ,can i find out application set name in CRM for PCUI

    Hello, i found the class name in debugging..it is cl_crm_bsp_frame_sres now i want to make it as z class to make the changes to the methods. for that i need to know the application set name or zname... so that i can modify the configure settings by g

  • Song and Artist display differently in landscape mode (iPod on iPhone)

    I have a CD Compilation *50 Best Songs Ever*. When I play any song from this Compilation on my iPhone, if I turn the phone to landscape mode the Artist defaults back to the Artist on the 1st track, but if I turn the phone back to upright mode the Art

  • Locating Un-Authorized track in Library

    I just got a new 160GB to replace my 80GB ipod. I am transferring my music files, but it will only allow 12188 songs to transfer, while my Library has 13211 songs in it. A pop-up comes up saying some files cannot be transferred because they are not a

  • How can I install mac os on a new unformatted HDD

    Hi, I bought a second hand MACBOOK PRO which has a windows installed on it but I want to install snow leopard on it, when i turn on the mechine and hold the option key to select boot device it doesn't show any thing, also with the HDD it has if I do