can any one point me to a reference on how to use this?
A custom fied type with a setting
[Umbraco.Forms.Core.Attributes.Setting("Compare", description = "Compare With", control = "Umbraco.Forms.Core.FieldSetting.FieldMapper")]
public string Compare { get; set; }
gives an error when trying to use the form designer.
[NullReferenceException: Object reference not set to an instance of an object.]
Umbraco.Forms.Core.FieldSetting.FieldMapper.mapping(String[] vals, Form form) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.Core\Common\FieldSettingType\FieldMapper.cs:75
Umbraco.Forms.Core.FieldSetting.FieldMapper.RenderControl(Setting sender, Form form) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.Core\Common\FieldSettingType\FieldMapper.cs:37
Umbraco.Forms.UI.Usercontrols.EditForm.RenderFieldTypeSpecificSettings(Object sender, RepeaterItemEventArgs e) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.UI\Usercontrols\EditForm.ascx.cs:128
Just tried the fieldPicker with similar results to FieldMapper.
[NullReferenceException: Object reference not set to an instance of an object.]
Umbraco.Forms.Core.FieldSetting.FieldPicker.RenderControl(Setting sender, Form form) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.Core\Common\FieldSettingType\FieldPicker.cs:34
Umbraco.Forms.UI.Usercontrols.EditForm.RenderFieldTypeSpecificSettings(Object sender, RepeaterItemEventArgs e) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.UI\Usercontrols\EditForm.ascx.cs:128
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +692
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +67
Umbraco.Forms.UI.Usercontrols.EditForm.RenderFieldTypeSettings(Object sender, RepeaterItemEventArgs e) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.UI\Usercontrols\EditForm.ascx.cs:114
Umbraco.Forms.Core.FieldSetting.FieldMapper Errors
can any one point me to a reference on how to use this?
A custom fied type with a setting
[Umbraco.Forms.Core.Attributes.Setting("Compare", description = "Compare With", control = "Umbraco.Forms.Core.FieldSetting.FieldMapper")]
public string Compare { get; set; }
gives an error when trying to use the form designer.
[NullReferenceException: Object reference not set to an instance of an object.] Umbraco.Forms.Core.FieldSetting.FieldMapper.mapping(String[] vals, Form form) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.Core\Common\FieldSettingType\FieldMapper.cs:75 Umbraco.Forms.Core.FieldSetting.FieldMapper.RenderControl(Setting sender, Form form) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.Core\Common\FieldSettingType\FieldMapper.cs:37 Umbraco.Forms.UI.Usercontrols.EditForm.RenderFieldTypeSpecificSettings(Object sender, RepeaterItemEventArgs e) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.UI\Usercontrols\EditForm.ascx.cs:128
(contour 1.1.3, umb 4.5.2, windows 2008, iis7)
Comment author was deleted
Hi Mike,
Haven tried using the field mapper on a field type, only on workflow types, can you tell me what you are going to use the fieldmapper for ?
Cheers,
Tim
I would like to use it to select another field to compare this field to... (trying to implement a compare validator)
Comment author was deleted
Hi Mike,
Then you'll need to use a fieldpicker not the mapper (Umbraco.Forms.Core.FieldSetting.FieldPicker)
Cheers,
Tim
Thanks, although probably why I didn't use that is it's not mentioned in the documentation... (developer docs.pdf - 1.1) is that a new one for 1.1.3?
Whilst I have you do you also happen to have updated sample Contour.SharedSource that includes the DefaultValue functionality?
Just tried the fieldPicker with similar results to FieldMapper.
Comment author was deleted
Owkey thanks for the info, new maitenance release coming out this week, will also fix this issue
Regards,
Tim
is there a notification list I can subscribe to for maintenance releases?
is working on a reply...