Show Metadata in Sharepoint 2010 columns using Infopath forms - c#

I'm trying to show some metadata fields in Sharepoint 2010. I'm aware that you can use Infopath to create a form and select the fields you want to show, but it seems that there's an issue when trying to select fields from the extended properties, instead of the core ones.
Can anyone explain me how to fix it?

Related

Visual Studio 2013 - Creating Dataset for RDLC Report

I am trying to make a report. The class that I am working with has several ICollection properties, and passing those values to the report for display is difficult.
I have created a class called FlatClass that has all of the string values that I need to display. In the Controller, I plan to populate an array of type FlatClass and pass it to my Report. From what I have read, I need to create a custom dataset/data source. In Visual Studio 2013, when I click Add DataSet in the Report Data tab, it wants me to choose a table from my database. But ClassFlat does not have a table in the database.
I have added a .xsd file, but I cannot find any instruction on how to tell it the names and types of the Fields I want it to have.
Any help would be greatly appreciated!!!!
I tried to create rdlc report in my web application but I could not add my class as dataset. There was no option for that.
Workaround:
Create a Library project in the same solution.
Add the main project as reference to this new Library project.
Create a rdlc file.
Add dataset; for datasource select New->Object->Choose the class from you project namespace
Do your report and when it is complete, move the file to the main project
Not sure if your problem is similar but hope the information is useful.
I ended up creating an .xsd file and just editing the raw XML to add all the properties of the class I wanted to use as a dataset. This worked when I added it to the report.

User not required to fill out required fields?

So I got a document library that I made using the Wizard found in Visual Studio 2013 Professional for Sharepoint 2010.
After creating the list I go and add 3 new fields that I need and set them all to required. However when I go look on my deployed Sharepoint site the fields don't show in the properties after I upload a document.
They don't even show if I go and press "Edit Properties" on the file. I am not sure what the problem is here. I didn't edit the Schema.xml and I made all fields using the visual editor.
This is deployed on a Farm Solution not a Sandbox.
I've had this problem on occation. Have you tried to make a new list instance based on your definition? When you create your List Definition with corresponding columns I belive that the Instance that gets created automaticly when you create the Definition is "empty"
I think this resource might be of help: https://msdn.microsoft.com/en-us/library/office/ff728096%28v=office.14%29.aspx
Good Luck! //Kodz

Lightswitch - add/edit window - remove created by, etc

When you click on the add button in a lightswitch application, the default pop-up window will appear. Is there any way how to remove the by-default generated "Created","Created by", "Modified", "Modified By" lines? (Other than creating a custom add details window).
I am talking about these ones:
I have found this link here where the person says something about the metadata. Is it the right way to go? If yes, how do I access the metadata and where exactly do I put that code?
I am using Visual Studio 2013 and doing the app in C#.
Thanks in advance.
For anyone who would be stuck with this as well in the future - you have to right-click on the table in the server part, select "open with" and select "Automatic Editor Selector (XML)". You have to then scroll to EntityProperty and add "" attribute to it, as described in the link I posted in the original question. Then save the XML and reload the project. This will hide these fields when adding a data to this table.
Make sure to back up your project before doing so in case something goes wrong.
Just wanted to let you know what worked for me. I just brought up the table in "Server" view, selected the boarder, then went over to the properties, and unchecked the box marked "Enable Created/Modified properties" under "General". Sorry if that didn't work, I'm very new to Lightswitch myself!

Customizing or Catching SharePoint ribbon action "New Document" in document library

I was wondering if it is possible to catch or customize the "New Document" action in the ribbon when you create a new document in a document library.
The reason is the following: I would like to fill in some data into the document (pragmatically through the properties) before it opens in Word. This way some default data is filled in for the user. What data is filled in depends on the Site name. This would represent a Project number, what would be used to get the specific data from a list or database.
I've come up with some other solutions that basically fill in the data, but at another point of the process of the document:
using a combination of a Workflow & filling in the data through InfoPath. This works for a library with only 1 content type (the default). Once we want to use multiple Content types it is nearly impossible to get the site name because InfoPath is not able to use the function SPContext.Current.Web.Title.
To solve the content type problem I used the Event Receiver "ItemAdding". This way the data is added when the document is being added. The disadvantage that this gives is that the data will only be visible in the document if the users opens it a second time, what isn't really user friendly.
So to optimize the user experiences and usability I would like to add the data before the document opens in word. But is it possible?
I'm using SharePoint 2010 Server, Office 2010 Professorial and Visual studio 2010 Ultimate.
Thanks in advance,
Oxillery

How can I add to the list of AllowableValues for a custom field in TFS 2010 programatically

I have a process which synchronizes requirements and defects between a 3rd party tool and TFS 2010.
We would now like to extend the process a bit further to allow:
Automatically adding new Area's and Iterations to a TFS project.
Automatically adding new values to the list of AllowableValues for drop-down style custom fields.
I'm looking to do it programmatically via the TFS 2010 Client API in a .Net 3.5 class library project.
Is this possible?
To add an area/iteration via code have a look at the sample code from this post
For the list values I'd suggest linking the drop down field to a global list and then updating the global list programmatically as shown in this post

Categories

Resources