Determine the view during the WDDOINIT of a window
I have 3 views and only one window in my component, I need determine wich view show be the "default view" during the initialization of the window.
This determination will depends of the role of the user that is acessing this component.
1 - reads the role of the user.
2 - The role is: "developer".
in the WDDOINIT, I need have something like this:
if role = 'developer'.
--- call view1
if role = 'admin'.
--- call view2
Ajith Cheruvally replied
Lets say that you have two views V1, V2, V3. You would have embedded three of them in the same window. Create inbound plugs for each of these views. After that go to the window and create three outbound plugs. Create navigation links from these outbound plugs to the three different view inbound plugs. Then in the WDDOINIT method of the window, fire the appropriate outbound plug depending on the user role.
data : test type i value 1.
if test = 1.