Create a form with RadioButtonList & DropdownList errors
Hi All,
I'm creating a form via the route of Data Source.
I get is once I have connected to my data source I click "create form" and chosen my fields to use from the table then click "continue" and I select a RadioButtonList click save form I get the following error:
Owkey I see from the trace that it occurs when using a prevalue source, are the settings on the prevalue source ok? (it should check the settings when saving the prevalue source)
I'm getting this same problem too when I try and create dropdown lists from 2 of my field properties and save the form (making all text fields goes through OK). I'm using the Dataset method from SQL Server to generate my properties.
I do admit I'm new to the Contour thing, so maybe I'm doing something wrong. I've created a few Prevalue Sources (State and Country for the dropdowns) but I don't see how to connect those and the DataSource together. Where are the Prevalue source settings and how do I get them to talk to each other?
Line 223: <div class="fieldprevalues" style="display: none;" <%# GetPrevalueAttributes(((Umbraco.Forms.Core.Field)Container.DataItem)) %>>
I'm having the same issue. I'm creating a table from a SqlServer table datasource. Textfields work just fine, but if I select a checkbox list, for instance, I get the same error as above.
For one of the fields, select either the "CheckBoxList" or "DropDownList" fieldtype
Save form
Boom!
Here's the output:
Server Error in '/' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 221: update</a> <a class="iconButton delete" href="#" onclick="javascript:DeleteField('<%# ((Umbraco.Forms.Core.Field)Container.DataItem).Id %>');"> Line 222: delete</a> <span class="handle">handle</span> Line 223: <div class="fieldprevalues" style="display: none;" <%# GetPrevalueAttributes(((Umbraco.Forms.Core.Field)Container.DataItem)) %>> Line 224: <asp:Repeater ID="rptPrevalues" runat="server"> Line 225: <ItemTemplate>
I'm using SQL Server 2005 / IIS 6.0 / Windows Vista SP2
Table schema doesn't seem to make a difference. I've tried on a few different tables on columns with varying data types.
I just duplicated the bug against this test schema:
CREATE TABLE [dbo].[Test]( [One] [varchar](50) NULL ) ON [PRIMARY]
The Fieldtypes that cause the error are the CheckBoxList, DropDownList, and RadioButtonList. I believe these are the field types that accept prevalues, which may have something to do with the issue.
Currently when selecting a checkboxlist, dropdownlist, radiobutton list when creating a form based on a datasource these fields should be linked to a lookup table.
So it's currently not possible to populate the dropdown from within the form designer.
Will log this issue and it will be taken care of in the next release!
"Currently when selecting a checkboxlist, dropdownlist, radiobutton list
when creating a form based on a datasource these fields should be linked
to a lookup table."
Is it possible to set this up when using a datasource? Otherwise, is there another workaround you can think of?
I'm using Contour for a project with a rapidly approaching deadline, and the inability to use dropdownlists will be detrimental.
Create a form with RadioButtonList & DropdownList errors
Hi All,
I'm creating a form via the route of Data Source.
I get is once I have connected to my data source I click "create form" and chosen my fields to use from the table then click "continue" and I select a RadioButtonList click save form I get the following error:
Any help would be much appreciated.
Thanks
Tom
Comment author was deleted
Hi Tom,
Is this when using a prevalue source or when creating a form based on a datasource?
Comment author was deleted
Owkey I see from the trace that it occurs when using a prevalue source, are the settings on the prevalue source ok? (it should check the settings when saving the prevalue source)
Hi Tim,
The values are fine and the values I manually entered them as they are just numbers 1 to 5 and not pulling from a database or anything like that.
Thanks
Tom
Comment author was deleted
Thanks for the additional info Tom, will take a look at the issue on monday and hopefully include it in the next maintenance release
Comment author was deleted
Can't reproduce the error, would it be possible to outline the steps to reproduce the error? And also what db engine are you running on?
Thanks,
Tim
Hi Tim,
I can't seem to replicate anymore myself. Hmmm, thats annoying....
If it happens again I will let you know.
Thanks
Tom
Comment author was deleted
Owkey thanks for the update Tom
Hi there,
I'm getting this same problem too when I try and create dropdown lists from 2 of my field properties and save the form (making all text fields goes through OK). I'm using the Dataset method from SQL Server to generate my properties.
I do admit I'm new to the Contour thing, so maybe I'm doing something wrong. I've created a few Prevalue Sources (State and Country for the dropdowns) but I don't see how to connect those and the DataSource together. Where are the Prevalue source settings and how do I get them to talk to each other?
I'm having the same issue. I'm creating a table from a SqlServer table datasource. Textfields work just fine, but if I select a checkbox list, for instance, I get the same error as above.
Comment author was deleted
Hi Selah, would it be possible to provide the different steps you do ? That way I can try to reproduce the error and get it fixed!
Sure thing.
Here's the output:
Comment author was deleted
Thanks Selah,
And what if you only make 1 field checkboxlist or dropdown, does it save succesfully in that case?
It also breaks with 1 checkboxlist or dropdown. Are you unable to reproduce the bug?
Comment author was deleted
Hi Selah,
Thanks for the info, no I'm not able to reproduce the error.
Would it be possible to provide a screenshot or some info on the table you are setting up in the datasource?
I'm using SQL Server 2005 / IIS 6.0 / Windows Vista SP2
Table schema doesn't seem to make a difference. I've tried on a few different tables on columns with varying data types.
I just duplicated the bug against this test schema:
The Fieldtypes that cause the error are the CheckBoxList, DropDownList, and RadioButtonList. I believe these are the field types that accept prevalues, which may have something to do with the issue.
I am not using any prevalue sources.
Here are links to screenshots of the problem:
And here's a link to RenderForm.aspx, which I have not altered.
If there's any other way I can help, let me know.
Comment author was deleted
Thanks for the detailed info!
Currently when selecting a checkboxlist, dropdownlist, radiobutton list when creating a form based on a datasource these fields should be linked to a lookup table.
So it's currently not possible to populate the dropdown from within the form designer.
Will log this issue and it will be taken care of in the next release!
"Currently when selecting a checkboxlist, dropdownlist, radiobutton list when creating a form based on a datasource these fields should be linked to a lookup table."
Is it possible to set this up when using a datasource? Otherwise, is there another workaround you can think of?
I'm using Contour for a project with a rapidly approaching deadline, and the inability to use dropdownlists will be detrimental.
is working on a reply...