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!

Set Default value of Textbox, SQL Driven with value from other Combo Box
Last Post 04-09-2009 01:36 PM by K Ball. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Roel BroersmaUser is Offline
wading in the water
wading in the water
Posts:24
Avatar

--
01-24-2009 12:08 PM

    Hello,

    I want to have a form in which my customer can select 1 of his addresses (using a combo-box), and then change the details for that address.  (example:  when a customer has multiple shipping addresses, he can select one, then all the details get vissible and he can change the details of that address (the zipcode,street,etc).

     

    So, I made the combo box, which has SQL driven options (the address_id's for that customer).
    Then I made several text boxes which are visible after a question-event of the first combo-box:   "Address", "Number",  "Zipcode", "Country", etc.
    I cannot get it work to set the defaults for these text boxes, using SQL defaults, like:

     

    SELECT street1 AS DefaultValue FROM tbl_address WHERE address_id=$(ABNAA)

     

    ABNAA is the short name of the first combo box.  When i replace  $(ABNAA)   for a, let's say, the number "3", it works.

     

    Is this also a security restriction you took in case of sql injections ?

     

    (Or do i need to make 2 Forms ?   1 With a Querystring postback  (the address selector)   and  1 with a SQL data binding  (all the address details)  )

     

    (Note:  I am evaluating the Trial version.)

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    01-27-2009 10:31 AM

    Hi. I think for this to work you would have to make two forms... The reason is (at least in the current version) the 'Default Value' is only rendered during initial form submission and not after question events/post backs. What we really need to add is the ability to allow you to 'Set a default value from SQL statement' for a question event (right now this is a possibility for setting a value with a question event, but not via SQL). Anyway, its on the list...

    Also, this is just related to the default value and SQL default value feature, if the field was something that used combo box/radio button or options you could end up doing this as demonstrated in the data dependent dropdownlist.

    So, basically for now you can do this if you separated it onto two pages.

    -Chad

    K BallUser is Offline
    wading in the water
    wading in the water
    Posts:15
    Avatar

    --
    04-09-2009 01:36 PM

    Chad,

    when will this option be available?  Will we also be able to fill a text/html question in a like manner?

    Thanks.

    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