Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David 57 posts 80 karma points
    Jan 07, 2010 @ 21:38
    David
    0

    templating

    Thanks to Tim I found the config file for creating more "templates", but is there any documentation tied to how one goes about creating those templates?  Or better yet a way to create a form in the gui interface and then pull "the guts" of it into XML? 

    I have a drop down with pre-populated values.........all the US states, not something I want to have to enter over again.  

     

    Thanks

  • Comment author was deleted

    Jan 12, 2010 @ 19:09

    Hi Dan,

    You could create a prevalue source (with all states) that you can reuse on all your forms.

  • David 57 posts 80 karma points
    Feb 11, 2010 @ 22:50
    David
    0

    Tim,

    I tried added a prevalue data source and got all the way to "Create Form" and using the drop down option, it fails and returns the following error.  I'm thinking this is a bug. 

     

    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>


    Source File: d:\webtemplates\umbraco\usercontrols\umbracoContour\EditForm.ascx    Line: 223

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Umbraco.Forms.UI.Usercontrols.EditForm.GetPrevalueAttributes(Field f) in d:\TeamCity\buildAgent\work\39da791f9304089a\Umbraco.Forms.UI\Usercontrols\EditForm.ascx.cs:179
       ASP.usercontrols_umbracocontour_editform_ascx.__DataBind__control9(Object sender, EventArgs e) in d:\webtemplates\umbraco\usercontrols\umbracoContour\EditForm.ascx:223
       System.Web.UI.Control.OnDataBinding(EventArgs e) +99
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
       System.Web.UI.Control.DataBind() +15
       System.Web.UI.Control.DataBindChildren() +211
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
       System.Web.UI.Control.DataBind() +15
       System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +124
       System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +443
       System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +51
       System.Web.UI.WebControls.Repeater.DataBind() +75
       Umbraco.Forms.UI.Usercontrols.EditForm.RenderFieldset(Object sender, RepeaterItemEventArgs e) in d:\TeamCity\buildAgent\work\39da791f9304089a\Umbraco.Forms.UI\Usercontrols\EditForm.ascx.cs:114
       System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +108
       System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +136
       System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +443
       System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +51
       System.Web.UI.WebControls.Repeater.DataBind() +75
       Umbraco.Forms.UI.Usercontrols.EditForm.RenderPage(Object sender, RepeaterItemEventArgs e) in d:\TeamCity\buildAgent\work\39da791f9304089a\Umbraco.Forms.UI\Usercontrols\EditForm.ascx.cs:102
       System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +108
       System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +136
       System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +443
       System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +51
       System.Web.UI.WebControls.Repeater.DataBind() +75
       Umbraco.Forms.UI.Usercontrols.EditForm.Page_Load(Object sender, EventArgs e) in d:\TeamCity\buildAgent\work\39da791f9304089a\Umbraco.Forms.UI\Usercontrols\EditForm.ascx.cs:59
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627



    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

  • David 57 posts 80 karma points
    Feb 11, 2010 @ 22:51
    David
    0

    I forgot to say the error line it points to is

    Line 223:                                                <div class="fieldprevalues" style="display: none;" <%# GetPrevalueAttributes(((Umbraco.Forms.Core.Field)Container.DataItem)) %>>

Please Sign in or register to post replies

Write your reply to:

Draft