Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Field Validation
October 21, 2010
1:42 pm
Avatar
DaveLittley
Member
Members
Forum Posts: 7
Member Since:
August 7, 2013
sp_UserOfflineSmall Offline

How about a tutorial for field validation using a java class?  Specifically, I'd like to know how to prevent duplicate vendor invoice numbers on the invoice screen.  Thanx.

October 21, 2010
2:06 pm
Avatar
Chon
Stoneham, MA USA
Admin
Forum Posts: 1118
Member Since:
March 2, 2009
sp_UserOfflineSmall Offline

Hello, Please register to see the Admin’s answer!

October 21, 2010
3:06 pm
Avatar
DaveLittley
Member
Members
Forum Posts: 7
Member Since:
August 7, 2013
sp_UserOfflineSmall Offline

Right.  Hoping to prevent the same invoice from being entered twice.

October 21, 2010
3:31 pm
Avatar
Chon
Stoneham, MA USA
Admin
Forum Posts: 1118
Member Since:
March 2, 2009
sp_UserOfflineSmall Offline

Hello, Please register to see the Admin’s answer!

October 27, 2010
3:06 pm
Avatar
DaveLittley
Member
Members
Forum Posts: 7
Member Since:
August 7, 2013
sp_UserOfflineSmall Offline

Is there a way to get more descriptive error messages?  I'm attempting this myself and when the code runs in Maximo, all it says is “An unknown error has occurred.”  Makes it difficult to debug.

October 27, 2010
3:18 pm
Avatar
Chon
Stoneham, MA USA
Admin
Forum Posts: 1118
Member Since:
March 2, 2009
sp_UserOfflineSmall Offline

Hello, Please register to see the Admin’s answer!

October 27, 2010
3:20 pm
Avatar
Chon
Stoneham, MA USA
Admin
Forum Posts: 1118
Member Since:
March 2, 2009
sp_UserOfflineSmall Offline

Hello, Please register to see the Admin’s answer!

November 1, 2010
10:27 am
Avatar
Chon
Stoneham, MA USA
Admin
Forum Posts: 1118
Member Since:
March 2, 2009
sp_UserOfflineSmall Offline

Hello, Please register to see the Admin’s answer!

November 8, 2010
6:18 pm
Avatar
DaveLittley
Member
Members
Forum Posts: 7
Member Since:
August 7, 2013
sp_UserOfflineSmall Offline

Thanks.

Quick question – when I wrote it, I extended MboValueAdapter instead of MAXTableDomain.  It seems to work ok, but is there a reason to use MAXTableDomain instead?

 

Dave

November 9, 2010
8:44 am
Avatar
Chon
Stoneham, MA USA
Admin
Forum Posts: 1118
Member Since:
March 2, 2009
sp_UserOfflineSmall Offline

Hello, Please register to see the Admin’s answer!

November 9, 2010
12:09 pm
Avatar
DaveLittley
Member
Members
Forum Posts: 7
Member Since:
August 7, 2013
sp_UserOfflineSmall Offline

In addition to field validation, is there a way to extend the validation that happens when the status of the invoice is set to approved?

 

Dave

November 9, 2010
12:30 pm
Avatar
Chon
Stoneham, MA USA
Admin
Forum Posts: 1118
Member Since:
March 2, 2009
sp_UserOfflineSmall Offline

Hello, Please register to see the Admin’s answer!

November 9, 2010
1:13 pm
Avatar
DaveLittley
Member
Members
Forum Posts: 7
Member Since:
August 7, 2013
sp_UserOfflineSmall Offline

In the process of being approved.  Want to prevent the status from being set to approved if the custom class finds a problem.

November 9, 2010
2:20 pm
Avatar
Chon
Stoneham, MA USA
Admin
Forum Posts: 1118
Member Since:
March 2, 2009
sp_UserOfflineSmall Offline

Hello, Please register to see the Admin’s answer!

November 9, 2010
2:55 pm
Avatar
DaveLittley
Member
Members
Forum Posts: 7
Member Since:
August 7, 2013
sp_UserOfflineSmall Offline

Yes.  I've looked through the JavaDocs and I think the canChangeStatus function in the InvoiceStatusHandler class is the one I want to override.  But, if I override it, I don't know how to get the new class into Maximo. 

Forum Timezone: America/New_York

Most Users Ever Online: 54

Currently Online:
1 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

sun kim: 60

madd0g17: 59

v.barsamov: 51

cgregory: 45

Maximofresher: 45

matta0990: 33

Member Stats:

Guest Posters: 0

Members: 14366

Moderators: 0

Admins: 4

Forum Stats:

Groups: 1

Forums: 8

Topics: 1580

Posts: 4295

Newest Members:

Megan Morgan, Devendra Verma, stephen stephens, maxexpertise Hilal, Jeroen van Proosdij, Neeraja N

Administrators: Chon: 1118, kristensibilia: 0, Joe Grassia: 0, bpaik: 0