C# WinForm :Accessing State Value using UIP
Hi,
Appliation uses Microsoft User Interface Block for views navigation and state management. I am able to access View1 value from View2 using controller state mechanism if use same navigation graph e.g
this.Navigator.CurrentState.NavigateValue=navigate Value;
Navigate(); ( at this point all values from View1 are already in state and moving ahead on same navigation graph)
and access value from View2 using
MyController.State["CustomerGUID"] ( at this point View 2 overlap view1 and open in same tab)
But if i change Navigation graph when user click View1 (which open View 2 in separate Tab insted of overlapping View 1)using "OnStartTask" e.g
this.OnStartTask("LoadCustomeprofileSummeryView",n ew TaskArgumentsHolder(this.State.TaskId, this.State.NavigationGraph, alData),null);
(where alData is arraylist in which i keep View 1 values
LoadCustomeprofileSummeryView - New Navigationgraph Name in UIP
config xml. )
Note i have mentioned "StartView(View2)" namd in that new graph)
so when i try to access values from View 2 in second case, i am unable to get value and my controller state is null. In both case i have same controller.
Does any one have idea how to get value in second case or is it possible to get values from
One NavigationGraph to another one.
Thanks a lot for any tiny help...
Regards,
Maulik
|