I have a snippet of code below in which I am trying to apply the setProcessingServerGroup() and setProcessingServerGroupChoice() methods to my report object. My question should be relatively simple: I believe I need to cast(?) my iObject report object to iProcessingServerGroupInfo per the API in order to use the methods, but I'm not sure how to do so.
Can someone please advise? Thanks in advance...
Code:
...
...
...
IInfoObject iObject = (IInfoObject) childReports.get(i);
int sgID_view = Integer.parseInt(serverGroupID_view);
int sgPref_view = Integer.parseInt(serverGroupPref_view);
!!!!! CONVERSION / CAST NEEDED HERE !!!!!
iProcessingServerGroupInfo.setProcessingServerGroup(sgID_view);
iProcessingServerGroupInfo.setProcessingServerGroupChoice(sgPref_view);
...
...
...
Can someone please advise? Thanks in advance...
Code:
...
...
...
IInfoObject iObject = (IInfoObject) childReports.get(i);
int sgID_view = Integer.parseInt(serverGroupID_view);
int sgPref_view = Integer.parseInt(serverGroupPref_view);
!!!!! CONVERSION / CAST NEEDED HERE !!!!!
iProcessingServerGroupInfo.setProcessingServerGroup(sgID_view);
iProcessingServerGroupInfo.setProcessingServerGroupChoice(sgPref_view);
...
...
...