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!

Dynamic Email that contains +8000 characters?
Last Post 07-12-2007 01:39 PM by Jack Hoelz. 5 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Brian KayserUser is Offline
new to the springs
new to the springs
Posts:3
Avatar

--
06-26-2007 10:11 AM

    Trying to get dynamic email to send out emails greater than 8000 characters.  Looked on sql backend...and was able to modify field settings.
    Switching DynamicSQL & DynamicEmailMessage to text has not allowed the dynamic email to be more than 8000 characters.

    Have been informed that not only must these settings be changed within sql, but two (2) stored procedures must be ran/updated as well.

    Chad has submitted me this example:

    CREATE PROCEDURE dbo.[DynamicForms_AddDynamicEvent]@DynamicEventID as uniqueidentifier,
    @EventName as nvarchar(200),
    @EventType as nvarchar(50),
    @DynamicQuestionID as uniqueidentifier,
    @DynamicResponse as nvarchar(500),
    @DNNRole as integer,
    @DynamicRedirection as varchar(500),
    @DynamicSQL as nvarchar(4000),
    @DynamicEmailMessage as nvarchar(4000),
    @DynamicEmailFrom as nvarchar(200),
    @DynamicEmailTo as nvarchar(200),
    @DynamicEmailSubject as nvarchar(300),
    @ModuleID as integer,
    @PortalID as integer,
    @InActive as integer,
    @FireEventParameter as integer

    Insert Into DynamicForms_Events(DynamicEventID, EventName, EventType, DynamicQuestionID,
    DynamicResponse, DNNRole, DynamicRedirection, DynamicSQL, DynamicEmailMessage, DynamicEmailFrom,
    DynamicEmailTo, DynamicEmailSubject, ModuleID, PortalID, InActive, FireEventParameter)
    Values(@DynamicEventID,
    @EventName,
    @EventType,
    @DynamicQuestionID,
    @DynamicResponse,
    @DNNRole,
    @DynamicRedirection,
    @DynamicSQL,
    @DynamicEmailMessage,
    @DynamicEmailFrom,
    @DynamicEmailTo,
    @DynamicEmailSubject,
    @ModuleID,
    @PortalID,
    @InActive,
    @FireEventParameter)

    Familiar with scripts and queries, just having some issues with getting it to work together properly.

    1.) Am I supposed to be entering query externally or through portal under host > sql?

    2.) What is the proper query & tags for this procedure?


    Figure with these two questions answered, the dynamic email will work with 8000+ characters.

    -BKayser

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    06-27-2007 06:38 AM
    Hi. Here is the syntax you want to use (under HOST, SQL). Keep in mind that this should be used ONLY for Dynamic Forms 2.3. Any other version of Dynamic Forms the stored procedures might be changed.

    This SQL will change the SQL field and Email Message field for Dynamic Fields from 4000 characters to a text column which will allow for more characters. This will take up more database space but for some users who require their email templates to be large than 4000 characters it's a workable solution.

    Note: This is also assuming your database does not use object qualifiers (i.e. dnn_table) etc...



    Alter Table DynamicForms_Events
    Alter Column DynamicEmailMessage text Null
    GO

    Alter Table DynamicForms_Events
    Alter Column DynamicSQL text Null
    GO

    DROP PROCEDURE dbo.[DynamicForms_AddDynamicEvent]
    GO
    DROP PROCEDURE dbo.[DynamicForms_UpdateDynamicEvent]
    GO




    CREATE PROCEDURE dbo.[DynamicForms_AddDynamicEvent]

    @DynamicEventID as uniqueidentifier,
    @EventName as nvarchar(200),
    @EventType as nvarchar(50),
    @DynamicQuestionID as uniqueidentifier,
    @DynamicResponse as nvarchar(500),
    @DNNRole as integer,
    @DynamicRedirection as varchar(500),
    @DynamicSQL as text,
    @DynamicEmailMessage as text,
    @DynamicEmailFrom as nvarchar(200),
    @DynamicEmailTo as nvarchar(200),
    @DynamicEmailSubject as nvarchar(300),
    @ModuleID as integer,
    @PortalID as integer,
    @InActive as integer,
    @FireEventParameter as integer

    AS
    Insert Into DynamicForms_Events(DynamicEventID, EventName, EventType, DynamicQuestionID,
    DynamicResponse, DNNRole, DynamicRedirection, DynamicSQL, DynamicEmailMessage, DynamicEmailFrom,
    DynamicEmailTo, DynamicEmailSubject, ModuleID, PortalID, InActive, FireEventParameter)
    Values(@DynamicEventID,
    @EventName,
    @EventType,
    @DynamicQuestionID,
    @DynamicResponse,
    @DNNRole,
    @DynamicRedirection,
    @DynamicSQL,
    @DynamicEmailMessage,
    @DynamicEmailFrom,
    @DynamicEmailTo,
    @DynamicEmailSubject,
    @ModuleID,
    @PortalID,
    @InActive,
    @FireEventParameter)



    GO






    CREATE PROCEDURE dbo.[DynamicForms_UpdateDynamicEvent]

    @DynamicEventID as uniqueidentifier,
    @EventName as nvarchar(200),
    @EventType as nvarchar(50),
    @DynamicQuestionID as uniqueidentifier,
    @DynamicResponse as nvarchar(500),
    @DNNRole as integer,
    @DynamicRedirection as varchar(500),
    @DynamicSQL as text,
    @DynamicEmailMessage as text,
    @DynamicEmailFrom as nvarchar(200),
    @DynamicEmailTo as nvarchar(200),
    @DynamicEmailSubject as nvarchar(300),
    @ModuleID as integer,
    @PortalID as integer,
    @InActive as integer,
    @FireEventParameter as Integer

    AS
    Update DynamicForms_Events
    Set EventName = @EventName,
    EventType = @EventType,
    DynamicQuestionID = @DynamicQuestionID,
    DynamicResponse = @DynamicResponse,
    DNNRole = @DNNRole,
    DynamicRedirection = @DynamicRedirection,
    DynamicSQL = @DynamicSQL,
    DynamicEmailMessage = @DynamicEmailMessage,
    DynamicEmailFrom = @DynamicEmailFrom,
    DynamicEmailTo = @DynamicEmailTo,
    DynamicEmailSubject = @DynamicEmailSubject,
    ModuleID = @ModuleID,
    PortalID = @PortalID,
    InActive = @InActive,
    FireEventParameter = @FireEventParameter
    Where DynamicEventID = @DynamicEventID


    GO

    Brian KayserUser is Offline
    new to the springs
    new to the springs
    Posts:3
    Avatar

    --
    06-27-2007 06:55 AM
    Maybe I am misunderstanding, but it appears that I am initially changing existing field attributes, and then appears I will be creating new database with new attributes. A bit confused.

    Having issues with commands working within sql input.
    Please clarify what I am to change manually within sql database...as well
    as exact code for sql input. It appears you have tags like GO and AS.
    Tried running standard sql query commands with values, and still no luck.
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    06-27-2007 06:09 PM

    Brian,

    Hi. The entire SQL should be copied/pasted under Host, SQL. This is assuming your database doesn't use object qualifiers but it should work just as it states. The 'Go' basically splits up the different SQL and tells your database to execute that SQL before going to the next SQL. The first two lines you could probably skip since you manually changed them.
    Alter Table DynamicForms_Events
    Alter Column DynamicEmailMessage text Null
    GO

    Alter Table DynamicForms_Events
    Alter Column DynamicSQL text Null
    GO


    Those two statements change the database columns to text (they were previously nvarchar(4000). Since you already did that you could skip these however executing them again isn't going to cause any harm.

    The next two lines drop two stored procedures that currently exist within the system, these stored procedure need to be deleted so that they can they be re-created or added again but with the updated changes.

    DROP PROCEDURE dbo.[DynamicForms_AddDynamicEvent]
    GO
    DROP PROCEDURE dbo.[DynamicForms_UpdateDynamicEvent]
    GO

    They are dropping the procedure DynamicForms_AddDynamicEvent and DynamicForms_UpdateDynamicEvent

    Finally, the next two SQL statements between the GO statement are adding back the two stored procedures that were just deleted (except that these new stored procedure are adding/updating the SQL table with the column names as text and not as nvarchar(4000) which is what they were before you dropped the procedure.

    Hope that clears things up.


    -Chad

    GiuseppeUser is Offline
    new to the springs
    new to the springs
    Posts:2
    Avatar

    --
    07-06-2007 02:55 AM
    In a future release how can update the product without loss email text?
    Jack HoelzUser is Offline
    going with the flow
    going with the flow
    Posts:46
    Avatar

    --
    07-12-2007 01:39 PM
    4000 is just way to few by default.

    I've run the script above fine but my emails are still short.

    How is running the script going to impact future upgrades?

    And how do I undo it?
    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