Quantcast
Channel: SCN : Blog List - All Communities
Viewing all articles
Browse latest Browse all 2548

Navigation between Main Page and Edit Page(vice-versa) in OVP Application

$
0
0

In an OVP application, multiple pages of different types can be created and navigation can happen by raising CONTENT CHANGE event and calling the appropriate PAGE ID of the target page. FPM also make allows us to integrate a default edit page and default detailed page to a main page and by raising just an standard event these pages can be called. This post helps to show navigation from main page to default edit page and vice versa.

The main page displays a form UIBB of the flight table SPFLI fields. The feeder class details

1.png

2.png

3.png

4.png

Create an OVP application configuration.

5.png

The page is now a MIAN page. Provide page title. Add a form uibb and create a form uibb configuration with the above feeder class.

6.png

7.png

Add few fields. Make some fields as input field. Save and test the application.

9.png

Test the application and here we have the MAIN page with flight information. As the demo tries to show the navigation between main page and edit page ,lets make these fields as read only field in the main page and will show these as edit fields in EDIT page.

10.png

Put the below code in the GET_DATA method of the feeder class to make the input fields as read only fields in the main page.

11.png

Test the application again. now the input fields becomes read only on the main page. Now we have to create a button to navigate to the edit page and also have to create an edit page and link to the main page.

12.png

Go to the toolbar schema.

13.png

Add a toolbar element.

14.png

Add a button.

15.png

provide the button text and make sure the event id should be as ‘FPM_CALL_DEFAULT_EDIT_PAGE’ Save the configuration.

16.png

Test the application and now we have a button as Edit page on the Main Page to call the Edit page. Click the button.

17.png

We receive the error as the edit page is not yet created and also not yet assigned to the Main page.

18.png

Now we are creating the edit page with the same form uibb configuration as on the main page. So create an edit page .

19.png

Provide edit page title and choose a form component.

20.png

provide the same form uibb configuration as in the main page.

21.png

Now select the main page and in the default edit page provide the edit page id and save the configuration.

22.png

Test the application again. Click on the Edit Page button to call the edit page.

23.png

So here we have the edit page displayed . So here the standard FPM handles the content area change process. Now we have to make the fields as editable on the edit page. So as we are suing the same form uibb configuration in the edit page.

24.png

In the feeder class GET_DATA, for the event : FPM_CALL_DEFAULT_EDIT_PAGE add the below code to make the fields as input enabled.

25.png

Test the application.

23.png

So the fields appear as input enabled in EDIT page. Now here we have to put a button to go back to the main page.

26.png

Create a button on the edit page form uibb toolbar.

27.png

Provide the event id of the button as ‘FPM_BACK_TO_MAIN’ Save the configuration.

28.png

Test the application.

29.png

Click on the Main page button on the edit page and automatically it will go back to the main page.

30.png

So here we are on the main page.

31.png




Viewing all articles
Browse latest Browse all 2548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>