get Profile Tokens For a Different User
Last Post 11-06-2012 12:22 PM by Ryan Bakerink. 6 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
The DadUser is Offline
going with the flow
going with the flow
Posts:71
Avatar

--
07-30-2010 12:18 PM
    I want to list profile data for a user other than the current user in Tailored HTML.  How can I do this?  I can pass the userid via a querystring;  How can I make TT retrieve the data/tkjens?
    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    07-31-2010 07:21 AM
    HI, go to Tailored Text/HTML settings, and under "Tailored Initial SQL Data Bind", you can type in your SQL query with the following:

    select * from tablename where userid = '$(UserID)'

    replacing tablename with whatever tablename you are trying to retrieve the user profile columns from. Also be sure to check the box "Enable initial SQL data bind:". See if this will work for you. If possible, list your SQL statement here. Thanks. -- David
    The DadUser is Offline
    going with the flow
    going with the flow
    Posts:71
    Avatar

    --
    08-01-2010 06:00 PM
    I don't think I made it clear just what I am trying to do.

    The user profile tokens listed on the Edit Tailoed Text/HTML page are for the current logged in user. I need profile field tokens for a different user. The userid will be passed via a querystring variable &ASID.

    Using an init SQL Bind query like select * from users WHERE UserID ='$(ASID)'
    will not work and probably would not fetch all profile fields anyway.

    The ASID is being passed OK from the query string. TT creates the ASID token and the value iis correct.

    is there a way to fetch Profile fields using the querystring variavle?
    Mark HarleUser is Offline
    going with the flow
    going with the flow
    Posts:45
    Avatar

    --
    12-16-2010 06:57 AM
    Hi - I am trying to do the same as described in the 01-Aug-2010 post, i.e., display profile data in TT for a user other than the current logged in user. Any instructions would be greatly appreciated.
    Thank you.
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    12-16-2010 01:51 PM
    Hello,

    There's a possibility that some of the columns being returned have the same exact names as some of the built in tokens, for instance firstName is a column in the table users, so when you say Select * from Users your bringing back many columns that are already existent tokens.

    Please let me know which table you need to retrieve information, if it's the Users table you will name out all of the columns your selecting and provide aliases for them, to make sure a token gets generated for that field.

    This format:

    SELECT FirstName As TheFirstName, LastName As TheLastName from Users


    This will bring back these two columns and generate two tokens: "TheFirstName" and "TheLastName"

    Just make sure to have unique names when trying to generate tokens with Tailored Text/HTML module.

    This is the WRONG format:

    Select * from users

    OR

    Select FirstName, LastName from Users


    If you have any questions please let me know.

    Thanks,

    Ryan



    NebRefUser is Offline
    river guide
    river guide
    Posts:91
    Avatar

    --
    09-19-2012 06:17 AM
    Ryan:

    Is there a tutorial or other information about how to accomplish this? I am trying to the same thing described above and am having no luck. Thank you.

    Jim
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    11-06-2012 12:22 PM
    Hello Jim,

    You're attempting to use SQL Binding in Tailored Text/HTML and this is your query:

    Select * from Users where UserID = '$(UserID)'

    If not, can you provide me an example query that you're using.

    Thanks,

    Ryan


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