Maximo Wire - The IBM Maximo Help & Discussion Forum
May 22, 2012, 10:16:34 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to Maximo Wire, the IBM Maximo help forum. Feel free to register and ask any Maximo related questions you like.
 
  Home Help Search Login Register  
*
Pages: [1]   Go Down
  Print  
Author Topic: Dialog Box Customization  (Read 1880 times)
0 Members and 2 Guests are viewing this topic.
techie_blog
Newbie
*

Karma: 1
Posts: 7


View Profile
« on: May 26, 2009, 12:57:37 pm »

Hi folks,
I have a quick question on creation of dialog boxes in Maximo. I was doing an R&D on the status change dialog box of the Workorder.

I see a property called "Relationship" in the dialog box corresponding to "LIST_STATUS". The relationship property is assigned to a relationship called "WOChangeStatus". WOChangeStatus is in turn a non - persistent object and an instance and set level classes (WOChangeStatusSet and WOChangeStatus) are created under psdi\app\workorder\virtual. In addition there is a beanclass which is attached to the dialog tag. The bean class corresponds to psdi.webclient.beans.workorder.WOChangeStatusBean. The bean class has the execute() method which is overridden. I eliminated the bean class from the dialog tag (reloaded the XML and restarted the server). Now, when I tried to change the status, the functionality still continued to work. My question is whats the use of WOChangeStatusBean class. If I do not specify the WOChangeStatusBean class, is the DataBean called by default. If the DataBean is called by default, I persume it takes care of calling the appropritate WOChangeStatus class file to perform the required funcitonality.

Kindly pour in your thoughts on the same!!
Logged
vijet
Jr. Member
**

Karma: 5
Posts: 56



View Profile Email
« Reply #1 on: May 27, 2009, 06:09:18 am »

Hi,

WOChangeStatusBean class is checking for the status of the workorder. This class extends the ChangeStatusBean class. When the workorder is changed the WOChangeStatusBean will check if it can allow the status to change or not. So this is specific to workorder.  Did you check if you are allowed to change the status from any status to other..? This might not be the case if you have WOChangeStatusBean class.. This is just my thought. If you find any other reason then do post it here.

Regards
Vijet
Logged
agendda
Newbie
*

Karma: 0
Posts: 2


View Profile Email
« Reply #2 on: April 29, 2011, 05:14:41 pm »

Hi!

Can anyone tell me what method is called to close the dialog when I click on OK button? I set instead of "dialogok" event my method name. And also, my bean inhertis DataBean.

Thanks in advance!
Logged
maurogrz
Global Moderator
Full Member
*****

Karma: 14
Posts: 111



View Profile Email
« Reply #3 on: April 29, 2011, 10:15:47 pm »

if I'm not wrong, execute() is the method called by the closing of a dialog.... at least in v7.1

Mauro
Logged
agendda
Newbie
*

Karma: 0
Posts: 2


View Profile Email
« Reply #4 on: May 02, 2011, 09:48:55 pm »

Well. I agree that execute method does main job in dialog, but it has the same result as returning 1 or EVENT_CONTINUE value in custom method. I made a mistake about something else. I set mxevent="method_name", but to close dialog on OK button mxevent should be "dialogok", and  value attribute for button should be set to method name:

<pushbutton default="true" id="butt_id" label="OK" mxevent="dialogok" value="method_name"/>
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Recent

TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!