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.



maximo getMboSet and mbo giving error "is not defined"

From: eoin_roe (2014-11-11 04:46)

Hi All,
I have been writing a script and am getting some errors which I don't think should be such big issues.
The first is that I have a launch point from a table, OHL_Locations.
When I try to get data from the table using locSet = mbo.getString('OHL_LOCID')
I get an error similar to that below saying "mbo is not defined". I think this is a bit strange as other scripts I have looked at this works fine.
Also, I am having an issue with doing it this way: locSet = getMboSet("OHL_LOCATIONS")
This gives the error: getMboSet is not defined, see below.
Traceback (most recent call last):
File "<iostream>", line 3, in <module>
NameError: name 'getMboSet' is not defined


If anyone has any ideas they would be greatly appreciated.



From: pranjal149 (2014-11-16 02:00)

I hope you are using either object or attribute launch point.

To get the ID field try - locID = mbo.getLong('OHL_LOCID').

To get the set try - locSet = mbo.getMboSet("OHL_LOCATIONS")

Pranjal.


From: eoin_roe (2014-11-24 08:37)

Thanks for that Pranjal