Skip navigation
luisjorgepa
Currently Being Moderated

parameters with DW

Jan 7, 2014 5:29 PM

how to pass a identity parameter to DW  in order show me only the data for an specific user, in the  validation user of the form.

I think as income in your e-mail, you may only see your data.

 
Replies
  • Currently Being Moderated
    Jan 7, 2014 6:14 PM   in reply to luisjorgepa

    I am assuming that you want to pass an ID to a page so that the data can be filtered for that user. This can be done using a URL parameter as in

    http:www.mysite.com?ID=clientID

    The page can then read the variable to use as the filter.

     

    Using PHP you would use $ID = $_GET('ID');

     

    using JS you could write a function that returns the parameter as in

    function GetURLParameter(sParam)

    {

        var sPageURL = window.location.search.substring(1);

        var sURLVariables = sPageURL.split('&');

        for (var i = 0; i < sURLVariables.length; i++)

        {

            var sParameterName = sURLVariables[i].split('=');

            if (sParameterName[0] == sParam)

            {

                return sParameterName[1];

            }

        }

    }​

    and get the parameter as in

    var ID = GetURLParameter('ID');

    To get a more specific answer, please supply more details.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 8, 2014 9:48 AM   in reply to luisjorgepa

    >how to pass a identity parameter to DW  in order show me only

    >the data for an specific user, in the  validation user of the form.

     

    Note that using GET/Querystring to filter confidential information is not safe. In other words, if this is something that a visitor would use to view their own personal data, they could easily change the querystring to view other user data. If that's the case, then you need to use other methods. If this is being used by an administrator that otherwise has access to all accounts, then it's probably ok.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points