Welcome Guest Search | Active Topics | Members | Log In | Register

Verifying assumption about ClickAction Options
rogers_c
Posted: Monday, October 17, 2011 3:54:45 PM
Rank: Advanced Member

Joined: 9/21/2010
Posts: 33
Points: 99
Location: Richardson, Tx
Hey guys,

Just wanted to verify a design assumption...

If I am building a wizard I would store set values from previous screens in the click action object that I am using to navigate, yes?

for example..

Screen 1 asks for user comments and has next button

Screen 2 asks for Contact method (email or mail) and has next and previous button

Screen 3 asks for Contact information based on the contact method and has next and Finish button

Screen 4 takes user comments, contact method, and contact information and sends email to customer service.

So the pattern would be that when drawing the previous and next button on Screen 2, I would put the value from the user comments text box into the click actions for next and previous as a property.

I would progressively continue this pattern till I reach screen 4 at which point I would have all the information I need to send my email to customer service.

Is this the best approach and are there any considerations regarding the size of the information in the click action?
ben
Posted: Monday, October 17, 2011 6:15:28 PM
Rank: Active Member

Joined: 6/10/2009
Posts: 16
Points: 48
Location: Virginia
Using the click action to progressively store the fields would definitely work. It may be simpler to use the new ViewState construct that we've added though, this would retain values across multiple clicks so you would only need to store them once. You can access this hash table using the CurrentApplicationInstance property of an EntreeScopeObject like so:

Code:
EntreeScope.CurrentApplicationInstance.ViewState["key"] = "value";
rogers_c
Posted: Monday, October 17, 2011 6:16:45 PM
Rank: Advanced Member

Joined: 9/21/2010
Posts: 33
Points: 99
Location: Richardson, Tx
Hmm... viewstate... I am digging that. Thanks ben.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.