mo4955 crossover domain

1
Basic Concepts For Crossover Domains Overview : In the past, Maximo used a concept of standardized 'extra fields'. Some of these extra fields were defined as crossover fields. For instance an extra field on a location might crossover (get copied) to the work order when that location is entered on the work order. This functionality has been replaced by a new global concept in Maximo called Crossover Domains. Instead of hard-coding these extra fields and their crossover rules, Maximo now allows users to define their own; as many as they want and crossing over to wherever they want (well, almost anywhere they want). There are 3 tables to add data to: 1. MaxDomain (give it a name and define the type) 2. MaxTableDomain (define the source table and the query) 3. CrossoverDomain (list the source and target columns) There are 2 tables to update (for triggering the crossover): MaxSysColumns2 & MaxSysColsCfg If we want to crossover the supervisor's crew to the work order's crew field, we would do the following: insert into maxdomain (domainid, description, domaintype) values ('SPRVSRCREW','Cross Super crew to WO', 'CROSSOVER'); insert into maxtabledomain (domainid, tbname, validtnwhereclause, listwhereclause, errorresourcbundle, erroraccesskey) values ('SPRVSRCREW','LABOR','laborcode = :supervisor','','workorder','badsuper'); NOTE: You will need to modify the workorder.txt file and add a ''badsuper' entry. insert into crossoverdomain(domainid, sourcefield, destfield,copyifnull) values ('SPRVSRCREW','CREWID', 'CREWID','N'); update maxsyscolumns2 set domainid = 'SPRVSRCREW' where tbname = 'WORKORDER' and name = 'SUPERVISOR'; update maxsyscolscfg set domainid = 'SPRVSRCREW' where tbname = 'WORKORDER' and name = 'SUPERVISOR'; Note: In 6.0 this can be done via the domains application. Also the supervisor is now a person not a labor although crew is associated with labor. Caveats: 1. There must be a field or fields on the target table that has the key to the source table. 2. The source record must already exist on the database and the column value being copied must also have been saved before using it in a crossover. Document Info Doc ID: M04955 Product: MAXIMO Version: 6.0, 5.2 Page 1 of 1 MAXIMO Knowledge Base - Basic Concepts For Crossover Domains 10/23/2006 http://support.mro.com/85256ADB0063DAF1/print/2D30FCFEAE812B768525704A00493160?...

Upload: laarigao

Post on 19-Jan-2016

24 views

Category:

Documents


1 download

DESCRIPTION

Mo4955 Crossover Domain

TRANSCRIPT

Page 1: Mo4955 Crossover Domain

Basic Concepts For Crossover Domains

Overview : In the past, Maximo used a concept of standardized 'extra fields'. Some of these extra fields were defined as crossover fields. For instance an extra field on a location might crossover (get copied) to the work order when that location is entered on the work order. This functionality has been replaced by a new global concept in Maximo called Crossover Domains. Instead of hard-coding these extra fields and their crossover rules, Maximo now allows users to define their own; as many as they want and crossing over to wherever they want (well, almost anywhere they want). There are 3 tables to add data to:

1. MaxDomain (give it a name and define the type) 2. MaxTableDomain (define the source table and the query) 3. CrossoverDomain (list the source and target columns) There are 2 tables to update (for triggering the crossover): MaxSysColumns2 & MaxSysColsCfg If we want to crossover the supervisor's crew to the work order's crew field, we would do the following: insert into maxdomain (domainid, description, domaintype) values ('SPRVSRCREW','Cross Super crew to WO', 'CROSSOVER'); insert into maxtabledomain (domainid, tbname, validtnwhereclause, listwhereclause, errorresourcbundle, erroraccesskey) values ('SPRVSRCREW','LABOR','laborcode = :supervisor','','workorder','badsuper'); NOTE: You will need to modify the workorder.txt file and add a ''badsuper' entry. insert into crossoverdomain(domainid, sourcefield, destfield,copyifnull) values ('SPRVSRCREW','CREWID', 'CREWID','N'); update maxsyscolumns2 set domainid = 'SPRVSRCREW' where tbname = 'WORKORDER' and name = 'SUPERVISOR'; update maxsyscolscfg set domainid = 'SPRVSRCREW' where tbname = 'WORKORDER' and name = 'SUPERVISOR'; Note: In 6.0 this can be done via the domains application. Also the supervisor is now a person not a labor although crew is associated with labor. Caveats: 1. There must be a field or fields on the target table that has the key to the source table. 2. The source record must already exist on the database and the column value being copied must also have been saved before using it in a crossover.

Document Info

Doc ID: M04955

Product:

MAXIMO

Version: 6.0, 5.2

Page 1 of 1MAXIMO Knowledge Base - Basic Concepts For Crossover Domains

10/23/2006http://support.mro.com/85256ADB0063DAF1/print/2D30FCFEAE812B768525704A00493160?...