Entering content frame

Procedure documentation Extend the Context of the GeoServiceView Locate the document in its SAP Library structure

The context already contains the context attributes for the start and destination addresses. You now want to add the context attributes and context nodes essential for GeoService applications to the GeoServiceView context.

Procedure

In the View Designer, switch to the Context tab and extend the existing context structure as shown in the figure below:

This graphic is explained in the accompanying text

Make the following settings for the properties of each context element:

Context Element

Type

Properties

Value

This graphic is explained in the accompanying text DestinationAddress

Value node

 

 

This graphic is explained in the accompanying text geoPos

Value attribute

type

com.sap.tc.webdynpro.clientserver.uielib. graphics.api.WDGeoPosition

This graphic is explained in the accompanying text GeoData

Value node

cardinality

0..n

      This graphic is explained in the accompanying text geoObject

Value attribute

type

com.sap.ide.webdynpro.

uielementdefinitions.GeoObject

This graphic is explained in the accompanying text RouteInformation

Value node

cardinality

1..1

      This graphic is explained in the accompanying text Distance

Value attribute

type

double

This graphic is explained in the accompanying text Duration

Value attribute

type

time

This graphic is explained in the accompanying text StartAddress

Value node

 

 

This graphic is explained in the accompanying text geoPos

Value attribute

type

com.sap.tc.webdynpro.clientserver.uielib.graphics.api.WDGeoPosition

This graphic is explained in the accompanying text   mapBorder

Value attribute

type

com.sap.tc.webdynpro.clientserver.uielib.graphics.api.WDGeoBorder

 

Assign a Java Native Type as the Data Type to a Value Attribute

The values of the value attributes geoPos and mapBorder require a Java Native type as the data type. Proceed as follows:

...

       1.      To open the dialog box for selecting the Java Native Type data type, choose This graphic is explained in the accompanying text (in the value column for the property type).

       2.      Select the radio button Java Native Type and choose Browse… Another window appears.

       3.      In the input field for value attribute geoPos enter WDGeoPosition (or, as value for value attribute mapBorder enter WDGeoBorder, respectively). You can now select the WDGeoPosition in the bottom list. Choose OK to confirm.

       4.      Choose Finish to confirm.  This graphic is explained in the accompanying text

       5.       

Assign a Simple Type as the Data Type to a Value Attribute

The value of the value attribute geoObject requires a Simple Type as the data type. Proceed as follows:

...

       1.      Use This graphic is explained in the accompanying text  (in the value column for the property type) to open the dialog box for selecting the data type Simple Type.

       2.      Select the DDIC Simple Type radio button and open the node DtDictionary – com.sap.ide.webdynpro.uielementdefinitions. It contains all data types that refer to specific UI element properties.

       3.      Select the data type GeoObject and choose Finish to exit the dialog box.

Result

You extended the context of the Web Dynpro application ”Using Geo Services”.

This graphic is explained in the accompanying textNext step:

Extend the Layout of the GeoServiceView

  

  

 

Leaving content frame