Share multiple files via e-mail and Invocation vs InvokeManager

Hello

Sorry for the long post, in fact I can invoke multiple file sharing using method 2, but I don't know what the problem with method 1. I would like to here your suggestions/advice/explanation in this regard.

Method 1: I use Invocation to share several files by e-mail by following the guide here:

https://developer.BlackBerry.com/native/documentation/Cascades/device_platform/invocation/email.html

However I can't make it work.

My Page is:

Page {
    id: mainPage
    attachedObjects: [
        Invocation {
            id: emailShare
            query {
                invokeTargetId: "sys.pim.uib.email.hybridcomposer"
                invokeActionId: "bb.action.SHARE"
                uri: "list://"
                data: "[{\"uri\": \"/accounts/1000/shared/downloads/test.txt\"},{\"uri\": \"/accounts/1000/shared/downloads/test.txt.1\"}]"
                mimeType: "filelist/mixed"
            }

        }
    ]

    Container {
        Button {
            text: "Share"
            onClicked: {
                emailShare.trigger(emailShare.query.invokeActionId);
            }
        }
    }
}

When I run the app, it output the error to the console, and then when I click the button nothing happens.

InvocationWrapper::onQueryFinished: no matching result from Menu Service for query
   mimeType="filelist/mixed"
   uri=QUrl("list://")
   data= "[{"uri": "/accounts/1000/shared/downloads/test.txt"},{"uri": "/accounts/1000/shared/downloads/test.txt.1"}]"
   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.

Method 2: If I change to use InvokeManager as shown here:

http://supportforums.BlackBerry.com/T5/native-development/multiple-attachment-in-email/m-p/2349473#M...

So it works, the app can call emails to share multiple files.

Page {
    id: mainPage
    Container {
        Button {
            text: "Share"
            onClicked: {
                _appUI.share();
            }
        }
    }
}
void ApplicationUI::share() {

    QString fileList = "[{\"uri\": \"/accounts/1000/shared/downloads/test.txt\"},{\"uri\": \"/accounts/1000/shared/downloads/test.txt.1\"}]";    InvokeRequest invokeRequest;    invokeRequest.setTarget("sys.pim.uib.email.hybridcomposer");    invokeRequest.setAction("bb.action.SHARE");    invokeRequest.setUri("list://");    invokeRequest.setData(fileList.toUtf8());    invokeRequest.setMimeType("filelist/mixed");    mInvokeManager->invoke(invokeRequest);}

My questions are:

1. What is different between the 2 methods?

2. Why use Invocation gives error with Menu Service & InvocationWrapper? In this case I have to sign something up with the Menu Service to make it work?

Best regards

One last thing to try. Can remove you the ID of the target and let all remains unchanged?

I just remembered that there is a known issue with envelope API call where if you specify the target ID, it does not work.

Shadid

Tags: BlackBerry Developers

Similar Questions

  • How to add widgets which will allow visitors to share articles via e-mail and social media?

    I built a site that has a page with a widget Accordion for feature articles.  I would like to add widgets that allow visitors to share articles via e-mail and social media.  How can I do?  And the items must be in PDF format?

    Here is the page.

    http://mckenzielaird.com/nonprofit-law.htmlhttp ://

    Quite a few sharing widgets in the Panel Social would be in the library of Widgets, including FB Like / share, Pinterest, LinkedIn, Google + etc., that may be useful to you.

    Thank you

    Vinayak

  • Not able to send multiple files via bluetooth

    I have had this problem since I bought my laptop. I am able to send only one file. In other words, when I right click on the file you want, there is a separate option "send to Bluetooth" allows me to transfer a single file to my phone or another laptop. But when I select several files and right-click on it and select ' send to--> Bluetooth device ", a window opens but it doesn't detect other bluetooth devices. I would also like to add that the drivers are updated and devices are in the range. The options "Send to Bluetooth" and "send to--> Bluetooth Device" are different. I'd be happy if someone gave me the solution.

    My laptop: HP Pavilion DV6 - 6006tu
    Operating system: Microsoft Windows 7 Home Premium

    Thank you.

    Hello

    Method 1:
    Try first to add and pair the device and then try to send files via Bluetooth. You can follow the below mentioned article that will give you information on add a Bluetooth device to your computer:
    http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computer
     
    Method 2:
    You can see the laptop manual to see the steps on how to send multiple files via Bluetooth or check Bluetooth section for the information you are looking for.
     
    Let us know if it helps!

  • OfficeJet Pro 8500 a A910a - cannot save pdf in multiple files via touch screen

    Hello world

    My problem is that I can't save my scans in multiple files (.pdf) If you use the "scan to file function" via the touch screen on my Officejet Pro 8500 A910a a shortcut. It works when scaning manually from the computer, but I need to work from the printer/scanner.

    The only way that the scan shortcut saves each page separately (works the way I need) is when you save as a .jpg file, but this isn't the exit, I need. I search for an .xml file change the shortcuts manually, but have not found one. Since my other printer 8500 A909a can analyze each page in a single .pdf file, it must be a question of settings that the A910a does not offer this parameter directly.

    I appreciate any assistance with this problem.

    OS: Windows 7 Home Premium 64-bit

    Driver: OJ8500_A910_1315

    Firmware: OJP8500_A910a_1231A

    Hi RnRMusicMan,

    the solution you are suggesting is what I have now and the reason why I even started this thread. Analysis each page separately from the touch screen is a pain in the a * and analysis of PC via a scan profile is not the way to go for me either. Thank you in any case, it seems like it is actually a problem in the software and I have to be careful next time, choose a new printer.

    RnRMusicMan wrote:

    Hi Koumack,

    Welcome to the HP Forums!

    I see that you are trying to save your scans in multiple files (.pdf) using the analysis of the function of file.

    That's what I could find in my resources:

    How to perform a scan: from the control panel

    Breast of HP Scan, select scan on a daily basis, and then click Advanced settings, select the file tab and check create a separate file for each scanned page. Click OK. It should work from the software.

    Otherwise, even if it may be a longer process, as a work around the printer, you can scan a page using the scanner glass.

    Hope this helps and have a nice day.

  • Share multiple photos via share framework

    Hello

    I'm trying to share multiple photos through the framework of the action, but the code below only allows me to create new tasks with them. How can I share multiple photos like the app native photo?

    InvokeRequest invokeRequest;
    invokeRequest.setAction("bb.action.SHARE");
    invokeRequest.setUri("list://");
    invokeRequest.setData(itemPathList.toUtf8());
    invokeRequest.setMimeType("filelist/image");
    invokeManager->invoke(invokeRequest);
    

    One more suggestion...  Try to use bb::cascades:Invocation, which behaves more like the InvokeActionItem (making an independent invoke) that use InvokeRequest directly.

    Here is an example:

    void MyClass::someFunction() {
        . . .
        InvokeQuery *query = InvokeQuery::create()
            .mimeType("filelist/media")
            .uri("list://")
            .data(data);
        Invocation *invocation = Invocation::create(query);
        query->setParent(invocation);
        connect(invocation, SIGNAL(armed()), this, SLOT(onInvocationArmed()));
        connect(invocation, SIGNAL(finished()), invocation, SLOT(deleteLater()));
    }
    
    void MyClass::onInvocationArmed()
    {
        Invocation *invocation = qobject_cast(sender());
        invocation->trigger("bb.action.SHARE");
    }
    
  • How to remove the multiple file via plsql programm

    Dear friends

    1. how to remove the multiple file in the particular folder based on the file extension (ex: .xls) through program plsql.

    2. how to create the zip file through PL/Sql program for the given folder.

    Concerning

    M.Padmanabhan

    (1) utl_file.fremove. If you use Google, you might find how to list the files in a directory.

    2). create a file using pl/sql .zip

  • Read multiple files in the folder and add data to a file

    Hello world

    Normal 0 false false false MicrosoftInternetExplorer4 / * Style Definitions * / table. MsoNormalTable {mso-style-name: "Table Normal" "; mso-knew-rowband-size: 0; mso-knew-colband-size: 0; mso-style - noshow:yes; mso-style-parent:" ";" mso-padding-alt: 0 cm 0 cm 5.4pt 5.4pt; mso-para-margin: 0 cm; mso-para-margin-bottom: .0001pt; mso-pagination: widow-orphan; do-size: 10.0pt; do-family: "Times New Roman"; mso-ansi-language: #0400; mso-fareast-language: #0400; mso-bidi-language: #0400 ;} "}

    I have several (hundreds) text files in a folder. I want to combine the data of the files into a single file. It must of course begin to file the oldest and sequentially read the files to the latest changes and add all the data in a new txt file.

    Here are the typical two consecutive files comma separated data:

    2009-02-17, 23:17:04, ff1c, 00ff, 0093, 0000, 0100 and 0001-ffff, d3ae, 0cce, 0 cd 4, DC 4, 00 c 2 0, 000 a, 09e4, 0609, 0000 and 0000, 17 c 7
    2009-02-17, 23:17:06, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3af, DC 0 5, 0 cd 7, 0ccf, 00C 2, 000e, 09e6, 0608, 0003, 0000, 17 c 7
    2009-02-17, 23:17:09, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b0, 0 cd 2, cd 0 1, 0 cd 5, 00bb, 000d, 09f1, 0608, 0000 and 0000, 17 c 7
    2009-02-17, 23:17:11, ff1c, 00ff, 0093, 0000, 0100 and 0001-ffff, d3b1, 0c 21, 0ccf, 0 cd 3, 00 c 2, 000 a, 09e3, 0608, 0000 and 0000, 17 c 7
    2009-02-17, 23:17:14, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b2, 0cc9, DC 0 5, 0 cd 7, 00 c 4, 0008, 09e4, 0608, 0000, 0002, 17 c 8
    2009-02-17, 23:17:16, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b3, 0 cd 2, cd 0 6, 0 cd 7, 00bf, 000d, 09eb, 0608, 0000 and 0000, 17 c 8
    2009-02-17, 23:17:19, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b4, 0cc9, 0 cd 8, 0 cd 2, 00 c 2, 0009, 09ea, 0608, 0000 and 0000, 17 c 8
    2009-02-17, 23:17:21, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b5, 0 cd 2, cd 0 1, 0 cd 1, 00 c 2, 0009, 09e8, 0608, 0000, 0001, 17 c 8

    2009-02-17, 23:17:24, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b6, 0 cd 3, cd 0 3, 0 cd 3, 00, 000d, 09eb, 0608, 0001, 0001, 17 c 9
    2009-02-17, 23:17:26, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b7, 0ccd, 0 cd 8, 0 cd 4, 00bc, 0006, 09e6, 0608, 0001, 0003, 17 c 8
    2009-02-17, 23:17:29, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b8, 0 cd 2, cd 0 3, 0 cd 3, 00C6, 000d, 09e9, 0608, 0001, 0001, 17 c 9
    2009-02-17, 23:17:31, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b9, 0ccf, DC 0 3 0 cd 4, 00ba, 000d, 09e8, 0608, 0000 and 0000, 17 c 8
    2009-02-17, 23:17:34, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3ba 0c1b, 0 cd 3, cd 4 0, 00 c 0, 0009, 09e9, 0607, 0001, 0000, 17 c 8
    2009-02-17, 23:17:36, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3bb, 0 cd 3, cd 4 0, 0 DC 3, 00 c 2, 000 a, 09e8, 0607, 0001, 0003, 17 c 9
    2009-02-17, 23:17:39, ff1c, 00ff, ffff 0093, 0000, 0100, 0001, d3bc, 0 cd 4 0 DC 4, DC 0-2, 00b 5, 000d, 09e9, 0607, 0001, 0002, 17 c 9
    2009-02-17, 23:17:41, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3bd, 0cbd, 0 cd 4, 0 DC 7, 00 c 2, 0009, 09e8, 0607, 0001, 0001, 17 c 9

    Text files have no header just the RAW file as seen above.

    Would appreciate any help. Thank you in advance.

    Concerning

    Dan

    Hi Dan,.

    I don't know what version of LabVIEW u using, I have attached the vi in the 8.5 v. My vi sorts the file names by order alphabetical use get info file vi to do sorting like u mentioned

  • How to access a file via the Applet and JavaScript

    I want to copy a file on the client computer from one place to another place for a Java Bean.
    To do this, I created an applet and a Java Bean as follows:
    import java.applet.*;
    public class FileUtils extends Applet {
        public void copyFile(String src, String dest)  {
              //
        }
        private String source, destination; // setters/getters are there of course
        public void copyFile(ActionEvent actionEvent) { // Bean
            FacesContext fctx = FacesContext.getCurrentInstance();
            ExtendedRenderKitService erks = Service.getRenderKitService(fctx, ExtendedRenderKitService.class);
            String command = "var s = '"+ source +"'; var d ='" + destination +"'; " +  " document.fileUtilsApplet.copyFile(s, d); ";
            erks.addScript(fctx, command);
        }
    Then I added the APPLET tag that references the class above in the page fragment:
                    <f:verbatim>
                        <applet code="FileUtils.class" name="fileUtilsApplet" height="30"
                                archive="/context-root/Applet.jar"
                                width="200">
                        </applet> 
                    </f:verbatim>
    The Java Console, I see that the jar is downloaded successfully, but when executing code in the bean, the JavaScript code seems not to do anything, as if the public "copyFile" method has not been called at all and no output in the Console Java as well.

    Note that I already follow the guidelines at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/71-adf-to-applet-communication-307672.pdf.

    You have any ideas?

    Well, as I said before, you must explicitly grant access to the file system to the applet. See http://docs.oracle.com/javase/tutorial/deployment/applet/security.html for more information and http://www.ccp4.ac.uk/jwc/image_applet/Policy_file_examps_ccp4.html for how to do this.

    Timo

  • Batch rename multiple files without zeros (0065) and 1, 2, 2 (2)

    Hello

    When you rename say 100 images, you can select three numbers and create something like:

    Image _001

    Image _002

    Image _003

    Image _004

    Image _005

    ...

    Image _067

    Image _068

    Image _069

    and so on.

    But if you select a number that comes out as:

    _1 image

    _2 image

    _3 image

    _4 image

    _5 image

    _6 image

    _______________7 image

    Image _8

    Image _9

    Image _1 (1)

    Image _2 (1)

    _3 image (1)

    Image _4 (1)

    _5 image (1)

    _6 image (1)

    _______________7 image (1)

    _8 image (1)

    _9 image (1)

    _1 image (2)

    Image _2 (2)

    _3 image (2)

    Image _4 (2)

    Can bridge rename to say 1 to 100 without the zeros, yet still numbering consecutively without (#)?

    I'm looking:

    _1 image

    _2 image

    _3 image

    _4 image

    _5 image

    _6 image

    _______________7 image

    Image _8

    Image _9

    _10 image

    _11 image

    _12 image

    ....

    Image _97

    Image _98

    _99 image

    _100 image

    _101 image

    Seems simple enough.

    Hello

    I have a "Preset" that does what you are looking for...

    In renaming the lot, I use a possibility of substitution of string with a regular expression "_0" _00"- which means"find OR _00 _0. "

    New file names

    • Substitution string - Original - Find _0 file name | _00 - replace with _

    (Make sure 'Ordinary use of the Expression' is checked)

    See screenshots below...

    Kind regards...

  • Invocation allows you to share a file

    Everyone has understood how to share a file via the invocation in waterfalls? If I do an independent call I get the screen offering several targets of invocation, but after selecting one, the invocation closes just not sharing anything. It is possible that I am the uri incorrectly formatted, but any sample work with anyone would be appreciated.

    The MIME type is correct. But there is a mistake in your uri. You will need to construct your URIs in this way:

    "file://" + workingDir + "/shared/misc/fileName.html"
    

    You must use C++ code to get the working directory:

    QString workingDir = QDir::currentPath();
    

    Take a look at this article for more details:

    https://developer.BlackBerry.com/Cascades/documentation/device_platform/filesystem/index.html

  • Cannot open PDF files by e-mail more

    I can't open PDF files in my Outlook email more.  My husband gets his colonies to work via e-mail and for 3 years now I have been open the colonies without problem.  This week, I can't open the file.  I get this error:

    Microsoft Word

    A red x, then "Sorry there was a problem and we can't open the PDF if this product again try to open the PDF file in Microsoft Word"

    Well, I thought it was always open in Word!  Anyway, it is not the drive.  I Sumatra and I can still open the other PDF files.  I even changed my readers just to check and get the same message.  I wrote to Outlook and they said it is not their problem and to post here in the Microsoft Community.  It's very frustrating because we need to see those files.  If she is not Outlook or the PDF reader, what could be the problem?  Thank you!

    Hello

    Please keep us up-to-date and sorry for the inconvenience caused.

    We are aware of this problem and the engineering team working on this and will inform you about the same to as soon as possible.

    Thank you!

  • I want to scan a ddoc to electronic mail and I need the port for thunderbird

    I want to be able to send a scan doc via e-mail and ny erbird customer. When setting this up in Windows Fax and Scan she prays for a Port #? My question is where can I find this info and how can I get in?

    what you put on foot is the scanner to send an e-mail. Therefore everything that your email provider tells that you are their SMTP settings. It is in no way related to Thunderbird.

  • Move multiple files from one folder to another in SkyDrive?

    How can I move multiple files from one folder to another in SkyDrive?  When I click on a file, & then use CTRL-click on another file, it moves to that one.  Can I select multiple files & copy or move or rename on PC?

    For now - not.  SkyDrive Wave5 or anyone should have this ability when it is fully released.

    http://www.LiveSide.NET/2011/09/06/SkyDrive-wave-5-to-finally-support-multiple-files-selection/

    (Read and also read comments on things, you might be able to use now to accomplish what you want).

  • Is there a way to consolidate multiple files in a folder?

    Just download multiple files via Dropbox.  Adobe Reader will only search in a folder both a named file.  That means one must perform several searches whenever a file is necessary.  Is there a way to consolidate everything under a single folder?

    Looking for text or file name in the files? If the first, then use any application to search for files on there... There is one in each OS. If the latter, then it can be done by using the option of advanced search in the drive.

    You cannot merge files with reader (it takes Acrobat to this), but I don't think it's the solution to your problem, anyway.

  • ACR will not synchronize multiple files

    ACR will only synchronize intermittently and apparently randomly in CS5 and CS6. It worked great for a long time before. When there was still chat and or telephone support from Adobe, the technician took my screen and was told everything was working fine-it just happened to be the only time he's done it! I thought him and shortly after synchronization of multiple files still worked on and off the power, but not in a predictable way:

    Sometimes, all the synchronization files, sometimes nothing, sometimes the next folder down will be. It's extremely frustrating. Please help quickly!

    Awesome! Please check back... Hope it continues to go well. No, the reset does nothing to Photoshop. If you use the same keys on start up of Photoshop, then it will reset.

    If everything still works as it should, don't forget to mark the correct answer for other users with the same problem can see the solution.

    Benjamin

Maybe you are looking for

  • LY580 - installation of windows 8 on SSD

    I would like to install windows 8 on my SSD instead of upgrading my copy of windows at the standard C disk. However, during the installation of windows 8, I says that it cannot install on this disk because it has a MBR partition table and EFI systems

  • Loser sound/image during rewind Live TV in Media Center

    Using Windows 7 and Media Center, upgrade to Windows Vista. All other parts of the Media Center seem to work normally. I can watch Live TV very well, but if I hit the back of chapter button to go back a few seconds, it works for the first two clicks,

  • Issue of ACS UCP

    I have ACS, IIS & UCP installed on the same Windows 2003 server. UCP has been installed recently. IIS configuration was made before the installation of the UCP. After installation I tried to UCP accessing through the URL http://localhost/secure/login

  • Win7 64 bit freezes & arrow function does not work, do not click to navigate anywhere

    Win7 64 bit PC crashes & arrow function does not work, do not click to navigate anywhere, exceptionally after being on ~ 2 + hrs. I can only turn off by pressing the power switch for about 5 seconds.

  • Is it possible to fade in and out the music automatically when you mix the voice

    I want to mix several short voiceover on a piece of music of 4 hours. I was wondering if there is a way that I didn't need to lower the volume of the music manually?