In the
Browser Client,
the current location of any Business Object can be set automatically, through
location services, or manually, so that you know its location and can access it
when necessary.
To set the location of any Business
Object:
- In
CSM Administrator,
create a new blueprint or open an existing
blueprint.
- Select a Business Object, such as
Configuration Item > Computer. You can add
the Location attribute to any Business Object.
- In the right pane, under Structure, select
Edit Business Object.
- Click
Bus Ob Properties.
- Select
Advanced, then select the down arrow ()
next to
General attributes.
- In the Attribute field, enter
LocationAware.
The Value field can remain
(null).
This makes the Business Bbject location-aware.
- Click
OK.
- Add the Lattitude, Longitude, and Altitude attributes to any
single Field in your Business Object:
- In the Business Object Editor, select any Field in the list,
then click
Field Properties.
- Select
Advanced.
- Select the down arrow ()
next to
General attributes.
- In the Attribute field, enter
LocLatitude.
The location data will be stored in the Value field.
- Repeat steps a - d for Longitude
(
LocLongitude
) and Altitude (LocAltitude
).
Note: Altitude
(LocAltitude
) is only supported on mobile phones and tablets.
Optional: You can also edit the Business
Objects Form to add controls for these fields. For more information, see
Forms.
Expressions
Latitude and Longitude Fields can also be added to Expressions or
One-Step Actions so you can use them in mapping software such as Google Maps.
Use a text Expression on a link label or a button associated with an Action and
use the documented URL. For example, if you use Google Maps, the URL will be
something like
https://www.google.com/maps/search/?api=1&lat,long
.
Add the Fields for
lat,long
into your Expression or One-Step Action.