Difference between Navigate and Next in Pageflow

Topics: Web Client Software Factory, UIP Application Block discussion, User Forum
Aug 27, 2007 at 2:55 PM
Hi,

I was trying to use Next method to transition to next page which was throwing an exception saying State not available but same the code if i give the transition name it worked.

Please let me know when to use Next and Navigate . A good example will help.

Thanks for the help.
Aug 27, 2007 at 5:52 PM
Hi!

The Navigate method takes a transition name as its parameter. This parameter is not the name of the target page; the parameter is the name of a transition.

public void CheckoutOrder()
{
     StorePageFlow.Navigate("doCheckout");
}

When you want to perform the default transition, you can call the Next method of the page flow instance to perform the default transition (you use the DefaultTransition property of a PageState activity to define the default transition).

StorePageFlow.Next();

For more information, please, read the following topic in WCSF documentation:
  • Transitioning Between Pages (Inspecting the Software Factory Assets -> Application Blocks -> Page Flow Application Block -> Development Activities - > Transitioning Between Pages)

Hope it helps!

Sebastian Iacomuzzi
http://staff.southworks.net/blogs/siacomuzzi
Aug 28, 2007 at 2:45 AM
Be sure to have the default transition set :)
Aug 28, 2007 at 4:51 PM

Hi

How i need to specify the default transition ? any example please.

Thanks
Subu