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!

Pass tokens on when using page redirection under completion events
Last Post 05-22-2012 07:32 AM by Ryan Bakerink. 7 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
HakeemUser is Offline
skipping stones
skipping stones
Posts:7
Avatar

--
05-17-2012 01:05 AM
    Hi,

    Can I pass a token (i.e. one of my registrations fields) as part of the URL in the Page Redirection completion event (i.e. www.somepage.com?UserID=$(UserID))?

    I tried it but it doesn't do the token replacement. Is there another way to achieve what i am trying to do?

    I am using Dynamic Registration 4.10.43.

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

    --
    05-17-2012 11:24 AM
    Hello Hakeem,

    This is a tough one because the User isn't logged in yet when filling out this form. So the value of UserID = -1 until the registration form is submitted.

    But why would you possibly need to pass UserID through the URL when it's recognized through most modules in DNN. What is the module that is supposed to collect this UserID?

    There should be some sort of token allowed that represents the UserID. What are you trying to obtain using the UserID?

    Thanks,

    Ryan
    HakeemUser is Offline
    skipping stones
    skipping stones
    Posts:7
    Avatar

    --
    05-18-2012 01:14 AM
    Hi Ryan,

    The scenario i painted above was just an example. I actually want to pass this information on registration updates. I use Dynamic Registration (DR) to manage profile updates. I have also used DNN aggregator to create tabbed profile by adding several instances of DR to the page and putting them under different tabs.

    DR however doesn't really allow you to post back to the same page. the only way to really post back is to either specify a url to goto after update under the General settings or to use a completion event. My problem comes from the fact that there are some users that can update other peoples profile from the manage users page but that doesn't help because after saving on one tab it goes back to the Manage Users page as mentioned in http://www.datasprings.com/dnn-modu...red/#5207. If i just copy the address of the profile update/registration page and add a query string that points to the next tab, i loose the userID hence the person wanting to edit another user's profile sees their own profile information on postback.

    I figured if i can use a url redirect completion event and pass ?Manage=True&UserID=$(UserID)&NextTab=2 then this would solve my problem but the tokens are not being replaced in the completion event.

    Is there an easier way to achieve my aim?

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

    --
    05-18-2012 04:52 AM
    Hello Hakeem,

    In this scenario, could you create a hidden field named Manage and give it a default value of "False". This field will also Retrieve values from a querystring variable and Pass values to a Querystring variable.

    Why are you creating this hidden field? Because you'll be able to conditionally fire a redirection event based on the value of this hidden field. If the value = False, then you're not managing users. If the value = True, then you're trying to Manage Users.

    So now create two redirection events. One will redirect the users to a page if the Manage hidden field = False. Another redirect will take the users to a page if the Manage hidden field = True.

    That's covering one aspect of what you need to accomplished.

    This way when the form is submitted, the appropriate redirection event will amend ?Manage=True or ?Manage=False

    As for the UserID, just add another hidden field and name it "UserAccountID". Set a SQL Default of:

    Select '$(UserID)' As DefaultValue

    Enable the Pass to Querystring variable.

    Now when you submit the reg form the URL will look like the following:

    ?Manage=True&UserAccountID=UserID

    Then you could just always hard code &NextTab=2 to each of the redirection events that need this name/value pair.

    Let me know if you have any questions.

    Thanks,

    Ryan
    HakeemUser is Offline
    skipping stones
    skipping stones
    Posts:7
    Avatar

    --
    05-21-2012 08:02 AM
    Ryan,

    Thanks for the guidance. The suggestion above has almost gotten me to where i want. The only issue is that for some reason the default values are not being passed to the querystring. I end up getting a url like the following: .../Register.aspx?Agg473_SelectTab=2&Manage=&UserAccountID=

    But the values are not passed.

    Any ideas?
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    05-22-2012 04:37 AM
    Hello Hakeem,

    It sounds like your default values are being lost after a postback / question event. So what you might need to do to ensure that your values aren't lost is to:

    Create 2 Question Events, to set a default value to a field.

    You can use the same exact SQL to set the default value in the Question event. Interesting thing is, that I can see the UserAccountID possibly losing it's value, however I can't quite understand how Manage is losing it's value.

    Would you be able to provide me with a temporary editing account for this form? I can jump in and take a look. Usually when this behavior occurs, is when the DNN and Dynamic Registration version is having a conflict of some sorts.

    Let me know if you have any questions.

    Thanks,

    Ryan
    HakeemUser is Offline
    skipping stones
    skipping stones
    Posts:7
    Avatar

    --
    05-22-2012 05:56 AM
    Ryan,

    I will be glad to provide you a temporal editing account for this form. Please let me have an email address to send it to.

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

    --
    05-22-2012 07:32 AM
    You can send it to me directly at rbakerink (at) datasprings (dot) com

    Thanks,

    Ryan
    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