InfoPath drop down list showing old values - infopath

Currently I have changed the values of a drop down list in my Infopath form from 2012 dates to 2013 dates. When I view the changes in designer the changes are there when I open the form in filler or open the published form in sharepoint it still shows the 2012 dates. The drop down list option are manually entered.

The problem I was having is the drop down list was on two separate views and wasn't changing the values on both views. If having this issue make sure you don't have buttons changing a view on you without you knowing it.

Related

InfoPath 2013 - Individual Default View for Create, Edit, and Delete

In InfoPath 2010 there was a trivial manner to set the view called for an item based on the function desired, e.g. a separate view could be made for create, edit, and display and set as the default.
See here:
http://chanakyajayabalan.wordpress.com/2013/06/20/individual-newedit-and-display-forms-for-sharepoint-using-infopath-forms/
I cannot however find the equivalent for InfoPath 2013, nor am I able to locate the corresponding element via SharePoint Designer.
It also would appear that you cannot append the view to the URL in order to directly call a view.
Creating a rule for Form Load that detects some attribute of the call, and sets the view accordingly seems like another option, but I'm just not certain how to access the appropriate identifier.
Final resort would be to do away with the InfoPath form, and create/modify pages via Designer, but would rather avoid this if possible.
Found the way around this is edit the page in SharePoint. You can't do it in SharePoint designer anymore.
Create your views in Infopath then publish. After for the form you want to change the view on, IE create new item or edit item. Once there choose edit page from the settings menu, then modify the Infopath web part to use the the view you want.
This will work for additional forms as well if you want to add custom actions to the list.

Automatically create data entry form based on a database table in ASP.NET

Is there some add-in, control or something else for Visual Studio 2008 using which one can automatically generate a webform mapped to fields of SQL Server database table. For instance, based on a user details table, a webform should be automatically generated having labels and textboxes and submit button to enter data into that table.
I tried searching the internet and mostly I found solutions for CRUD, which I don't want.
So please help.
Cheers.

ASP.NET Design Issue: what is the best asp.net control for creating a table with 15 properties?

I am a new ASP.NET developer and now I need to develop a data entry system with 15 fields that allow the admin of the system to enter some data under each one of these 15 properties. From what I learned in ASP.NET tutorial, I think the best control is the ListView control in order to give the admin of the system to enter a new field if he wants in the future. My problem now is the following:
How to divide these 15 fields into two columns? Because all what I see about using ListView is putting all of the properties at the first row and the entries will be underneath of them. What I want is to create a list with two columns of properties and two columns for the entries
I'm not sure that a ListView makes sense from your description. Are your administrators updating the same properties on different objects? Like most of the ASP.NET controls in its class -- the Repeater and GridView are other similar examples -- the ListView is meant to create several rows of identical information based on an HTML template you provide.
If your administrators are creating or updating:
The same property for different objects, then the ListView, Repeater, or GridView would be fine.
Different properties for the same or different objects, then you need a more traditional form with normal data entry controls (like the TextBox, HtmlSelect or DropDownList, CheckBox, etc.)
I would use a more liberate approach and code the fields my self into the view you'd like.
At first it might take more time, but after that your would be able to control the look of it much quicker and easily.
Using a listView you can build your edit/input gui as you'd like - a table or any other way. If really must divide into 2 columns - you could just put a label and then the field just underneath it. 7 on one side and 8 on the other.
If you're looking to use the edit features of a data control, you could create a custom item template for your data control (be it a gridview or whatnot) that has a table and each of the properties (I assume all 15 are conisidered 1 row of data). Bind your single row to the data control and it should work. You could even have different template views for display and editing using the templates.

ASP.Net, how to put hyperlinks in datagrids.

Hi i have a datagrid I've put in on a aspx web form in visual studio 2010, I'm new to this so I've been following the ms tutorials.
One of the columns on my data grid contains a lot of information, is there a way i can add a "+more" option in the cell next to the entry that shows only the first few characters of that cell, but once clicked opens all the information on that particular entry but onto a new aspx form?
Thanks for any help!!
There are basically three different ways...
Structure your data object/query so that it returns a key and and abbreviation (i.e, first name, last name, id, bio) and use a template that turns id into a link.
Use the onrowbound event to manipulate the controls on the row, so that you have a href to your details page.
Use css to show the additional info on a hover/mouse over (I like this, but it doesn't play well with mobile devices, which don't have either event).
EDIT: Methods 1&3 would be done on your aspx page, method 2 would be done in the codebehind for your page. Method 1 is really dependent upon your being able to control the data object/ query results. If you are calling a stored proc that someone else controls, it may be very difficult to make it work.

asp.net control for displaying data in a grid

I'm attempting to build a page that displays the same set of information of different "items" in a grid or table. It's akin to a shopping page that displays products in for e.g. a 4 by 3 table.
I came across datagrid and gridview but they display grouped information according to columns and each row representing one item only.
Is there a control that displays data in a very basic grid format instead of tabular form, preferably with built in pagination abilities?
Many thanks in advance
You will want to use a DataList or a Repeater, as those controls allow you to specify the exact HTML you want for each item. Unfortunately, neither of those have built in pagination, but honestly, the built in pagination in the GridView is of questionable usefulness, since it only works if you use a specific data source or load everything from the database up front.
I'm not sure what you mean, you want a basic grid, but gridview doesn't work for you. But in any case, check out the repeater. It will require a bit more work to built a template for your items, but it's very flexible and can handle what you want.

Resources