Skip to Content

Some of the solutions provided in discussions related to launching a URL are

i)   Opening a static URL in a new window with a button click.

ii)  Clicking a hyperlink on Web UI to open a static URL in a new window.

iii) Calling a transaction launcher URL in IFrame .

All of the above solutions are related to opening a URL in a new window and not in an assignment block.Through my blog, I am elucidating the approach of launching a URL with dynamic parameters in an assignment block. I am illustrating my explanation with Google Maps.

 

Below snapshot shows what we see when we navigate to the component after complete development. 

InitialMapView.jpg

Example :

California state map – add California state in the ‘US State’ field and hit enter ( state information

will be passed to page attribute and then URL information will be passed to IFrame tag).

California.jpg

Component development details:

Create a component “Z_MAP_NAV” with MainWindow, then create two views – “MapView”, “StateDet”,

a viewset “MapViewSet” and an overview page “MapOvrPage”.

Create a custom component “CuCoStateDet” with context node ‘STATES’ and then perform context node

binding to each of the above created two views – “MapView”, “StateDet” context node ‘STATES’.

On completion , the below snapshot shows the final component structure .

ViewDetails.jpg

Enhance SET_MODELS’ method of the View “MapView” implementation class to pass entered state

information to page attribute ‘State’.

SetModelsMethod.jpg

       Page attribute “State” declaration details

PageAttribute.jpg

Build the complete URL in view “MapView” htm page using page attribute ‘State’ and then pass URL to

IFrame tag.

MapViewhtm.jpg

After adding views to overview page and adding the overview page to window , the below snapshot shows

the final Runtime Repository.

RuntimeRepository.jpg

Adjust overview page configuration to show both assignment blocks (StateDet, MapView)

OverviewPageConfig.jpg

Adjust view ‘StateDet’  configuration to show state field.

StateDetConfig.jpg

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply