Quantcast
Channel: SCN : Blog List - Customer Relationship Management (SAP CRM)
Viewing all articles
Browse latest Browse all 229

SAP CRM Web UI - How to integrate a URL into an assignment block

$
0
0

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


Viewing all articles
Browse latest Browse all 229

Trending Articles



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