


3:00 am

August 7, 2013

Hello,
I'm trying to create Person Groups using webservices.
One of the fields Maximo insists I fill in is the sequence – respartyseq.
But I'm not really interested in this field, especially in the future when I'll be adding more users to the group.
Is there any way of telling Maximo “just add one to the highest existing sequence”?
I'd like to avoid using code or SQL as much as possible – just the regular MXPersonGroup Web Service.
Thanks,
Robert
8:16 am

March 2, 2009

12:23 pm

August 7, 2013

you may need the following:
update maxattribute set restricted=1 where objectname='xxx' and attributename='yyy';
update maxattributecfg set restricted=1 where objectname='xxx' and attributename='yyy';
commit;
NOTE: Use this for cases where you need the system to use the seq value that's automatically generated by the database (and the MIF is requiring a value to be provided within the data coming into the system). For custom tables, the restricted flag can be set at the time the table is originally created.
11:47 am

August 7, 2013

I've found this http://www.ibm.com/developerwo…..dID=272720 which seems to have the answer to my question.
Haven't had a chance to do any testing myself yet, I'll keep you informed.
Robert
But first, have you seen this post on creating MXPERSON object structure with web services with MIF?
10:30 am

March 2, 2009

I have just created a step by step to create a Person Group object and a web service to import new groups. Hope this helps!
12:15 pm

March 2, 2009

Do you want it to auto increment or is a NULL value enough for you? If you want it to auto increment, then you would probably have to write a cust java User Exit class. If you don't care or just want a NULL value in the seq, then you could always go into the database configuration and set the RESPPARTYSEQ field to NOT REQUIRED. Out of the box that field is required. I just tried it and I could import but the sequence value is set to NULL.
I believe the sequence number is really used to set the order of importance of who's responsible. If that doesn't matter, then the sequence number may be irrelevant. But don't quote me on that one. I would fully test it before moving it to production.
One question, how come you cannot set that sequence number from whatever system is sending this information?
Without writing java code, it probably won't be possible unless the sender is the one setting the sequence value.
Most Users Ever Online: 54
Currently Online:
13 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 0
Members: 0
Moderators:
Admins:
Forum Stats:
Groups: 1
Forums: 8
Topics: 1580
Posts: 4296
Newest Members:
david_grimes, Robert, vkumar, Jeffery Dean, maximomax, ChonAdministrators: