I am writing an app that allows file upload to our server. I would like to give users the option to stop the file upload once it has started.
Since the file is being sent via forge.request.ajax, the process runs in the background even if the user leaves the upload screen.
Is there a native way of closing an active forge.request.ajax connection??
My Application allows users to send a file to our server via forge.request - I need to be able to cancel the request - do you have any suggestions as to how to go about this??
Currently, no: although "cancel" messages could be passed through the JS / Native communication bridge, we haven't got logic in the native code to abort partially-sent requests.
I don't think there's anything in java.net.* that would support that sort of interaction either...
Related
My (editor-like) Windows desktop program can create a new e-mail with the current project attached using MAPISendMail. A customer wants the same functionality for Microsoft Teams.
For the web version, I think I can probably do that with Graph API.
But I can't find anything for the desktop app version. Is there a way to do that?
Bonus:
It would be great if the user could manually specify recipient + body text in Teams (and not in my program).
So you can't actually attach files to messages directly - you basically upload the file to a web location, and then provide a link to the file in the message. As an example, you can upload to the SharePoint document library that exists in the "Files" tab (something like this). Then, in terms of sending the message, you can send to a Team/Channel quite easily using a Webhook. This does not support #mentions the moment though. Another option is to use Graph to send the message.
If you're wanting instead to send a kind of 'private' message to the user, you'd need to look into creating a bot, and sending a 'Proactive' message
I'm developing a project with Symfony 3.4.
I would like to send a message to all the clients currently viewing a page when something happens. I evaluated both Server-Sent Events and Websockets, and I decided to go with the former, because the communication is unidirectional (only server to client).
For this purpose, I'm using this library: https://packagist.org/packages/tonyhhyip/sse
It seems to work, but I need to specifically send a message when something happens in the whole system. I tried with the Symfony event system (by creating a custom event), but events seem to be dispatched and captured only within the same session (i.e., the same logged user). In other words, if an action performed by a user triggers an event, it is not captured by other users and therefore a message is not sent to the browser via SSE.
Any suggestion?
Thank you
I am using the MessageSave API to execute my .exe. My .exe takes the first argument from MessageSave API and does my work. When the user selects multiple messages and presses the button in the MessageSave software then the API sends multiple pings to my .exe but I want to execute my .exe when the last message is saved (meaning on the last ping). Can you please help me to write this coding logic?
About MessageSave: Message save is an AddIn for outlook on following url: http://www.techhit.com/messagesave/
API Link: http://www.techhit.com/messagesave/api.html
MessageSave does not provide any option for MultiMessages.
You will need to start on the first one, then the others can use one of the many forms of IPC (DDE, SendMessage with WM_COPYDATA, COM, etc) to pass the filename to the first copy.
From your description, there is no indication of first/last message so you can not get this notification.
I'm using EmailComposerTask to send an email.
Is there any way to detect if email wasn't sent for problems like no connection, invalid email setting, mail server temporary down etc ?
I cannot find any way get this information.
Unfortunately this is not possible. Tasks in WP7 consists of launchers and choosers, the EmailComposerTask is one of the launchers which is defined as being:
A “fire and forget” action, where a specific Windows Phone functionality is launched, for example, sending an SMS message, opening a webpage, or placing a phone call
There is no way to know the result of the action you launched. Source
I am developing a application for Windows Phone 7 in which on a button click I need to first send some text messages and then make a call. But as both process are user dependent so I am not getting how should I make it such a way that unless user first finishes the sending messages my app should not initiate call. Because unless I do so it will give thread abort exception.
Thanks;
nil
With the current SDK there is no way to know if the SMS was actually sent. It could also have been changed by the user before being sent!
Lots of people have asked for this functionality (or similar but for other tasks). Let's hope it comes in a future update.
I believe you can't do it in parallel, because WP7 isn't really multitask.
Do you really need to do it in parallel?
Search for the events deactivated and activated. They are in App.cs.
After you make a call, and back to the program, the activated event will detect it, so you can add code there to send SMS.
Done in reverse way. First make a call and then when user comes back after tombstoning send an Email...but flag manipulation need to be saved in isolated storage.