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
Related
In short, im creating a Visual Studio extension in c# that enables non-automation testers to create automation scripts for web based solutions (using selenium).
We've created a template already for users that lays out the project file structure (test runners etc) and im using windows forms toolbox controls to create the dialogue windows where they will enter things like URls, Xpaths, page names etc etc
My question is this;
How on earth do i go about creating .CS files dynamically based on their inputs in these toolbox windows?
The simplest (he says) window i have is one that simply allows them to enter a URl and a webpage name. When they click the 'ok' button on this window, it should create a new .CS file with the webpage name as the class name, the url as a string that the webdriver can use to kick off the test and a few other bits and pieces as a template for them to start adding web elements to.
Any guidance would be greatly appreciated, there seems to be precious little around the web about creating VS extensions!
You got a few options here.
Typically, most people would do this by implementing a custom project item template, along with a custom IWizard based wizard associated with your template.
If you are displaying a modal UI from your IWizard.RunStarted, you can simply populate the ReplacementsDictionary with the text gleaned from your custom UI, which would then be swapped for the tokens in your templatized .cs file.
Or you could programmatically add code to the file after it was generated and added to the project (admittedly a much uglier and more difficult to code).
And finally, you could just generate the file in the project directory, and programmatically add it after the fact.
There's a number of old blog articles from the archived VSX Arcana blog that you might also find helpful.
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.
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!
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?
This might sound a bit of an odd question but I know what I want to achieve, just don't know if it's possible.
Firstly, I'd like to be able to create a visual studio project that the 2 developers that work with me can use as a basis for all new websites. I want to drop all the common files that we use in there, like jQuery, CMS files etc. so that every time they start a new project they don't have to worry about all of that stuff. I guess to do this I just set up a project and "File > Export Template" ?
Now, here's the tricky bit...
When you open up one of the default templates in VS it asks you a few questions, such as if you want to use a master page or if you want to use code behind etc.
What I would like to do is set up something similar so that when you use the project template it asks you what version of jQuery you want to use so that it can import the right file, or for example it might ask you if you want to include certain user controls that the CMS contains. If you tick the box then the folder with the necessary user controls would be put in your new project for you.
I know MS can do this but can a user like me include functionality like that in my own project template?
Hope that makes sense.
Some more digging turned up the iWizard interface and this tutorial...
http://msdn.microsoft.com/en-us/library/ms185301