Maximo Wire - The IBM Maximo Help & Discussion Forum
February 08, 2012, 04:22:28 am *
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: In Which method of MBO do we write the Business Logic?  (Read 1068 times)
0 Members and 1 Guest are viewing this topic.
shankar
Newbie
*

Karma: 1
Posts: 46


View Profile
« on: July 27, 2010, 10:48:18 am »

Hi All,
           I want to Knw where exactly we write the business logic in the MBO class, I have tried writing the logic in the save() method of MBO but it is getting called only when we click the save icon on the tool bar. If the write the logic in the init() then it is getting called as when respective MBO is reffered.

So i want to knw where to write the business logic in the MBO class

regards
shankar.
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 299



View Profile WWW
« Reply #1 on: July 27, 2010, 11:37:58 am »

hey that really depends when u want to call the logic..
These all methods are predefined to be called on specific event.. If you want to call a method on a specific event than you have to customize it..

Tell me your requirement, so I can suggest you something.
Logged

regards,

Ethen...
shankar
Newbie
*

Karma: 1
Posts: 46


View Profile
« Reply #2 on: July 27, 2010, 02:07:58 pm »

I have some fields  on my application page all are the calculated fields. when i give input for one filed and press submit button all other fields should get calculated and displayed based on this input field. i have tried writing the logic in save method but this is getting done only when i press save.this should be done on click of submit button on my page plz help me out.

regards.
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 299



View Profile WWW
« Reply #3 on: July 27, 2010, 07:06:18 pm »

for the submit button, you would have created an event. Say your event name is SUBMITDATA.
Now you have to write a method in the bean class for the screen that will hve the method as public int SUBMITDATA()

This method will retrieve the mbo say CustomMbo.
Usint this CustomMbo you can call any method of the CustomMbo class.

So actually what you do is
Create a method in the application bean class with the same name as of the event i.e. the signature of the button.
In the application bean class method retrieve the Mbo, thats presented on the screen.
Call Mbo.method.. Before that you have to add your method in the MBO class an recompile it and make stubs and skeletons for it..

cheers.
Logged

regards,

Ethen...
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!