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 Driven DefaultValue not saving
Last Post 06-24-2013 06:04 AM by Ryan Bakerink. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
J.R. PittsUser is Offline
skipping stones
skipping stones
Posts:9
Avatar

--
06-22-2013 08:18 PM
    I am trying to use this SQL block to set a field called Amount:

    DECLARE @aamount NVARCHAR(20)
    DECLARE @datechange DATETIME
    DECLARE @today DATETIME

    SET @today = GETDATE()
    SET @datechange = '7/20/2012'
    IF @today >= @datechange
    BEGIN
    SET @aamount=55
    END
    ELSE
    BEGIN
    SET @aamount=45
    END

    SELECT @aamount as DefaultValue


    I enter this into the field definition under Advanced Field Options, Update the field, then Update the Settings, but when I go to the form, the value has reverted to the previous value, and when I go back into the field options, it has reset from SQL driven, to just the number. I can't get it to save it at all.

    I am using DNN 4.9 and Dynamic Forms 3.40.40.0 (old I know, but this has been going on for a while... finally getting around to asking.)

    Thanks,

    J.R.
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    06-24-2013 06:04 AM
    Hello J.R.,

    It's possible that this module setting is being truncated because the number of characters in the query exceeds the column size.

    I would recommend making this:

    A.) Stored Procedure
    or
    B.) Update the column responsible for storing your SQL Default Query. I believe this will be inside of the DynamicForms_Question table.

    Making a stored procedure out of your query then calling it would be the best fix.


    -Ryan
    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