I am new to Kendo UI Controls, and i have a question.
Currently I am using the upload control within a form to upload files to a API Service. This service returns an ID of the sent file, which must be sent at the moment of saving the whole form.
Is it possible to save the returned ID within the Upload Control and access that information at the moment of posting the form, or does that information has to be stored in a different field, at the success event handler?
Thanks in advance
Related
I am new to Slack's API, so bear with me. I have a slack button that contains a simple webhook link which, when clicked, updates a record somewhere on my site. However, I need to determine which user clicked the button and send this info back to my site in order to fill out an updated_by field with the user's name. The only way I see to do this is to somehow update the post request body with a variable containing the user's name?
You need to handle interaction with the buttton.
https://api.slack.com/reference/interaction-payloads/block-actions
The payload received contains the SlackId of the user who clicked the button.
My team and I have divided and conquered with creating assignments on Google Classroom using Forms. If we all share out the same form, will I see just my students or will all students show up?
Who will see the submissions?
When collaborating on a shared form and enabling the option Get email notifications for new responses - the notifications will be received by the editor who enabled with option for the given form - in this case you.
Thereby, you will receive ALL the notifications for form submissions - no matter who created the assignment and posted the form filling URL.
Analogously, all the other collaborators that enable the option "`Get email notifications for new responses" will receive ALL form submissions
In addition, all collaborators will have access to the destination spreadsheet where the responses are stored.
If you want to avoid this:
Rather then using the shared form, make a copy of it
Obtain and use the new response URL belonging to the new copy
Select your own destination spreadsheet that is not shared with anyone
Nobody other than you will have access to the form submissions made to your private copy of the shared form.
We need to import to some external system group of contacts that user selected in contacts grid.
For now the only option I see is: get IDs if selected contacts and send it to the to external system using JavaScript.
But is it possible on ribbon button press get list of selected contact on server side? We`d like to process this contacts on server and send them to external system using our C# code (in plugin, most likely)?
Yes, in a slightly longwinded way. You can't call server side code directly from JavaScript. You can however perform an action that will call server side code.
For example:
Create a new entity - 'Contact Processor', this has a lookup to a contact.
Place a plugin (or custom worfklow activity) on the create of a 'Contact Processor'. This uses the lookup to the contact to perform whatever logic you require, e.g. Sending the data to an external system.
You add some JavaScript to a ribbon button that when clicked creates 'Contact Processor' records, this will then trigger the server side code.
I am using MvcMailer with my website to send html emails.
seems good, but im just wondering how i can view the created emails in a browser.
eg in some newsletters they say "view this email in a browser", so i am just wondering how I can do that with MvcMailer.
The easiest way is to put a link in the email back to your site, and then create a controller/action that uses the same view, and builds a model the same as the one you used when creating the email.
If all the data you need is in the database, you may be able to just pass a key in the querystring (note: if the mail contains potentially sensitive information, make sure the url is tamper-proof), otherwise you might need to pass in more data to allow you to reconstruct the same view that you did when generating the email.
I need to retrieve an Infopath File, which is displayed and filled in on a sharepoint webpage, and save it's data to a seperate DB. There are 2 events that fire once the form is submitted. ItemAdding and ItemAdded.
I know that I can not retrieve the file from the ItemAdding Event because it only gets saved after the ItemAdding Event.
But I want to redirect users to a different website once I have stored my values to the database, but I find no way to do this. I guess, the problem is that the ItemAdded event occurs, after/or at the same time as the user gets redirected to the webpage showing "The form has been closed".
How can I retrieve the values and redirect the user? Also, I am not allowed to attach code to the infopath form itself. This needs to be handled from Sharepoint.
Thank you
If you are redirecting within the SharePoint site you can include "source" as a query string parameter.
You also try a response.redirect in the OnClose event of the infopath form.