cancel
Showing results for 
Search instead for 
Did you mean: 

Page forwarding

Former Member
0 Kudos

I'm new to web dynpro so I don't know if this is even possible.

Here is what I'm doing.

Based on the user's ip address, I'm displaying certain information. If their IP address isn't matching then I want them to manually enter a number though an input page. Is there a way to forward the user to the input page? What is the syntax for it?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Create two WebDynpor views as below:

View1 - To display the IP Address information. (This is the default view)

View2 - To ask the user to enter the IP address in not match case

Now embed these two Views in a Window.

Go to Window's navigation modeler and create Outbound plug say "ToView2" to View1 and Inbound plug say "FromView1" to View2.

Now connect these two plugs.

In the wdDoInit() method of View1, write the code to display the IP address details.

If the details are not found then forward the user to View2 by firing the outbound plug of View1 as below.

wdThis.wdFirePlugToView2();

So automatically View2 will be displayed.

Create one application to this Window's InterfaceView.

Regards,

Charan

Former Member
0 Kudos

Thank you! That worked. Now I understand that I need to create plugs and use those to forward to pages.

Thanks again.

Answers (0)