Call for email with attachment - broke up with 10.2?

The following used to work properly on 10.1, but on 10.2, the call fails.

    attachedObjects: [
        Invocation
        {
            id: emailQuery
            query
            {
                invokeActionId: "bb.action.SHARE"
                mimeType: "*"
                invokeTargetId: "sys.pim.uib.email.hybridcomposer"
            }
            onArmed:
            {
                trigger("bb.action.SHARE");
            }
        }
    ]

    function shareFiles(s)
    {
        console.debug("file://" + s)
        emailQuery.query.uri = "file://" + s;
        emailQuery.query.updateQuery();
    }

and returns to the console log.

file:///accounts/1000/shared/documents/mydatafile.csv
InvocationWrapper::onQueryFinished: no matching result from Menu Service for query
   mimeType="*"
   uri=QUrl("file:///accounts/1000/shared/documents/mydatafile.csv")
   data= ""
   metadata= QMap()
   perimeter= 0
   action= "bb.action.SHARE"
   target= "sys.pim.uib.email.hybridcomposer"
   invokerIncluded= false
InvocationPrivate::onQueryResolved: no result matching query, no armed signal sent.

Any suggestions... Tried a different approach when searching for different thread related to the topic but so far no luck...

This is confirmed to not work in 10.2 (wire)

I had questions about the year 10.0 with her last and switch to a version of c ++ which is still working on the last update

* Assuming a context property is set in this example, it is RPC.

applicationUI.cpp

#include 
#include #include 

using namespace bb::system;
void ApplicationUI::email()
{
    InvokeRequest request;
    request.setAction("bb.action.COMPOSE");
    request.setMimeType("message/rfc822");
    QVariantMap data;
    data["to"] = (QVariantList() << "[email protected]");
    data["subject"] = "Message Title";
    QVariantMap moreData;
    moreData["data"] = data;
    bool ok;
    request.setData(bb::PpsObject::encode(moreData, &ok));
    InvokeManager manager;
    manager.invoke(request);
}

applicationUI.hpp

namespace bb
{
    namespace cascades
    {
        class Application;
        class LocaleHandler;
    }
    namespace system
    {
        class InvokeManager;
    }
}
public:
    ApplicationUI(bb::cascades::Application *app);
    virtual ~ApplicationUI() { }

    Q_INVOKABLE void email();

. QML

Button {
   onClicked: {
     cpp.email();
  }
}

* I belive files may be attached, if you add in the table of data of QVariantMap, I think that should do the trick

data["attachment"] = "file:///path/to/my/item.txt";

Tags: BlackBerry Developers

Similar Questions

  • Error in creating the body of HTML for Email with attachment

    I have an application where I send emails with an attachment. It seems to work very well. I'm now add content to the body of the Email and I'm running on about how set up the body. To test, I created a small amount of html code which is placed in part p_body_html of the script send mail, but because it's going to be a little (more than 1000 characters) to create the real html table, I'm trying to create in a declared variable and then have the p_body_html call the variable l_body_html and that's where I'm running into the following error message :

    1 error has occurred
    * ORA-06550: line 9, column 9: PLS-00307: too many statements of 'SEND' fits this call
    ORA-06550: line 9, column 1: PL/SQL: statement ignored

    Code that works is:
     
    DECLARE
        l_id NUMBER;
        l_body_html CLOB;
    BEGIN
    l_id := APEX_MAIL.SEND(
            p_to        => :P4_TO,
            p_from      => '[email protected]',
            p_body      => 'Please review the attachment.',
            p_body_html => '<html><head></head><body><table width="615" border="0" align="center" cellpadding="0" cellspacing="0" RULES=NONE FRAME=BOX style="cellpadding:0 cellspacing:0"><tr><td height="32" colspan="2" bgcolor="#FF0000">Information</td></tr><tr><td colspan="2">Testing</td></tr><tr><td>One</td><td>Two</td></tr></table></body></html>',
            p_subj      => :P4_TITLE);
    FOR c1 IN (SELECT filename, attachment, mimetype 
            FROM ATTACH_EMAIL
            WHERE recordid = :P4_recordid) LOOP
    
            APEX_MAIL.ADD_ATTACHMENT(
                p_mail_id    => l_id,
                p_attachment => c1.attachment,
                p_filename   => c1.filename,
                p_mime_type  => c1.mimetype);
            END LOOP;
        COMMIT;
    END;
    The code that does not work is:
    DECLARE
        l_id NUMBER;
        l_body_html CLOB;
    
    BEGIN
    l_body_html :='<html><head></head><body><table width="615" border="0" align="center" cellpadding="0" cellspacing="0" RULES=NONE FRAME=BOX style="cellpadding:0 cellspacing:0"><tr><td height="32" colspan="2" bgcolor="#FF0000">Information</td></tr><tr><td colspan="2">Testing</td></tr><tr><td>One</td><td>Two</td></tr></table></body></html>';
    
    l_id := APEX_MAIL.SEND(
            p_to        => :P4_TO,
            p_from      => '[email protected]',
            p_body      => 'Please review the attachment.',
            p_body_html => l_body_html,
            p_subj      => :P4_TITLE);
    FOR c1 IN (SELECT filename, attachment, mimetype 
            FROM ATTACH_EMAIL
            WHERE recordid = :P4_recordid) LOOP
    
            APEX_MAIL.ADD_ATTACHMENT(
                p_mail_id    => l_id,
                p_attachment => c1.attachment,
                p_filename   => c1.filename,
                p_mime_type  => c1.mimetype);
            END LOOP;
        COMMIT;
    END;
    I said the l_body_html as CLOB then I fill it with code and then I reference it the p_body_html. I have this work under other forms of e-mail with no attachments and it works fine. Don't know how I have too many statements as the error States and would appreciate any help

    Thank you
    Wally

    Hi Wally,

    The SEND() function may take varchar2s or CLOB to p_body and p_html_body. In your code, you declare l_body_html as a CLOB, but assigning a string. It is possible that the database is confused?

    Try to use TO_CLOB ('...') to set the value of l_body_html

    Andy

  • Calls for Freeway with the required forced authorization code does not work.

    Hi all!

    I have implemented a collaborative edge Expressway, seems to work fine, except for calls limited requiring a forced authorization code.

    If I connect to the local network (with Jabber, of course) I have no problem for any call restricted or unrestricted, but if I connect outside my firewall (using my expressway) I can't make tight calls, only unrestricted calls. In the jabber never complete call Office and in the jabber for android or iPhone the call drop instantly.

    TTE termination reason code is "(3) no route to the destination.» The user to call can not be reached, because the network serving the called user is unreachable.

    any idea?

    CUCM 10.5

    vcsce & vcs - c 8.2.1

    Jabber version (one more for Iphone, android, mac and windows)

    Hello

    I am facing the same issue.

    How you solved the problem?

    Kind regards

  • Call unsolicited calling for problems with windows

    Today, I got a call from someone claiming to be "Windows", which indicated that my PC was transmitting a large number of error messages and that only they could fix it. They did not have my name and claimed that they had my my registration number. If anyone has experienced this?

    If anyone has experienced this?

    It is a widespread fraud.

  • The call for objects with specific CMYK values?

    Hello

    I'm trying to create a script that seeks paths that have specific CMYK values within a document and then changes the opacity of this path. I can clarify that he only looks for objects that have a CMYK color, but not getting anything once I have try to specify CMYK values, that I'm looking.

    In addition, should I specify that the output will be a "new CMYKColor", or is it sufficient to say "paths [i].fillColor.back = 100.0", for example, in the output. Here's what I have for this particular function:

    var docRef = app.activeDocument; 
    var paths = docRef.pathItems; 
    
    for (i=0; i< paths.length; i++) {
    
    if (paths[i].fillColor.typename == "CMYKColor" ) {
    
    if (paths[i].fillColor.cyan == 0.0 &&
    paths[i].fillColor.magenta == 0.0 &&
     paths[i].fillColor.yellow == 0.0 &&
     paths[i].fillColor.black == 20.0 &&
     paths[i].opacity == 100.0) {
    
    var NewColor = new CMYKColor ();
    
    NewColor.cyan = 0.0;
    NewColor.magenta = 0.0;
    NewColor.yellow = 0.0;
    NewColor.black = 100.0;
    paths[i].opacity = 20;
    }
    
    else {
    alert ("Object(s) not recognized.")
    }
    
    }
    else {
    alert ("Object not CMYK.")
    }
    }
    

    Thank you.

    Hi Silly-V,

    No, it's isn't weird.

    Illustrator is a bit crazy. Most of the values should be rounded off during playback. (as in this thread: Re: working on a script that will add a new work plan and remove the old if it is not a specific size)

    And if Luis Oyola can do something like this:

    var docRef = app.activeDocument;
    var paths = docRef.pathItems;
    
    for (i=0; i< paths.length; i++) {
        if (paths[i].fillColor.typename == "CMYKColor" ) {
            if (Math.round(paths[i].fillColor.cyan) == 0.0 &&
                Math.round(paths[i].fillColor.magenta) == 0.0 &&
                Math.round(paths[i].fillColor.yellow) == 0.0 &&
                Math.round(paths[i].fillColor.black) == 20.0 &&
                Math.round(paths[i].opacity) == 100.0) {
                    paths[i].fillColor.black = 100;
                    paths[i].opacity = 20;
                    } else {
                        alert ("Object(s) not recognized.");
                        }
                    } else {
                        alert ("Object not CMYK.");
                        }
                    }
    

    Have fun

  • Is there a number to call for assistance with problems?

    I am having some problems and can not find the answers on the pages 'help '.  Is it possible to talk to a real live person who can guide me through?

    Try the link below:

    How and when to contact Microsoft and support Customer Service

    http://support.Microsoft.com/kb/295539

  • If I try and open an email with an attachment I get an error message: this file does not have a program associated with it for performing this action.

    If I try and open an email with an attachment I get an error message: this file does not have a program associated with it for performing this action. create an association in the folders option control panel.  Once there, I don't know where to go

    What is the attachment file extension? If you know what program should open with, just do the following.
     
    1. download and save the attachment to the office.
    2. right click on the saved file.
    3. Select: Open with on the shortcut menu.
    4. click on: choose [default] program.
    5. Select: The appropriate program.
    6. check: always use the selected program to open this type of file.
    7. click on OK.
     
    This should allow you to open these attachments directly from email address now.
  • I had sent an email with multiple photos attached to what was in my Outbox for months and as hard as I try to remove it, I just can't. I can still send and receive mail, but it takes forever. Can you help me remove this e-mail from my Outbox?

    I have Outlook 2003 and you cannot remove an email with attached photos.  How can I remove it?

    Here are some ways to get rid of the stuck message:

    Message stuck in the Outbox

    1 delete a Message stuck in Outbox

    1 delete messages large stuck in your Outbox

    HAL
    --
    HAL Hostetler, TCE
    Engineer senior/UPDATED--MS MVP-Print/Imaging - WA7BGX
    www.kvoa.com - KVOA television, Tucson, AZ.
    Live Hot Licks - www.badnewsbluesband.com
  • Can we have more than one attachment to the activity "email with attachment.

    Guys,

    I have a condition in which the process has n number of approvers in the stream, and each approver can add attachments to the form in the variable list < document > which transports rasthaus documents.

    At the end of the process, I'm supposed to send an email with all the files attached to a help desk team.

    I know that the activity to send an e-mail with an attachment supports one attachment. y at - it a possibility or any other activity that I can use to send an email with any number of attachments?

    Hey Ashok

    The service you want is called "send with map of attachments. This service is not on the toolbar.

    If you drag on the market to define the activity type "email" in the search box, you can see the title of the foundation that there is 3 e-mail services.

    Choose send with map of attachments.

    For help on this service, see: http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/help.htm?content=000570.html

    Diana

  • Since the upgrade to 31.1.0, I can't send an email with an attachment. I'm under OpenSuse 13.1 on KDE. How can I fix?

    If I try to send an email with an attachment or a picture inserted, it starts to send with a progress bar that will read a 80 to 95% completion and then stay there until it times out after a few minutes. I get this error: failed to send the message.
    The message cannot be sent because the connection to the server of SMTP outgoing.verizon.net expired. Try again or contact your network administrator.
    I use the same provider of e-mail for several years. This works for emails of simple texts without problem. If I try to transfer or to respond to an email, I get the same error.
    How can I fix?

    Thank you

    Robert

    OK, I thought about it. As I was going through the configuration editor, I saw the outgoing server settings. It made me wonder if something had changed. I went to my provider and reinforced through their list and found where mine differ. If the update for thunderbird changed something or verizon changed something.
    Thanks for the comments.

  • I tried to send an email with attachment and without attachment and received the "windows live Hotmail was not able to complete this application. "Microsoft may contact you about problems that report you.

    I tried to send an email with attachment and without attachment and received the error "windows live Hotmail was not able to complete this application. "Microsoft may contact you about problems that report you.

    Hi AbdiNur,

    This forum is for comments on the Microsoft Answers site.  As your question is on Hotmail, I recommend posting your question on the forums for Hotmail:

    http://www.windowslivehelp.com/forums.aspx?ProductID=1

    Thank you for using Microsoft Answers!

  • Why, when I try to send or to send an email with an attachment I get the error message "Attachment Id has wrong format"... ?

    Why, when I try to send or to send an email with an attachment I get the error message "Attachment Id has wrong format"... ?

    Hi AndyHolman,

    ·         What email program are you using?

    ·         What is the attachment file extension?

    Try to remove your automatic signature in your mail and see if it solves the problem.

    Please provide us with some information so that we can help you solve the problem.

    You can also contact you Email Service Provider (ESP) for assistance on the issue.

  • Why can't I send an email with an attachment

    Please indicate why emails with attachment are not made.

    I don't not any you message to indicate that they do not.

    Thank you

    Hi Rosewitha,

    Thanks for the reply.

    To help you better, I still need more details on the issue. Asking that read you my questions in the previous post and answer.

    Thank you.

  • I received an email with an attachment that I downloaded, when I go to open the windows media center file opens but I can't find file what I do

    I received an email with an attachment that I downloaded, when I go to open the windows media center file opens but I can't find file what I do

    I was able to open using AbiWord, thanks for the reply

  • I need to change a password, someone sends me emails with viagra adds. Even when I send e-mail there viagra mail attached to it

    my e [mail is to have a viagra add attached to it and now someone sends e-mails in my name with this viagra even add, and I have not had my computer, so I guess I need to know how to change my password for my computer it's been hijacked somehow... people care about me]

    Hi pdkbingo,

    It is more than likely that your email account which is at fault and not on your PC. It is quite easy to 'spoof' an email so it seems that if it came from your email address when, in reality, it comes from someone else. I suggest change you your email provider, so changing your email address. If you are using groups of public discussion, facebook, twitter "are not" visualize your email address. Unscrupulous people help software 'bots' trawl newsgroups etc. for email addresses. It's a way to get loads of spam. If you post an email address in a newsgroup etc. then type something like * address email is removed from the privacy *. Of course, you will need to enter your 'real' email address when registering for the discussion groups, facebook, twitter etc but if your email address is not visible there cannot be "hijacked" as you say.

    John Barnett MVP: Windows XP Expert associated with: Windows Desktop Experience: Web: http://www.winuser.co.uk ; Web: http://xphelpandsupport.mvps.org ; Web: http://vistasupport.mvps.org ; Web: http://www.silversurfer-guide.com

Maybe you are looking for

  • rearrange the toolbars and tabs band

    with a reset for 25, I find that the band tabs has been moved to the top of the window. I HATE it; having to move across toolbars to select the tabs makes no sense and the tc and tc. How can I restore view favorite toolbars, above the tabs. * Please

  • Missing the Notification application icon badge!

    When I get a new text message notification indicates kn my screen locked as implemented on Notifications. Once I have unlock my phone text message icon does not show the small red circle with the number of unread messages. This occurred just after my

  • I upgraded my Firefox today (February 29) at lunch and now firefox don't even started! ?? Help please!

    I have a huawei ideos s7 and installed Firefox in December. Updated Firefox in January (I think) and it worked fine!Today I've updated again and now Firefox launches but immediately closes down.

  • Satellite 1620CDS: no link to downlaod the WinZIP

    I have a 1620cds satellite, lost the startup disk and can not run the recovery CD, I downloaded a boot disk BACK for this computer, like a zip, Toshiba say click on the link to download the winzip software, but there is no link, can someone help me,

  • The values of metadata to the content information hiding

    I want some information content values is not to be shown and has been able to do it by substituting the DOC_INFO. But I fight to override the < $include doc_rev_table$ > I wanted to the column "Date of expiry" don't not show all values. And where is