displaying prompt box from plugin - dynamics-crm-2011

I have a plugin that i would like to show a pop up where a user can enter some text, which when completed the plugin can use. Is such a thing possible or are prompts only available using javascript?
Thanks

This isn't possible. You can pass a message from a plugin to a user by throwing an exception, the user will get the exception message but they wont be able to reply.
I would suggest a dialog using custom workflow activities.

Can't be done the way you think. That's because the plugin is run directly on the server. However, you've got two options.
If it's for debug, you can use a tracer and write to it. The downside is that you need to crash the plugin to deliver the message to the GUI. Hardly recommendable for a common user.
If you absolutely must (and I know you don't must that much), you could invoke a web service from the plugin. If the web service gets to communicate with the desktop somehow, you'll be able to start desktop-ish application and show the message box from there.
What would you like to achieve by the message box, by the way? Plugins are meant to handle the internal logic on the server so there might be a better approach to what you had in mind.

Related

Is there a clean way to get the current Gmail message ID?

I am writing a Chrome extension and I would like to be able to get the current Gmail message ID (in either conversation view or not). I tried using the Gmail.js library but as mentioned here the observers quit firing after a while:
https://github.com/KartikTalwar/gmail.js/issues/304?_pjax=%23js-repo-pjax-container
So is there a different solution? I have searched around and do not see a clean, reliable solution.
Thanks for any tips or pointers.

How to hook the 'send' button in lotus notes client

Due to some reasons, I'm not allowed to touch Domino server but would like to make my plugin be able to modify email content right before it's being sent in client side. All comes up in my mind is to add a listener or somehow to hook the 'send' button of a message, which holds on when being clicked and runs my codes, and then sends the message. Is there anyone knowing about this trick, or any other way to meet the same purpose? Thanks.
BTW: I'm using Lotus Toolkit in Java.
Update:
I found a very similar question here:Lotus Notes - Java UI - Eclipse plugin
But I found Querysend only exists in NotesUIDocument of LotusScript but not Java. Strange.
You have two choices: install a DLL built using the Notes C API on every Notes client computer, or make modifications to the mail template. In the latter case, though, rather than implementing your code in the QuerySend event it probably makes more sense to implement to implement your code directly in the click event of the shared Send action - and that is just Lotus' formula language, so neither LotusScript nor Java is needed.

How can I programmatically show the select device dialog?

I am using the Cast Companion Library and most of it is working well however I have not been able to figure out how to show the device chooser programmatically.
Basically when a user chooses a video on my app I would like to show the chooser if they haven't yet connected.
Thanks.
If you are using the MediaRouteButton and it's accessible:
mediaRouteButton.performClick();
you need to "Developing a custom UI with the MediaRouter API’s and MediaRouter.Callback" but I didn't find any example how to do it .
First, I suggest you do not do that. I don't know what you are planning to do in your app so I can't say much but don't do something custom in terms of user interaction/flow that is different from other apps and the apps offered by the framework; people will not expect that.
On the technical side, if you want to open the standard dialog, I am not aware of any trick but I haven't looked at the MediaRouter code in v7 support library for that; since that is open source, you are welcome to look in there and see if there is any simple way to do that. If you want to design your custom one, you should be able to do that; the CastCompanionLibrary provides a sample of the Callback dialog and the one for chooser follows a similar pattern.
As a side note, you mentioned you want to open the chooser when user selects a movie. So how can they select to play locally? Are you planning to add additional selection to that dialog for local playback?

Why my plugin is not triggered when workflow updates an entity?

I have a plugin that is triggered every time when an account entity is updated. I also have a workflow that updates the account when an opportunity is closed as won.
Plugin works well when I'm in the account form and hit the save button. Workflow works well too except that when it's updating the account my plugin is not triggered even when it should be(?).
Any ideas?
I faced a similar kind of situation as yours, where I had a depth checking enabled in the plugin code. Workflows updating the entity has a depth of 3, which will get bypassed if you have that checking of 1 inside the plugin code.
Not sure if you have a similar issue here, since you're saying it's managed code and you dont have access to it. Is it some kind of package that you bought/downloaded; or will it be possible to get your hands on the code?
You should also check if the plug-in is triggered for specific attributes. If so ensure the your wf also updates these attributes so the plug-in is triggered.
Also, the code might be targeting caller origin and denying access from async service. you need to pick under the hood to gain better insight.

Push notification on iphone applications

I want to send advertisements to the application users using Push notification but i don't know is it possible or not.Can anyone help me to solve this issue.
If you want to send advertisements to your users, I would suggest iAd, theres a nifty tool called iAd Producer.
Another way to deliver other content besides iAds would be to use a UIWebView and create your own web based content that you can present as a modal view, or however else you would like.

Resources