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!

Default values once again, I guess
Last Post 04-09-2010 06:29 AM by David To. 5 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Mats HögbergUser is Offline
new to the springs
new to the springs
Posts:3
Avatar

--
04-07-2010 05:54 AM

    First time poster here - please be gentle (Yes, I have searched and read 'til my eyes bled) 

    OK, I have a table with company info.

    I open the page with the dynamic form with companyId as parameter, and it appears in a text/hidden field with short name companyId. So far so good.

    Now, for the rest of the fields in the form, I want to populate the default values with data from the company table, using this companyId as key.

    So for the Company Name field (below the companyId field), I tried using the SQL driven Default Value option with

    SELECT CompanyName AS DefaultValue FROM Companies WHERE CompanyId=$(companyId)

    Obviously(?), that didn't work.

    Any hints and/or pointer how to do this simple task? Where should I start reading?

    Cheers!

     

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

    --
    04-07-2010 06:51 AM
    HI, you would want to use SQL binding for this. What you need to do is pass the CompanyID as a shortname of DSParam1 and use SQL binding to retrieve the value.
    To sum it up, it will be something like this:

    On your Dynamic Forms page, you would have a querystring at the end of the URL

    http://www.website.com/default.aspx...nyIDnumber

    Under Module Configuration / SQL Binding, type in:

    select * from Companies where CompanyID='$(DSParam1)'

    On your dynamic forms, make sure all the fields that you want populated have the same shortname as the column names from the Companies table. See if this will work for you and if you get stuck on something, feel free to reply back. -- David
    Mats HögbergUser is Offline
    new to the springs
    new to the springs
    Posts:3
    Avatar

    --
    04-07-2010 10:07 PM
    Thanks for your reply!
    However, no matter how much I stare at the Module Configuration page, I can't find any sign of SQL Binding under any heading at the Mocule Configuration page. Also, I can find no mention of "SQL Binding" in the PDF manual.
    (The version I'm using is 25 Enterprise)
    Cheers!
    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    04-08-2010 07:01 AM
    HI, what version of Dynamic Forms are you running? It should be under Module Configuration / Initial SQL Rendering Bind. Can you see it now? -- David
    Mats HögbergUser is Offline
    new to the springs
    new to the springs
    Posts:3
    Avatar

    --
    04-08-2010 09:51 PM
    I guess it's 2.5 - The installed PA is DataSprings_DynamicForms_Module25_DNN45PLUS_EnterpriseEdition
    Under Module Configuration I have
    General settings
    Header/Footer...
    Validation
    Blacklist
    Dynamic Q Sort Order
    Style Sheet
    Custom Javascript
    Payment Gateway
    Submit Link/Button
    Content Localization

    For the particular problem I was trying to solve, I've switched to SQLGridSelectedView instead, but it'd be good to know this, as I plan on applying Dynamic Forms to solve other tasks in the near future.

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

    --
    04-09-2010 06:29 AM
    HI, it looks to me like you have an older version of Dynamic Forms which doesn't support SQL Rendering Bind. You may consider upgrading to the latest version. -- 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