Skip to Content

Problem with Java-DI-API and ItemGroups/IRecordset

Hi,

i want to read the ItemGroups with a Recordset out of the table OITG and have the following problem:

After connecting the database, i want to retrieve a Recordset object from the company object like this:

IRecordset rsProductGroups = (IRecordset)gcc.getBusinessObject(SBOCOMConstants.BoObjectTypes_BoRecordset);

The VM gives me a java.lang.ClassCastException.

There is no Business Object for ItemGroups in the current release, so i have to user IRecordset, right?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jun 30, 2004 at 09:51 AM

    If want to get a new business object should write code like:

    IRecordset rsProductGroups=SBOCOMUtil.newRecordset(gcc);

    Regards,

    Frank

    Add comment
    10|10000 characters needed characters exceeded