Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

SQL Form Completion Event -- Field Based -- Not firing
Last Post 09-17-2009 12:02 PM by David To. 11 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Jeff SullivanUser is Offline
going with the flow
going with the flow
Posts:39
Avatar

--
09-16-2009 02:57 PM

    I'm having an odd problem where I'm trying to conditionall call either an Insert or an Update stored procedure on some data based on the value of a hidden field called "RecordExists."

     

    When the user's a new user, then the SQL bind on form render won't find anything to pre-populate the field, so it's default value of "N" should remain.  This field is bound to a column that's hard-coded to "Y" when it returns a record, so I should be able to tell whether this is an existing customer by the value of this field (Y or N).

     

    One other datapoint. When I had only the UPDATE event (and it was unconditional), it fired and ran fine -- but obviously, it wasn't working for new customers, since they have nothing to update.

    I have 2 form completion events, one that calls Insert based on a value of "N" in RecordExists (equals N), and one that calls an update based on the value in RecordExists of (not equals N).

     

    However, in debug mode, I can see that neither even fires in either case.

     

    I would have thought that one event should always fire, because RecordExists will eithger equal N or it won't every time.

     

    Any thoughts on what I'm doing wrong?

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    09-17-2009 06:22 AM
    Hi, it's better to create one completion event calling one stored procedure, passing the hidden field token to perform your update/insert. Also, your completion event should then be executed "on any response" as well. Perhaps you can state your SQL statements here and we can help to combine them together into one procedure for you. -- David
    Jeff SullivanUser is Offline
    going with the flow
    going with the flow
    Posts:39
    Avatar

    --
    09-17-2009 06:28 AM

    David, I ended up doing that because it was all I could think of, although putting biz logic into the stored procedures is really bad form.

     

    However, the problem I'm having now is that sometimes the procedure is getting called and sometimes it's not, and I can't figure out why. It's now unconditional, so it should be getting called on each submit, but the back-end values are not updating (and in debug mode, no stored procedure execution text is showing up on screen).

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    09-17-2009 06:43 AM
    Hi, you can try testing your stored procedure under host / SQL and passing the same parameters as you would if submitting from the DF form and see if it returns any error or does any updates. Perhaps the stored procedure may be erroring out. You should create an email event and include your stored procedure executiion so it could email you what the values the store procedure is receiving as well. -- David
    Jeff SullivanUser is Offline
    going with the flow
    going with the flow
    Posts:39
    Avatar

    --
    09-17-2009 07:01 AM

    I am running the sproc in SQL management studio, and it works fine.

     

    I will try the email event thing to see what it's doing.

     

    Will debug mode not show any errors encountered by the SQL Server call?

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    09-17-2009 07:05 AM
    If you have debug mode on, it should show the stored procedure and the parameters being passed to the stored procedure and you can copy and paste that into Host / SQL to see if it executes without any errors,etc. I've done that numerous times. I don't understand why with debug mode on, your's won't show up. Are you sure you have your SQL completion event set to trigger "on any response"? -- David
    Jeff SullivanUser is Offline
    going with the flow
    going with the flow
    Posts:39
    Avatar

    --
    09-17-2009 07:19 AM

    I'm sure the SQL event is on any response.

    I am also seeing some weird behavior when I test validation that makes me wonder if the form isn't failing validation somehow and not even submitting.

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    09-17-2009 07:28 AM
    Hey, that's it. The form is not submitting. You can try turning on Validation Summary under Module configuration to see which fields are not passing regexx or required field validation. -- David
    Jeff SullivanUser is Offline
    going with the flow
    going with the flow
    Posts:39
    Avatar

    --
    09-17-2009 07:52 AM
    I do have validation summary turned on, but amseeing nothing.

    I admit to being confused by the 2 fields for regex validation errors -- which should be used for what?
    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    09-17-2009 10:21 AM
    HI, a quick explanation (as best as I can):
    Use regular expression?: check for required
    Regular Expression: your expression trap
    Regular Expression Validation Text: what appears next to the field if error
    Regular Expression Error Message: to show up if you enable validation summary

    Best to have all entries entered.
    -- David
    Jeff SullivanUser is Offline
    going with the flow
    going with the flow
    Posts:39
    Avatar

    --
    09-17-2009 11:40 AM

    Okay, I'm trying to add the email event, but any copy that I put in for the email body is being lost when I click Update Event.

     

    I feel like I'm doing something obvious incorrectly.

     

    I enter the text in the FCKeditor window, then click Update Event.

     

    Is there somewhere I should be saving the body of the email before I update the event?

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    09-17-2009 12:02 PM
    HI, this is a known issue.
    1) when using the RTE, before clicking on "Update Setttings", click on the radio button "simple text box" and then save
    or
    2) turn of AJAX under Module Configuration

    -- David
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
     
     
       
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi