How do I retrieve data fromd atabase?
Last Post 05-25-2010 03:45 PM by Candace. 4 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
Michael ManUser is Offline
river guide
river guide
Posts:152
Avatar

--
05-20-2010 10:26 AM

    Let says my URL address sis like this http://www.mysite.com/default.aspx?myid=5

    When I type that address in browser then load a page that has Tailored Text / HTML and Tailored Text / HTMl will display all columns of row myid=5

    I have following columns: Name, Address, City, State, Country, Zipcode

    so when the page is loaded, I like it to display like this

    John Do
    123 Street
    New York, NY 11111
    USA

    how do I use Tailored Text / HTMl to do this?

    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    05-21-2010 08:56 AM

     Hi Michael,

    Tailored Text will offer you tokens based on core DNN profiles as you set up the module.  So you can just use the tokens for Name, Address, City, etc. in the layout that you like.  Thanks!

    Candace

    Michael ManUser is Offline
    river guide
    river guide
    Posts:152
    Avatar

    --
    05-21-2010 10:36 AM
    Posted By Candace on 05/21/2010 10:56 AM

     Hi Michael,

    Tailored Text will offer you tokens based on core DNN profiles as you set up the module.  So you can just use the tokens for Name, Address, City, etc. in the layout that you like.  Thanks!

    Candace

    Candace, my data in in another table and those columns are not DNN core fields. These data are created by Dynamic Form

     

    Michael ManUser is Offline
    river guide
    river guide
    Posts:152
    Avatar

    --
    05-25-2010 12:24 PM
    Posted By Candace on 05/21/2010 10:56 AM

     Hi Michael,

    Tailored Text will offer you tokens based on core DNN profiles as you set up the module.  So you can just use the tokens for Name, Address, City, etc. in the layout that you like.  Thanks!

    Candace



     

    Can you please help? How do I display all data for the record on the querystring from a URL?

    Thanks

    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    05-25-2010 03:45 PM

     HI Michael,

    Here are notes from Chad:

     

    Basically you can do this a few ways…

    1. You can setup a querystring token in Tailored Text/HTML – I would do this first

    2. You can setup individual SQL tokens for each and every token you want

    OR

    You can setup a single query and reference that querystring token. Such as Select * from YourTable where ID = $(YourQuerystringToken).

    This is also demonstrated here:

    http://www.datasprings.com/default....serID=5955

     

    Exact details are on the page with instructions well

    I would however recommend using a stored procedure instead of just a query for security purposes.

    Thanks!

     

     



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