How to send variables between different views on XCODE? - variables

I am currently trying to create an application that will allow the user to build a "fake" report card. How would I be able to use variables to go from SecondViewController to ThirdViewController? I would need to be able to take Users' text from 15 textField to a new view where it can be saved as a picture, so they can share it with friends on facebook or email.

Related

How to populate active directory data into a sharepoint list form

I have one custom list with fields like(IDs, Name, Phone no) . when i add a new item to the list a new item form will be opened. While filling the form by entering the first field( IDs), i want other fields to be auto-populated from active directory.
Can it be possible through Browser(UI) or from sharepoint designer.
Please Help me out ...
Yes this is possible I have implemented something very similar.But this is only possible through event receiver in a custom list.Following was my approach,
Add a ItemAdding event receiver, only field entered by the user will be the UseraName field through people picker.
Internally,fetch the details of the user entered from AD.This can be done through code in this way,
http://www.aspdotnet-suresh.com/2011/03/how-to-get-userdetails-from-active.html
Then you can assign the user properties to their respective columns and update the list item.
If its not a custom list,you can always use User Profile Synchronisation by Mapping additional required AD properties so that they will show up in the user information list of that sitecollection.
You can use sharepoint user profile. So instead of going back to AD related stuffs SP profile will get automatically synced with AD. Its very easy to manage also.
If it's a different AD than the one you use for user profiles, then you will need to develop a custom WebPart and write server code to connect to the AD and check for user's info & auto-populate them.
If it's the same AD used for user profiles, then you already have different users properties on the SharePoint side and no need to reach out to the AD... this is assuming that you already have a User Profile Service Application setup and it's synced with AD (as #samh above suggested).

How do I implement this type of dynamic UI in a Razor view?

I will start by saying that I am an absolute newbie to web development and to MVC as well.
I want to implement a view for a Subscriber page (part of an MVC4 application dealing with Email marketing). What I want to implement is:
1) When the user clicks the "+ Add a List" button, a new Category should appear on the left and the cursor should blink, meaning it should be ready to receive the name for the category from the user. I also want that whenever the user hovers over any category name on the left, a small bar containing two buttons (edit and delete) should appear which should let the user edit the category name or delete that category. The thing I want is that all of these must happen without reloading the page.
2) When the user clicks the "+ Add Contact" button, a pop up dialog box containing two tabs should appear which lets the user either manually enter the details or upload a CSV to capture the details. Whenever the user clicks the "Add Contact" button or "Upload and Add Contacts" in the pop up dialog box, I want the new contacts to display in the contact list region shown in the picture (once again, without reloading the page). I also want the same hover bar for the contacts too (same as categories).
I am confused as to how to implement this in a Razor view? What do I use - JavaScript/jQuery/AJAX?
I am pretty much lost. Can someone please guide me a little bit so that I can continue and finish my first MVC4 project?
You need some javascript libraries like jQuery UI or maybe Kendo UI, I'd recommend to use jQuery UI at this time. they have many widgets but look at these. and keep in mind that a cshtml view can be look upon like a html page, you can have all tags, css and javascript you want there:
http://jqueryui.com/dialog/
http://jqueryui.com/tabs/
http://jqueryui.com/

How to send textfields content via email in the background?

I'm trying to make a simple view based application.
I want to receive information with the content of text fields when user filled text fields and hits the submit button.
The way I do this doesn't matter so much. It can be done by sending information to a web server or sending information to my e-mail in background. Actually it seems easier to do it via e-mail.
I just want to know what the user wrote on text fields when he hit the submit button.

How to get Multiple Inputs

I was thinking of implementing picture uploading to my web application.
Now there are few Uncertainties.It would be great if some one makes them clear.
How do you allow user to upload multiple data for
Example. I have a model for car and I want user to add as many pictures with comments. Usually on websites there is button that says "Add another picture". If user clicks that button or link a text field and a Browse button appears and user can add as many pictures as he wants.
You need to go through this wiki -
http://www.yiiframework.com/wiki/176/uploading-multiple-images-with-cmultifileupload/

How to add email facility in an iPad app?

In my app for iPad I have several videos and pdfs. What I want is when user is watching a video or reading a pdf and if he wants to email that video or pdf to himself or to his friends, then how would he do it? I have added a button on the navigation bar for this purpose. When the user clicks that button an option should appear which should say "Email". now when the user selects Email, the app asks the user to enter an email address. After entering email address the user presses "Send" button. And that particular file is sent to the user's email. How can this be done?
Thanks
Take a look at MFMailComposeViewController class. It provides access to standard mail functionality and it includes addAttachmentData:mimeType:fileName: method to add attachments (and you also don't need to present custom UI for e-mail address).
However, if files are big (video), it makes sense to put them somewhere to your server and send only links and in this way avoid sending big attachments. This is important because many mail servers will not allow big attachments (10MB is already big).
I'm guessing you'd use MFMailComposeViewController, the same as for iPhone.