Maximo Integration Methods and classes we should know
1. irData.getPrimaryObjectList()
This is used to get primary object list suppose i have following in my object structure (MYOBJSTRUCT)
Workorder
Planned Matrial
tasks
Actuals Material
Logs
Now inorder to loop throw to the these records in case of publish
I have to first get the list of primary object so above method is used their.
return type is list
2. object.size()
List which we get from above we for looping we will size size to get count of records
if we do it on MYOBJSTRUCT we will get 5 objects for looping on them we can use for loop or while loop
3. irData.setAsCurrent("xxx")
suppose if have to loop on planned material i will will set as current plan material
irData.setAsCurrent("PLANMATERIAL")
4. irData.getCurrentDataAsString("XXX")
suppose if i have to get Description from planned material list of 4th item for this i have to to use getDataAsString to get the data but first i have loop throgh objectlist we get from our above 3rd point.
looping will be done by size method in similar fashion.
Use the same logic to get Int and Double.
5. erData.breakData()
we use breakData inorder to break data which is coming from external system into different objecs for reading or write over them
6. irData.createChildrenData("PM",true)
This method will be used for creating children data and set it as current.
7. irData.setCurrentData(xxx,XXX);
set set a value example
uid=irData.getCurrentDataAsString("USERID")
uid=uid+"Test"
irData.setCurrentData("USERID",uid)
Comments
Post a Comment