Maximo List Archive

This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.



Update Location's Parent via MIF?

From: robigd2923 (2011-11-14 02:08)

I have used the out of the box MXOPERLOC object structure/enterprise service to load locations, but I have found that when you update a location by setting a new parent, the rest of the record gets updated with any attributes you changed, but it doesn't move the location to its new parent.
Having said that, has anybody had any experience changing a parents location via the MIF, or is a custom processing class required?
I have also experimented around with creating a new object structure with LOCATION and LOCHIERARCHY, and messed around with several relationship combinations, still with no luck.
Thanks in advance for your replies.


From: Sean Clark-McCarthy (2011-11-14 11:48)

I don't have an instance in front of me right now, but I believe there are a few fields prefixed with "NEW", like NEWPARENT. Try setting those.
-- Sean Clark-McCarthy
From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com] On Behalf Of robigd2923
Sent: Sunday, November 13, 2011 9:08 PM
To: MAXIMO@yahoogroups.com
Subject: [MAXIMO List] Update Location's Parent via MIF?
I have used the out of the box MXOPERLOC object structure/enterprise service to load locations, but I have found that when you update a location by setting a new parent, the rest of the record gets updated with any attributes you changed, but it doesn't move the location to its new parent.
Having said that, has anybody had any experience changing a parents location via the MIF, or is a custom processing class required?
I have also experimented around with creating a new object structure with LOCATION and LOCHIERARCHY, and messed around with several relationship combinations, still with no luck.
Thanks in advance for your replies.


From: kimprisk (2011-11-15 03:50)


I have done this in v6 with a MEA tables interface OK as we keep Maximo locations synchronised with our rooms database (external to Maximo).
The integration object has the LOCATIONS object as the 'parent' of the LOCHIERARCHY object with LOCHIERARCHY as the 'relationship' I did not include the non-persistent field 'NEWPARENT'from the LOCHIERARCHY object, but did include the non-persistent fields HASCHILDREN, HASPARENT, SYSTEMID, & NEWPERCENT from the LOCATIONS MBO.
I had to create aliases for the systemid, parent, & orgid fields on LOCHIERARCHY
I would expect that a flat file based on the same object would work OK but not tried.
Hope that helps
Kim
The University of Auckland
New Zealand.
--- In MAXIMO@yahoogroups.com, "robigd2923" <robigd2923@...> wrote:
>
> I have used the out of the box MXOPERLOC object structure/enterprise service to load locations, but I have found that when you update a location by setting a new parent, the rest of the record gets updated with any attributes you changed, but it doesn't move the location to its new parent.
>
> Having said that, has anybody had any experience changing a parents location via the MIF, or is a custom processing class required?
>
> I have also experimented around with creating a new object structure with LOCATION and LOCHIERARCHY, and messed around with several relationship combinations, still with no luck.
>
> Thanks in advance for your replies.
>