<?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 Tips</title>
	<atom:link href="http://www.burakbolek.com/blog/category/maximotips/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>Turkish Language Support for TSRM</title>
		<link>http://www.burakbolek.com/blog/2010/09/turkish-language-support-for-tsrm/</link>
		<comments>http://www.burakbolek.com/blog/2010/09/turkish-language-support-for-tsrm/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 06:50:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=137</guid>
		<description><![CDATA[Finally Turkish language is officially supported by IBM. You can install Turkish pack with 7.1.1.7 MBS. Thanks IBM for supporting Turkish.. I will finally able to use Maximo in my own language..]]></description>
			<content:encoded><![CDATA[<p>Finally Turkish language is officially supported by IBM. You can install Turkish pack with 7.1.1.7 MBS.</p>
<p>Thanks IBM for supporting Turkish.. I will finally able to use Maximo in my own language..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2010/09/turkish-language-support-for-tsrm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Link for ResultSet</title>
		<link>http://www.burakbolek.com/blog/2010/07/link-for-resultset/</link>
		<comments>http://www.burakbolek.com/blog/2010/07/link-for-resultset/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 08:58:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=135</guid>
		<description><![CDATA[Hello; It&#8217;s been a while since I wrote . I am a little busier then ever.. Today I learnt something new that I should share with you.. You can create links to the resultset in Maximo.. Here is an example: http://maximo1/maximo/ui/?event=loadapp&#038;value=wotrack&#038;additionalevent=sqlwhere&#038;additionaleventvalue=reportedby in (&#8216;MAXADMIN&#8217;) Here: Workorder Tracking (wotrack) will be loaded with SQL (reportedby in (&#8216;MAXADMIN&#8217;)) [...]]]></description>
			<content:encoded><![CDATA[<p>Hello;</p>
<p>It&#8217;s been a while since I wrote <img src='http://www.burakbolek.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> . I am a little busier then ever.. Today I learnt something new that I should share with you..</p>
<p>You can create links to the resultset in Maximo.. Here is an example:</p>
<p><strong>http://maximo1/maximo/ui/?event=loadapp&#038;value=wotrack&#038;additionalevent=sqlwhere&#038;additionaleventvalue=reportedby in (&#8216;MAXADMIN&#8217;)</strong></p>
<p>Here: Workorder Tracking (wotrack) will be loaded with SQL (reportedby in (&#8216;MAXADMIN&#8217;))</p>
<p>This will give you the all workorders which are reported by MAXADMIN..</p>
<p>You can change wotrack with any application and sql sentence with whatever you want&#8230;</p>
<p>Have a good day..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2010/07/link-for-resultset/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New IBM Resources</title>
		<link>http://www.burakbolek.com/blog/2010/01/new-ibm-resources/</link>
		<comments>http://www.burakbolek.com/blog/2010/01/new-ibm-resources/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 11:49:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=133</guid>
		<description><![CDATA[Hello; As I noticed yesterday IBM published some new materials for Maximo 7.x Here is the development guide for Maximo 7: http://www-01.ibm.com/software/brandcatalog/portal/opal/details?catalog.label=1TW10MA2K Here is the javadocs for Maximo 7.1.1.5 (Different than 7.1.1.1) http://www-01.ibm.com/software/brandcatalog/portal/opal/details?catalog.label=1TW10MA1Z Have a good day&#8230;]]></description>
			<content:encoded><![CDATA[<p>Hello;</p>
<p>As I noticed yesterday IBM published some new materials for Maximo 7.x<br />
Here is the development guide for Maximo 7:<br />
<a href="http://www-01.ibm.com/software/brandcatalog/portal/opal/details?catalog.label=1TW10MA2K">http://www-01.ibm.com/software/brandcatalog/portal/opal/details?catalog.label=1TW10MA2K</a></p>
<p>Here is the javadocs for Maximo 7.1.1.5 (Different than 7.1.1.1)<br />
<a href="http://www-01.ibm.com/software/brandcatalog/portal/opal/details?catalog.label=1TW10MA1Z">http://www-01.ibm.com/software/brandcatalog/portal/opal/details?catalog.label=1TW10MA1Z</a></p>
<p>Have a good day&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2010/01/new-ibm-resources/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Stop Workflow of a Closed Record</title>
		<link>http://www.burakbolek.com/blog/2009/12/stop-workflow-of-a-closed-record/</link>
		<comments>http://www.burakbolek.com/blog/2009/12/stop-workflow-of-a-closed-record/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 17:01:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=127</guid>
		<description><![CDATA[Hello; Many people have records those are closed automatically via automation tools like Omnibus, or escalations. And these records remain in workflow even they are closed. So there is a little piece of code which can resolve this problems.. First go to the database configuration and create a relationship called &#8220;ACTIVEWORKFLOW&#8221; which can get you [...]]]></description>
			<content:encoded><![CDATA[<p>Hello;</p>
<p>Many people have records those are closed automatically via automation tools like Omnibus, or escalations. And these records remain in workflow even they are closed. So there is a little piece of code which can resolve this problems..<br />
First go to the database configuration and create a relationship called &#8220;ACTIVEWORKFLOW&#8221; which can get you active workflows on the record. An example of ticket should be like this:<br />
<strong>Name: ACTIVEWORKFLOW<br />
Child Object: WFINSTANCE<br />
Where Clause: ownerid=:ticketuid and ownertable=:CLASS and active=1<br />
Remarks: Gets the related active workflow instances<br />
</strong><br />
Now create the class and rebuild redeploy maximo.ear..<br />
Now all you have to do is to create an escalation which runs every 10 minutes.(Or whatever you want) Make sure you have stated closed records in where clause.. (Write historyflag=1 for workorder or ticket objects)<br />
And make it run&#8230; </p>
<p>Note: You can run this code for every object. Because the code is written for Mbo Object.</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
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">custom.common.action</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.rmi.RemoteException</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.mbo.MboRemote</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.util.MXException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.workflow.WFInstanceRemote</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.workflow.WFInstanceSetRemote</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> stopWFonClosedRecords <span style="color: #000000; font-weight: bold;">implements</span>
psdi.<span style="color: #006633;">common</span>.<span style="color: #006633;">action</span>.<span style="color: #006633;">ActionCustomClass</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> applyCustomAction<span style="color: #009900;">&#40;</span>MboRemote mbo, <span style="color: #003399;">Object</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> arg1<span style="color: #009900;">&#41;</span>
<span style="color: #000000; font-weight: bold;">throws</span> MXException, <span style="color: #003399;">RemoteException</span> <span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">// TODO Auto-generated method stub</span>
WFInstanceSetRemote wfInstanceSet<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>WFInstanceSetRemote<span style="color: #009900;">&#41;</span> mbo.<span style="color: #006633;">getMboSet</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;ACTIVEWORKFLOW&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>wfInstanceSet.<span style="color: #006633;">isEmpty</span><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: #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>wfInstanceSet.<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>
WFInstanceRemote wfInst<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>WFInstanceRemote<span style="color: #009900;">&#41;</span> wfInstanceSet.<span style="color: #006633;">getMbo</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
wfInst.<span style="color: #006633;">stopWorkflow</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Auto Stop&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">// Memo of the transaction...</span>
wfInstanceSet.<span style="color: #006633;">save</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2009/12/stop-workflow-of-a-closed-record/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Route workflow from a table row</title>
		<link>http://www.burakbolek.com/blog/2009/12/route-workflow-from-a-table-row/</link>
		<comments>http://www.burakbolek.com/blog/2009/12/route-workflow-from-a-table-row/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 16:46:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=124</guid>
		<description><![CDATA[Hello; Sometimes you need to start workflow of child records from the parent record&#8230; For example you have a problem record and there are 5 child activities. Normally you have to start workflow by going to the related record. With this piece of code you can start workflow from the Activities table of the parent [...]]]></description>
			<content:encoded><![CDATA[<p>Hello;</p>
<p>Sometimes you need to start workflow of child records from the parent record&#8230; For example you have a problem record and there are 5 child activities. Normally you have to start workflow by going to the related record. With this piece of code you can start workflow from the Activities table of the parent problem record.<br />
First create a ROUTEWF Button in the table. To do this drop a new tablecol to the table. And select Event as type. Select a route image. And enter ROUTEWF as event name.<br />
Then change the bean class name to your class which you are creating now. (Be careful; I extended Problem activities table bean class here, you should extend whatever you need.)<br />
Write your workflow name to the <strong>WFNAME</strong> in the code.</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
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">custom.beans.app.problem</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.ibm.tsd.pmcom.webclient.beans.PmActivitiesBean</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.app.workorder.WOActivityRemote</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.server.MXServer</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.webclient.system.controller.SessionContext</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.workflow.WorkFlowServiceRemote</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> problemActivitiesBean <span style="color: #000000; font-weight: bold;">extends</span> PmActivitiesBean
<span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">int</span> ROUTEWF<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
MXServer mxs<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">try</span>
<span style="color: #009900;">&#123;</span>
mxs <span style="color: #339933;">=</span> MXServer.<span style="color: #006633;">getMXServer</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
WorkFlowServiceRemote wsrmt <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>WorkFlowServiceRemote<span style="color: #009900;">&#41;</span>mxs.<span style="color: #006633;">lookup</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;WORKFLOW&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
WOActivityRemote mbo <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>WOActivityRemote<span style="color: #009900;">&#41;</span>getMbo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
wsrmt.<span style="color: #006633;">initiateWorkflow</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;WFNAME&quot;</span>, mbo<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
fireStructureChangedEvent<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
refreshTable<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">sessionContext</span>.<span style="color: #006633;">queueRefreshEvent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Exception</span> e<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
e.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">return</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>You&#8217;re good to go now;</p>
<p>Have a good day&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2009/12/route-workflow-from-a-table-row/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Consume Web Services with VB.Net 2005</title>
		<link>http://www.burakbolek.com/blog/2009/11/consume-web-services-with-vb-net-2005/</link>
		<comments>http://www.burakbolek.com/blog/2009/11/consume-web-services-with-vb-net-2005/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 07:45:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>
		<category><![CDATA[Maximo 7]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=121</guid>
		<description><![CDATA[Hello; Here is an example of consuming web services with VB 2005.. IT creates a new SR with authentication. 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 Dim [...]]]></description>
			<content:encoded><![CDATA[<p>Hello;</p>
<p>Here is an example of consuming web services with VB 2005.. IT creates a new SR with authentication.</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
</pre></td><td class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #0600FF;">Dim</span> maximoSvc <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> Maximo.<span style="color: #0000FF;">MXSR</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #0600FF;">Dim</span> maximoSRArr<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> Maximo.<span style="color: #0000FF;">MXSR_SRType</span>
        <span style="color: #0600FF;">Dim</span> maximoSR <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> Maximo.<span style="color: #0000FF;">MXSR_SRType</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #0600FF;">Dim</span> changeDate <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> Maximo.<span style="color: #0000FF;">MXDateTimeType</span>
        <span style="color: #0600FF;">Dim</span> DESCRIPTION_LONGDESCRIPTION <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> Maximo.<span style="color: #0000FF;">MXStringType</span>
        <span style="color: #0600FF;">Dim</span> REPORTEDBY <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> Maximo.<span style="color: #0000FF;">MXStringType</span>
        <span style="color: #0600FF;">Dim</span> IMPACT <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> Maximo.<span style="color: #0000FF;">MXLongType</span>
        <span style="color: #0600FF;">Dim</span> reply<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> Maximo.<span style="color: #0000FF;">SRKeyType</span>
        <span style="color: #0600FF;">Dim</span> cred <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> System.<span style="color: #0000FF;">Net</span>.<span style="color: #0000FF;">NetworkCredential</span>
&nbsp;
        <span style="color: #0600FF;">Dim</span> actLabCost <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> Maximo.<span style="color: #0000FF;">MXDoubleType</span>
&nbsp;
        cred.<span style="color: #0000FF;">UserName</span> <span style="color: #008000;">=</span> <span style="color: #808080;">&quot;maxadmin&quot;</span>
        cred.<span style="color: #0000FF;">Password</span> <span style="color: #008000;">=</span> <span style="color: #808080;">&quot;maxadmin&quot;</span>
        maximoSvc.<span style="color: #0000FF;">Credentials</span> <span style="color: #008000;">=</span> cred
&nbsp;
&nbsp;
        DESCRIPTION_LONGDESCRIPTION.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> <span style="color: #808080;">&quot;longdesc&quot;</span>
        REPORTEDBY.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> <span style="color: #808080;">&quot;USER&quot;</span>
        IMPACT.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">4</span>
&nbsp;
&nbsp;
        maximoSR.<span style="color: #0000FF;">DESCRIPTION_LONGDESCRIPTION</span> <span style="color: #008000;">=</span> DESCRIPTION_LONGDESCRIPTION
        maximoSR.<span style="color: #0000FF;">REPORTEDBY</span> <span style="color: #008000;">=</span> REPORTEDBY
        maximoSR.<span style="color: #0000FF;">AFFECTEDPERSON</span> <span style="color: #008000;">=</span> REPORTEDBY
        maximoSR.<span style="color: #0000FF;">IMPACT</span> <span style="color: #008000;">=</span> IMPACT
        changeDate.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> System.<span style="color: #0000FF;">DateTime</span>.<span style="color: #0600FF;">Now</span>
        maximoSR.<span style="color: #0000FF;">CHANGEDATE</span> <span style="color: #008000;">=</span> changeDate
        maximoSR.<span style="color: #0000FF;">URGENCY</span> <span style="color: #008000;">=</span> IMPACT
        actLabCost.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span>
        maximoSR.<span style="color: #0000FF;">ACTLABCOST</span> <span style="color: #008000;">=</span> actLabCost
        maximoSRArr<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">=</span> maximoSR
        reply <span style="color: #008000;">=</span> maximoSvc.<span style="color: #0000FF;">CreateMXSR</span><span style="color: #000000;">&#40;</span>maximoSRArr, System.<span style="color: #0000FF;">DateTime</span>.<span style="color: #0600FF;">Now</span>, <span style="color: #0600FF;">True</span>, <span style="color: #808080;">&quot;&quot;</span>, <span style="color: #808080;">&quot;EN&quot;</span>, <span style="color: #808080;">&quot;11111&quot;</span>, <span style="color: #808080;">&quot;7.0&quot;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #0600FF;">Dim</span> MaximoTicketid <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>
        MaximoTicketid <span style="color: #008000;">=</span> reply<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">TICKETID</span>.<span style="color: #0000FF;">Value</span></pre></td></tr></table></div>

<p>Have a good day&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2009/11/consume-web-services-with-vb-net-2005/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flow Action in Workorder</title>
		<link>http://www.burakbolek.com/blog/2009/10/flow-action-in-workorder/</link>
		<comments>http://www.burakbolek.com/blog/2009/10/flow-action-in-workorder/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 05:57:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>
		<category><![CDATA[Maximo 7]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/2009/10/flow-action-in-workorder/</guid>
		<description><![CDATA[There is a new feature called Flow action in Maximo 7.1 It lets you to change status of activities,workorders and task according to the related records.. Here is the detailed explanation of this feature: http://www-01.ibm.com/support/docview.wss?uid=swg21327119&#38;myns=swgtiv&#38;mynp=OCSSWK4A&#38;mynp=OCSSLKT6&#38;mync=R Have a good day..]]></description>
			<content:encoded><![CDATA[<p>There is a new feature called Flow action in Maximo 7.1<br />
It lets you to change status of activities,workorders and task according to the related records..</p>
<p>Here is the detailed explanation of this feature:<br />
<a class="aligncenter" title="Workorder Flow Action Explanation" href="http://www-01.ibm.com/support/docview.wss?uid=swg21327119&amp;myns=swgtiv&amp;mynp=OCSSWK4A&amp;mynp=OCSSLKT6&amp;mync=R" target="_blank"> http://www-01.ibm.com/support/docview.wss?uid=swg21327119&amp;myns=swgtiv&amp;mynp=OCSSWK4A&amp;mynp=OCSSLKT6&amp;mync=R</a></p>
<p>Have a good day..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2009/10/flow-action-in-workorder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Search Functions in Maximo</title>
		<link>http://www.burakbolek.com/blog/2009/06/search-functions-in-maximo/</link>
		<comments>http://www.burakbolek.com/blog/2009/06/search-functions-in-maximo/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 07:27:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=110</guid>
		<description><![CDATA[Hello; After a long time I can write again&#8230;Meanwhile I changed my job. I am not a technical consultant anymore. I started to work in IS BANK (the biggest bank of Turkiye) as IBM CCMDB Developer. Now I prepared a flash to show you about maximo search functions. Most of you already know these stuff. [...]]]></description>
			<content:encoded><![CDATA[<p>Hello;</p>
<p>After a long time I can write again&#8230;Meanwhile I changed my job. I am not a technical consultant anymore. I started to work in IS BANK (the biggest bank of Turkiye) as IBM CCMDB Developer. Now I prepared a flash to show you about maximo search functions. Most of you already know these stuff. But I think it will be good for someone. Hope you like it&#8230; If you like this kind of flash movies I will prepare more..</p>
<p>You can reach flash from <a title="Maximo Search Functions" href="http://www.burakbolek.com/blog/wp-content/uploads/2009/06/Maximo_Search_Functions_training/Maximo_Search_Functions_training.htm" target="_blank"><span style="color: #ff0000;">here</span></a></p>
<p>Have a good day..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2009/06/search-functions-in-maximo/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<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 new Fields Null on Duplicate</title>
		<link>http://www.burakbolek.com/blog/2009/03/set-new-fields-null-on-duplicate/</link>
		<comments>http://www.burakbolek.com/blog/2009/03/set-new-fields-null-on-duplicate/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 11:09:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=73</guid>
		<description><![CDATA[Hello; Sometimes you add new fields to the maximo mbo&#8217;s. And when you duplicate the mbo new fields are filled automatically&#8230; You should customize java to prevent this.. I will use ITEM object in this example&#8230;.We are extending psdi.webclient.beans.item.ItemAppBean class in bean classes. Then we put this class into %MAXIMOROOT%\applications\maximo\maximouiweb\webmodule\WEB-INF\classes\com\item 1 2 3 4 5 [...]]]></description>
			<content:encoded><![CDATA[<p>Hello;</p>
<p>Sometimes you add new fields to the maximo mbo&#8217;s. And when you duplicate the mbo new fields are filled automatically&#8230; You should customize java to prevent this.. I will use ITEM object in this example&#8230;.We are extending <strong>psdi.webclient.beans.item.ItemAppBean</strong> class in bean classes. Then we put this class into <strong>%MAXIMOROOT%\applications\maximo\maximouiweb\webmodule\WEB-INF\classes\com\item</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
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.item</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.rmi.RemoteException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.util.MXException</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> newItem <span style="color: #000000; font-weight: bold;">extends</span> psdi.<span style="color: #006633;">webclient</span>.<span style="color: #006633;">beans</span>.<span style="color: #006633;">item</span>.<span style="color: #006633;">ItemAppBean</span>
<span style="color: #009900;">&#123;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">public</span> newItem<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#123;</span>
            <span style="color: #009900;">&#125;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">int</span> DUPLICATE<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> MXException, <span style="color: #003399;">RemoteException</span>
            <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">DUPLICATE</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            getMbo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">setValueNull</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;NEWFIELD&quot;</span>,2L<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>    
	    getMbo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">fireStructureChangedEvent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    sessionContext.<span style="color: #006633;">queueRefreshEvent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>   
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Here we first duplicate the item object.. Then set NEWFIELD nulll.. Then we refresh the page&#8230;</p>
<p>After compile,build/deploy, we should open application designer&#8230;<br />
From &#8220;Select Action&#8221; menu click &#8220;Toggle show all controls&#8221;  Then on the page we select presentation.. Then we write <strong>com.item.newItem</strong> to the bean class field&#8230; We save the application&#8230; Then test it&#8230;</p>
<p>Have a good day&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2009/03/set-new-fields-null-on-duplicate/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
