<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Burak BÖLEK - Blog &#187; Maximo User Interface</title>
	<atom:link href="http://www.burakbolek.com/blog/category/maximoui/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.burakbolek.com/blog</link>
	<description>Burak BÖLEK</description>
	<lastBuildDate>Fri, 03 Sep 2010 06:50:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Show Workorder on Google Map</title>
		<link>http://www.burakbolek.com/blog/2009/03/show-workorder-on-google-map/</link>
		<comments>http://www.burakbolek.com/blog/2009/03/show-workorder-on-google-map/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 07:06:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Backend Development]]></category>
		<category><![CDATA[Maximo Tips]]></category>
		<category><![CDATA[Maximo User Interface]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[Maximo Connections]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=92</guid>
		<description><![CDATA[Hello; If you store coordinates in your workorders or location etc. you can show the places on google maps in Maximo. I implemented this on Maximo 6. There are many steps to accomplish this task.. I will tell you about it step by step&#8230; 1-You have to get a Google Map api key from this [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_100" class="wp-caption alignleft" style="width: 310px"><img src="http://www.burakbolek.com/blog/wp-content/uploads/2009/03/google-maps-on-workorder-300x187.jpg" alt="Google Map in Workorder Tracking" title="google-maps-on-workorder" width="300" height="187" class="size-medium wp-image-100" /><p class="wp-caption-text">Google Map in Workorder Tracking</p></div>
<p>Hello;</p>
<p>If you store coordinates in your workorders or location etc. you can show the places on google maps in Maximo. I implemented this on Maximo 6. There are many steps to accomplish this task.. I will tell you about it step by step&#8230;<br />
1-You have to get a Google Map api key from this address: http://code.google.com/apis/maps/signup.html .. Write your maximo server address to the textbox and click Generate Key.. Note your key.. We will use it later&#8230;<br />
2-Create iframe control: Go to %MAXIMOROOT%\applications\maximo\maximouiweb\webmodule\webclient\controls and create a folder named: iframe. We will send data to google map script from this control.  I assume that longitude and latitude are stored in Workorder object as Longitude and Latitude attributes&#8230;<br />
Create a jsp file named <strong>control.jsp</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #339933;">&lt;%</span>@ include  file<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;../../common/controlheader.jsp&quot;</span> <span style="color: #339933;">%&gt;</span>
	<span style="color: #339933;">&lt;%--</span> 
		PROPERTY	GLOBAL		VALUES
		id		<span style="color: #000066; font-weight: bold;">true</span>		...
		<span style="color: #006633;">height</span> 		<span style="color: #000066; font-weight: bold;">false</span> 		###
		width		<span style="color: #000066; font-weight: bold;">false</span> 		###
		url 		<span style="color: #000066; font-weight: bold;">false</span>		...
	<span style="color: #339933;">--%&gt;</span>
	<span style="color: #339933;">&lt;</span>mro<span style="color: #339933;">:</span>handleevent eventtype<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;loadinit&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>mro<span style="color: #339933;">:</span>loadglobalproperties <span style="color: #339933;">/&gt;</span>
		<span style="color: #339933;">&lt;%</span>
		<span style="color: #000066; font-weight: bold;">int</span> height <span style="color: #339933;">=</span> controlProperties.<span style="color: #006633;">getInt</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;height&quot;</span>, <span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">int</span> width <span style="color: #339933;">=</span> controlProperties.<span style="color: #006633;">getInt</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;width&quot;</span>, <span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">String</span> url <span style="color: #339933;">=</span> controlProperties.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;src&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #339933;">%&gt;</span>
	<span style="color: #339933;">&lt;/</span>mro<span style="color: #339933;">:</span>handleevent<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>mro<span style="color: #339933;">:</span>handleevent eventtype<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;render&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;%</span>
		<span style="color: #000066; font-weight: bold;">int</span> height <span style="color: #339933;">=</span> controlProperties.<span style="color: #006633;">getInt</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;height&quot;</span>, <span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">int</span> width <span style="color: #339933;">=</span> controlProperties.<span style="color: #006633;">getInt</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;width&quot;</span>, <span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">String</span> url <span style="color: #339933;">=</span> controlProperties.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;src&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">String</span> apptitle <span style="color: #339933;">=</span> sessionContext.<span style="color: #006633;">getCurrentApp</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getAppTitle</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		psdi.<span style="color: #006633;">util</span>.<span style="color: #006633;">MXSession</span> mxs<span style="color: #339933;">=</span>sessionContext.<span style="color: #006633;">getMXSession</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		psdi.<span style="color: #006633;">mbo</span>.<span style="color: #006633;">MboSetRemote</span> woSet<span style="color: #339933;">=</span>mxs.<span style="color: #006633;">getMboSet</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;WORKORDER&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		woSet.<span style="color: #006633;">setWhere</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;WOCLASS in ('WORKORDER', 'ACTIVITY') and istask=0 and boylam is not null and enlem is not null&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;WO Count: &quot;</span><span style="color: #339933;">+</span>woSet.<span style="color: #006633;">count</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		java.<span style="color: #006633;">util</span>.<span style="color: #003399;">ArrayList</span> coordinateList <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> java.<span style="color: #006633;">util</span>.<span style="color: #003399;">ArrayList</span><span style="color: #009900;">&#40;</span>woSet.<span style="color: #006633;">count</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;</span>woSet.<span style="color: #006633;">count</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		java.<span style="color: #006633;">util</span>.<span style="color: #003399;">ArrayList</span> coordinate<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> java.<span style="color: #006633;">util</span>.<span style="color: #003399;">ArrayList</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		psdi.<span style="color: #006633;">mbo</span>.<span style="color: #006633;">MboRemote</span> wo<span style="color: #339933;">=</span>woSet.<span style="color: #006633;">getMbo</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		coordinate.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span>,wo.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;WONUM&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		coordinate.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span>,wo.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DESCRIPTION&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		coordinate.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span>,wo.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;STATUS&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		coordinate.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span>,wo.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;LONGITUDE&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		coordinate.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span>,wo.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;LATITUDE&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		coordinateList.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>coordinate<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #009900;">&#125;</span>
		session.<span style="color: #006633;">setAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;CoordinatesList&quot;</span>,coordinateList<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #339933;">%&gt;</span>
		<span style="color: #339933;">&lt;</span>iframe src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;%=url%&gt;&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;%=height%&gt;&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;%=width%&gt;&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>iframe<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>mro<span style="color: #339933;">:</span>handleevent<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
<span style="color: #339933;">&lt;%</span>@ include file<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;../../common/controlfooter.jsp&quot;</span> <span style="color: #339933;">%&gt;</span></pre></td></tr></table></div>

<p>Here we defined iframe control and we added the workorder information to the CoordinatesList variable of session.</p>
<p>Now create another file called <strong>allwoongmaps.jsp</strong> in the same folder..</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
	    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
	&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot;&gt;
	  &lt;head&gt;
	    &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;
	    &lt;title&gt;&lt;/title&gt;
	    &lt;script src=&quot;http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=&lt;strong&gt;KEY&lt;/strong&gt;&quot;
	            type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
	    <span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
	    <span style="color: #003366; font-weight: bold;">function</span> initialize<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	      <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>GBrowserIsCompatible<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	        <span style="color: #003366; font-weight: bold;">var</span> map <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> GMap2<span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;map_canvas&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			 GEvent.<span style="color: #660066;">addListener</span><span style="color: #009900;">&#40;</span>map<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;click&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>overlay<span style="color: #339933;">,</span> point<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			 <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>point<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			     map.<span style="color: #660066;">addOverlay</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> GMarker<span style="color: #009900;">&#40;</span>point<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			     <span style="color: #003366; font-weight: bold;">var</span> msg <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Latitude: &quot;</span><span style="color: #339933;">+</span>point.<span style="color: #660066;">lat</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&lt;br&gt;&quot;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;Longitude: &quot;</span><span style="color: #339933;">+</span>point.<span style="color: #660066;">lng</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			     document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;mypoint&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> msg<span style="color: #339933;">;</span>
			 <span style="color: #009900;">&#125;</span>  <span style="color: #006600; font-style: italic;">//close if(point)...</span>
&nbsp;
&nbsp;
		   <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   <span style="color: #006600; font-style: italic;">//close GEvent...</span>
&nbsp;
			<span style="color: #003366; font-weight: bold;">var</span> yellowIcon <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> GIcon<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	yellowIcon.<span style="color: #660066;">image</span> <span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://esa.ilmari.googlepages.com/markeryellow.png&quot;</span><span style="color: #339933;">;</span>
	yellowIcon.<span style="color: #660066;">iconSize</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> GSize<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">20</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">34</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	yellowIcon.<span style="color: #660066;">iconAnchor</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> GPoint<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">9</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">34</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> turqIcon <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> GIcon<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	turqIcon.<span style="color: #660066;">image</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://www.google.com/uds/samples/places/temp_marker.png&quot;</span><span style="color: #339933;">;</span>
	turqIcon.<span style="color: #660066;">iconSize</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> GSize<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">20</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">34</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	turqIcon.<span style="color: #660066;">iconAnchor</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> GPoint<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">9</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">34</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
&nbsp;
	 <span style="color: #339933;">&lt;%</span>
	java.<span style="color: #660066;">util</span>.<span style="color: #660066;">ArrayList</span> CoordinateList<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>java.<span style="color: #660066;">util</span>.<span style="color: #660066;">ArrayList</span><span style="color: #009900;">&#41;</span> session.<span style="color: #660066;">getAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;CoordinatesList&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>int i<span style="color: #339933;">=</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;</span>CoordinateList.<span style="color: #660066;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			java.<span style="color: #660066;">util</span>.<span style="color: #660066;">ArrayList</span> Coordinate<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>java.<span style="color: #660066;">util</span>.<span style="color: #660066;">ArrayList</span><span style="color: #009900;">&#41;</span>CoordinateList.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			String wonum<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>String<span style="color: #009900;">&#41;</span>Coordinate.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			String description<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>String<span style="color: #009900;">&#41;</span>Coordinate.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			String <span style="color: #000066;">status</span><span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>String<span style="color: #009900;">&#41;</span>Coordinate.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			String enlem<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>String<span style="color: #009900;">&#41;</span>Coordinate.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			String boylam<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>String<span style="color: #009900;">&#41;</span>Coordinate.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			double boydouble<span style="color: #339933;">=</span>Double.<span style="color: #660066;">parseDouble</span><span style="color: #009900;">&#40;</span>boylam<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			double enlemdouble<span style="color: #339933;">=</span>Double.<span style="color: #660066;">parseDouble</span><span style="color: #009900;">&#40;</span>enlem<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
			String marker<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;marker&quot;</span><span style="color: #339933;">+</span>i<span style="color: #339933;">;</span>
			String point<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;point&quot;</span><span style="color: #339933;">+</span>i<span style="color: #339933;">;</span>
			String icon<span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>wonum.<span style="color: #660066;">equalsIgnoreCase</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;1000&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			icon<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;yellowIcon&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">else</span> icon<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;turqIcon&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">==</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #339933;">%&gt;</span>
	        map.<span style="color: #660066;">setUIToDefault</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			map.<span style="color: #660066;">setCenter</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> GLatLng<span style="color: #009900;">&#40;</span><span style="color: #339933;">&lt;%=</span>boydouble<span style="color: #339933;">%&gt;,&lt;%=</span>enlemdouble<span style="color: #339933;">%&gt;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #339933;">&lt;%</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">%&gt;</span>
	          <span style="color: #003366; font-weight: bold;">var</span> <span style="color: #339933;">&lt;%=</span>point<span style="color: #339933;">%&gt;</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> GLatLng<span style="color: #009900;">&#40;</span><span style="color: #339933;">&lt;%=</span>boydouble<span style="color: #339933;">%&gt;,&lt;%=</span>enlemdouble<span style="color: #339933;">%&gt;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			  <span style="color: #003366; font-weight: bold;">var</span> <span style="color: #339933;">&lt;%=</span>marker<span style="color: #339933;">%&gt;=</span><span style="color: #003366; font-weight: bold;">new</span> GMarker<span style="color: #009900;">&#40;</span><span style="color: #339933;">&lt;%=</span>point<span style="color: #339933;">%&gt;,</span><span style="color: #009900;">&#123;</span>icon<span style="color: #339933;">:&lt;%=</span>icon<span style="color: #339933;">%&gt;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	          map.<span style="color: #660066;">addOverlay</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">&lt;%=</span>marker<span style="color: #339933;">%&gt;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	     <span style="color: #339933;">&lt;%</span> 
	    <span style="color: #009900;">&#125;</span><span style="color: #339933;">%&gt;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	    <span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
	  &lt;/head&gt;
&nbsp;
	  &lt;body onload=&quot;initialize()&quot; onunload=&quot;GUnload()&quot;&gt;
	  &lt;div id=&quot;mypoint&quot;&gt;&lt;/div&gt;
	    &lt;div id=&quot;map_canvas&quot; style=&quot;width: 470px; height: 200px&quot;&gt;&lt;/div&gt;
&nbsp;
	  &lt;/body&gt;
	&lt;/html&gt;</pre></td></tr></table></div>

<p>On line 7 we add our own Google api key that we noted before&#8230; and we create our own map from longitude and latitude information on Workorder&#8230;<br />
Now open Application Designer and export your application as xml file.Save it and back it up. then add this line to whereever you want.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;iframe</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://localhost:7001/maximo/webclient/controls/iframe/allwoongmaps.jsp&quot;</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;200&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;500&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;genid_headera_4_child_1&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>

<p>localhost should be your servers ip&#8230;;<br />
Save it and import from application designer.. Rebuild and redeploy&#8230; You&#8217;re going to see map like this&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2009/03/show-workorder-on-google-map/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Set Inbox Order</title>
		<link>http://www.burakbolek.com/blog/2009/03/set-inbox-order/</link>
		<comments>http://www.burakbolek.com/blog/2009/03/set-inbox-order/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 11:12:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>
		<category><![CDATA[Maximo User Interface]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=60</guid>
		<description><![CDATA[Hello; Our clients always have problems with their inboxes. One of the major problem is that the inbox is not sorted. To sort inbox in Maximo we have to modify a jsp file. Here is how it is done.. This is done for Maximo 6.2.2 First we open %MAXIMOROOT%\applications\maximo\maximouiweb\webmodule\webclient\controls\startcenter\portlets\inbxconfig.jsp file. Take a backup of this [...]]]></description>
			<content:encoded><![CDATA[<p>Hello;<br />
Our clients always have problems with their inboxes. One of the major problem is that the inbox is not sorted. To sort inbox in Maximo we have to modify a jsp file. Here is how it is done.. <strong>This is done for Maximo 6.2.2</strong><br />
First we open %MAXIMOROOT%\applications\maximo\maximouiweb\webmodule\webclient\controls\startcenter\portlets\inbxconfig.jsp file. Take a backup of this file&#8230;</p>
<p>Then we should find</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;">else
		{
			portletBean	= (InboxPortletBean)sessionContext.getCurrentApp().get(portletId);
		}</pre></td></tr></table></div>

<p>After these lines add these&#8230;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="jsp" style="font-family:monospace;">boolean allowsort = true;
		if (portletBean.isPropertyDefined(&quot;allowsort&quot;) &amp;&amp; portletBean.getPortletInfoValue(&quot;allowsort&quot;) != null )
		{
		 if ( ((String)portletBean.getPortletInfoValue(&quot;allowsort&quot;)).equals(&quot;true&quot;))
		 {
		  allowsort = false;
		 } 
		}
&nbsp;
		if (allowsort)
		{
		 portletBean.setPortletInfoValue(&quot;sortattribute&quot;,&quot;startdate&quot;);
		 portletBean.setPortletInfoValue(&quot;sorttype&quot;,&quot;desc&quot;);
		}</pre></td></tr></table></div>

<p>On line 12,13 we ordered inbox to startdate descending&#8230; Then save the file&#8230; Rebuild and redeploy..</p>
<p>Have a good day&#8230;</p>
<p>PS: Test before taking it to the live system&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2009/03/set-inbox-order/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
