Thursday, 28 November 2013

4. Assigning View to Window

First of all let's discuss why we need to assign view to a window?

As of now, I can say from a web page(browser) we will be able to access a window not a view. So to access a view it should be assigned to a window.

Finally, to see Advanced Search View on browser, we need to assign Advanced Search View to window. Where we have to assign window to view. The place for assignments is 'Runtime Repository Editor'.

Try to understand the terms 'Run time' + 'Repository' + 'Editor'. Have you got something, if not, no worries we will discuss about it later.

Fine, Now we will start assigning view to a window.

Go to 'Runtime Repository Editor'. Expand 'Windows' you will find 'MainWindow', Who has created Mainwindow? You only created, at the time of UI Component creation.

Right click on 'MainWindow'. You should have 'Add View' option under it. If it is not the case then you are at display mode, now go to edit mode by clicking on pencil icon. Then select 'Add View'.

You will get a pop up, where Select view part you will get F4 help, there you can find the view that you have created 'AdvSearchView', select it. Click 'Continue'.

That's all you have assigned view to a window.

The resulted screen looks like.










Don't forget to check and save it. Otherwise 'Runtime repository Editor' will not get updated with latest changes.








Now, test the UI Component by clicking on test button as:



You will get screen as:





Is this what we expected. Nooo, there is lot more to do. Now it time to create 'Result view'.







No comments:

Post a Comment