Monday, September 26, 2016

IBM Maximo : Calling a report from a push button in Maximo

Idea here is to launch a report from a push button on any screen. In this way business can run a specific report by clicking a button in the screen itself.

1.       Find the report which you want to run (ex: woprint.rptdesign) and hit the database to find the report number and execute below query

select reportnum,reportname,appname from report where reportname='woprint.rptdesign' and APPNAME='WOTRACK';



2.       From Report Library file (REPLIBRARY) and search for reportnum="351" , note the id related to it (highlighted)






id="reportd351"
label="Request Page" mboname="WORKORDER" reportnum="351" reporttype="BIRT" width="550">

3.       Navigate to application designer, search for WOTRACK and a new button with details like
Event : reportd351 and save it



4.       From Work Order Tracking application , you can see a Print Report button, when you click it shows report page like below




And on Submit, it generates the report.




----------------------------------------------------------------------------
 All the messages
below are just forwarded messages if some one feels hurt about it please add your comments we will remove the post.Host/author is not responsible for these posts.

Tuesday, September 20, 2016

Maximo Environment refresh- Naming environments

-- Below are the scripts which can be executed after production refreshes to make sure every environment is named from login screen etc.
Below is a example where we are trying to set values in a system as Development Environment


------ Messages on the Login Screen -----

--Login Button ---
update maximo.maxmessages set value = 'Sign In to Development' where msgkey = 'loginbutton' and msggroup = 'login';

-- Welcome Message ---
update maximo.maxmessages set value = 'You are in Development' where msgkey = 'welcome' and msggroup = 'login';

update maximo.maxmessages set value = 'Welcome to Development' where msgkey = 'welcomemaximomessage' and msggroup = 'login';

update maximo.maxmessages set value = 'Welcome to Development, {0}' where msgkey = 'welcomeusername' and msggroup = 'login';

-- Maximo Log Out Messages ----
update maximo.maxmessages set value = 'All users will be logged out of Development Environment in {0} minutes. Save your work.' where msgkey = 'AdminLogoutSubject';

update maximo.maxmessages set value = 'Maximo configuration in progress on Development Environment' where msgkey = 'AdminLogoutMessage';

--- Maximo Application ----

update maximo.maxapps set description = 'DEV - ' || description;

commit;



----------------------------------------------------------------------------
 All the messages below are just forwarded messages if some one feels hurt about it please add your comments we will remove the post.Host/author is not responsible for these posts.

Saturday, September 17, 2016

World's oldest Mosques in India to which every Indian Muslim should visit

I feel every Indian Muslim should visit these 2 mosques which were bulit when Prophet Muhammad was alive and also request respective states to improve tourism facilities

Cheraman Juma Mosque


Cheraman Juma Mosque which was bulit in 629 AD by Malik Deenar, an Arab propagator of Islam and a follower of Prophet Muhammad on the land given by
Cheraman Perumal, the Chera king of Kerala.


Many traders from Arab countries used to visit Malabar region of Kerala, in the process they also propogated Islam into this region.
As the legend goes, Cheraman Perumal (king) visited Arabia and converted himself to a true follower of Islam. He changed his name to Tajuddin.
Unfortunatly he couldnt visit Cheraman Juma Mosque as he died while coming back to his kingdom. He is now buried in Oman.

This mosque is located in NH 66, Kodungallur, Trichur Kerala 680664.
More details can be found on the mosque website :http://cheramanmosque.com


You can plan visit check Tripadvisor site : https://www.tripadvisor.ca/Attraction_Review-g2285465-d2709126-Reviews-Cheraman_Juma_Masjid_Mosque-Kodungallur_Kerala.html
FB Page : https://www.facebook.com/Cheraman-Juma-Masjid-The-First-Masjid-in-Hindustan-344554142298708/




Palaiya Jumma Palli


This mosque was bulit around 630 AD in Kilakarai, Tamil Nadu. Similar to Cherman Juma Mosque history it was also constructed in a port city by traders from Yeman.
This mosque looks like a temple from outside and mosque inside.This also shows how Islamic culture came to india much before Mughals came to India.


Website: I couldnt find if this mosque has any website.
You can plan visit :As i didnt find any good hotels near by, i would prefer to stay in Rameswaram or Madurai.

FB page : https://www.facebook.com/pages/Palaiya-Jumma-Palli/195504303966184

----------------------------------------------------------------------------
All the messages below/above are just forwarded messages if some one feels hurt about it please add your comments we will remove the post.Host/author is not responsible for these posts.

Tuesday, September 13, 2016

Maximo Automation Script : To make field value to remove special characters and to make it in upper case

Below script is used to remove the special characters and make values in the field to uppercase

Script
------
Name : ASSET-DESCRIPTION-REMOVE-SPLCASE
Language : jython

Launch Points
-------------
Name : ATT-REMOVE-SPLCASE
Active : 1
Object : Asset
Attribute : DESCRIPTION

Autoscript
----------

from psdi.util.logging import MXLogger
from psdi.util.logging import MXLoggerFactory
from psdi.mbo import MboConstants
from psdi.util import MXApplicationException

logger = MXLoggerFactory.getLogger("maximo.script");
logger.debug("==================== ATT-REMOVE-SPLCASE." + launchPoint + ": START =====================")

#This script reformats the Description field to only have alphanumeric uppercase characters
#Characters A-Z and 0-9 inclusive are permitted.

description = mbo.getString("DESCRIPTION")
description = ''.join(i for i in description if i.isalnum())
description = description.upper()
mbo.setValue("DESCRIPTION", str(description), 2)

logger.debug("==================== ATT-REMOVE-SPLCASE." + launchPoint + ": END =====================")
----------------------------------------------------------------------------
All the messages
below are just forwarded messages if some one feels hurt about it please add your comments we will remove the post.Host/author is not responsible for these posts.

Discardable MBOSET / MBO in IBM Maximo

·         These can be used on MBOSETS which are used for traversing forward only ie looping in
·         They should not be used while doing edit/save etc operations
·         Mboset will not cache the MBOs as it fetches from directly from database. This will minimise the JVM memory usage.
·         Discardable Mbo Sets are always read only.

Example below to make a MBOset discardable

MboSetRemote personSet = getMboSet("PERSON");
personSet.setFlag(MboConstants.DISCARDABLE, true);




----------------------------------------------------------------------------
All the messages below are just forwarded messages if some one feels hurt about it please add your comments we will remove the post.Host/author is not responsible for these posts.