Skip to main content
1-Visitor
November 29, 2017
Solved

Snippet to create an infotable from a datashape is not responding

  • November 29, 2017
  • 2 replies
  • 5289 views

Is there another way to get the code for a snippet and copy it into my script?  The snippet to create an infotable from a datashape is not responding when I try to move it over.

    Best answer by nmilleson

    var params = {

    infoTableName : "InfoTable",

    dataShapeName : "yourDataShape"

    };

    // CreateInfoTableFromDataShape(infoTableName:STRING("InfoTable"), dataShapeName:STRING):INFOTABLE(logErrorAggregateShape)

    var result = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);

    2 replies

    nmilleson17-PeridotAnswer
    17-Peridot
    November 29, 2017

    var params = {

    infoTableName : "InfoTable",

    dataShapeName : "yourDataShape"

    };

    // CreateInfoTableFromDataShape(infoTableName:STRING("InfoTable"), dataShapeName:STRING):INFOTABLE(logErrorAggregateShape)

    var result = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);

    1-Visitor
    November 29, 2017

    Thanks!!  Not sure why some of them won't allow me to add to my script.  Maybe I'm due for upgrading to 8.1??

    17-Peridot
    November 29, 2017

    I'm still on 8.0 and it works fine for me.  When you click the arrow button it should prompt you to select a DataShape.  Does it get that far?

    17-Peridot
    November 29, 2017

    Strange... does anything show up in the Application or Script logs?  Alternatively, have you tried restarting TomCat? (not sure if that would affect that at all).