Skip to Content
avatar image
Former Member

JCoStructure vs. JCoTable

Hi have a problem with a return-value from a function block. If I try to use this Java-Code:

JCoTable test = function.getTableParameterList().getTable("RETURN_TABLE");

I get a NullPointerException, because the Table is a Returntype. So in the function block it is in the export-slide. If it is in the table-slide, than it works fine, but if the table is a return type, it doesn't work. Now I have tried to use the table as a structure.

JCoStructure test = function.getExportParameterList().getStructure("RETURN_TABLE");

But now it cannot be converted...

"Cannot convert field RETURN_TABLE of type TABLE to StructureRecord"

How can I read the Return-Value RETURN_TABLE in Java?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 19, 2010 at 06:42 AM

    Why not use the following:

    JCoTable test = function.getExportParameterList().getTable("RETURN_TABLE");
    

    Cheers, harald

    Add comment
    10|10000 characters needed characters exceeded