How to add a custom field to a list item attachment? - sharepoint-2010

In a SharePoint 2010 development project (in VS 2010), we need to add a custom field to the list item attachments. For example, the user has an additional boolean field next to the attachment file browser similar to the below mockup:
Any ideas?

Related

Count items in specific folder in sharepoint 2010

I have sharepoint 2010 site on intranet with document library. Document library has folder structure with sub folders. I need number documents in specific subfolder . I know that this field exists in document library but i don't know how i use them for specific subfolder in another list where this field will be displayed
Where and how do you want to use the count? In code, display in a list?
In a list you can edit the view and just add the "Item Child Count" column to the view.
Several code solutions here: How to find item count in a SPFolder?
If using 2013: From code using the REST API see here: https://sharepoint.stackexchange.com/questions/145219/how-to-get-itemchildcount-of-documentset-folder-using-rest-api

Add a menu button based on Email body contents

Some of the emails in our inboxes relate to support tickets raised on the helpdesk. Each email generated has a specific string like "--- Please do not remove this line! Ticket#48632 ---" which is used by the ticketing system to identify the appropriate ticket and append the email to the ticket if the tag line is found.
unfortunately for us, this isn't a hyperlink, so we have to open the helpdesk system, cut/paste the ticket number to view the ticket, not a huge pain, but it would be nice to have some form of hyperlinking or button to open up the ticket (in the browser) when the email body contains the string.
I guess this would involve parsing the email body, looking for the string "--- Please do not remove this line! Ticket#" and then creating a hyperlink that includes the ticket number (this is supported by the helpdesk system).
So...
Does Outlook support menu bar buttons that can appear conditionally based on whether the "search the email body for something" finds a result, and set the destination URL conditional on the results found in the body.
Does Outlook allow for extra "areas" (apologies for the poor terminology), but I was wondering if the email pane could be enhanced (conditionally) to show a section that may include the hyperlink button, but could also be used to make a REST call to the ticketing system, and display additional ticket information like Status, who's assigned etc.
If someone can explain if conditional menus are possible,and the same with extra display pains, and more importantly, what the correct "terms" are that I would use to search for ideas/solutions.
I have found that there are lots of examples of parsing an email body for a string, so I know that can be done, I'm not sure if the results of this can be translated into something that controls the display.
The Outlook object model provides three main ways for working with item bodies. See Chapter 17: Working with Item Bodies for more information.
1.Does Outlook support menu bar buttons that can appear conditionally based on whether the "search the email body for something" finds a result, and set the destination URL conditional on the results found in the body.
The Fluent UI is a static thing. You are not allowed to make dynamic customizations at runtime. Only few controls allows to add items (or buttons) dynamically. But you can enable or disable controls at runtime dynamically. For example, based on the body parse you can enable your controls or not. Use callbacks to implement this strategy.
You can read more about the Fluent UI (aka Ribbon UI) in the following series of articles in MSDN:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
2.Does Outlook allow for extra "areas" (apologies for the poor terminology), but I was wondering if the email pane could be enhanced (conditionally) to show a section that may include the hyperlink button, but could also be used to make a REST call to the ticketing system, and display additional ticket information like Status, who's assigned etc.
Of course, you can use the Outlook Form Regions to display the required information on the pane withing the Inspector window. See Outlook Form Regions Overview for more information.

Let user add item to combobox collection

I want to let the user permanently add to the combobox collection if something is missing. I know it's possible if you connect to a database or put the collection in a text file.
I was wondering if the collection is entered manually in Visual Studio is it possible for the user to add to this collection?
As I commented, the answer is no.
Any custom entries to the items collection at runtime would require you to have that information in a file or a database or a registry setting. Then when opening the program, you would have to read those items from the source and add them into your control's item collection again.

How can I present a pick list in a SharePoint 2010 External List form from an association in my BDC model?

I have created associations between entities in my .Net assembly BCS model. When I load the model into SharePoint and create external lists, I automatically get an External Item Picker control; enabling me to select an item from a list.
This is great because I don't have to program this pick list one way or another...
The problem is whenever I modify the form in InfoPath, the External Item Picker seems to break. When I select an item using the External Item Picker (in the InfoPath form) I get an error message "There has been an error while processing the form". This message is displayed as soon as I select an item and try to leave the field; WITHOUT submitting the form.
Can anyone tell me why the External Item Picker breaks whenever I modify and publish the list form from InfoPath 2010?
It's driving me nuts!
Thanks!
I've ran into the same issue, and found the following answer:
It's a bug from the August cumulative update.
Source
I am in the process of installing the February CU to see if it has the solution.

infopath 2010 submit to document library map field value to a submitted item column

I created a form in infopath 2010 which is submitted to a sharepoint 2010 document library
I Have a field in the infopath form called "day" and I need to map it to a column named "day" in the document library when the form submitted.
Please any suggestions.
Form Options -> Promoted Properties -> Add