cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Problem with Union in 5.0

gregko
1-Visitor

Problem with Union in 5.0

The InfoTableFunctions.Union service is not working for us in 5.0. Below is some sample code.

var params1 = {
infoTableName : "InfoTable",
dataShapeName : "LWShareType"
};

// CreateInfoTableFromDataShape(infoTableName:STRING("InfoTable"), dataShapeName:STRING):INFOTABLE(LWShareType)
var result1 = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params1);

result1.AddRow({"Name":"name1","Value":"value1"});
result1.AddRow({"Name":"name2","Value":"value2"});
result1.AddRow({"Name":"name3","Value":"value3"});

var params2 = {
infoTableName : "InfoTable",
dataShapeName : "LWShareType"
};

// CreateInfoTableFromDataShape(infoTableName:STRING("InfoTable"), dataShapeName:STRING):INFOTABLE(LWShareType)
var result2 = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params2);

result2.AddRow({"Name":"name4","Value":"value4"});
result2.AddRow({"Name":"name5","Value":"value5"});
result2.AddRow({"Name":"name6","Value":"value6"});


var params = {

t2: result2 /* INFOTABLE /,<br> t1: result1/ INFOTABLE */
};

// result: INFOTABLE
var result = Resources["InfoTableFunctions"].Union(params);

2 REPLIES 2
gregko
1-Visitor
(To:gregko)

It appears as though the merged results are returned in t1 instead of the output result of the service call.

smanley
14-Alexandrite
(To:gregko)

Hi Greg,

Thank you very much for bringing this to our attention. It seems this is a bug in the Union snippet. I have reported this to our development team and will notify you as soon as it is resolved.


Thank you,

Saeed



Announcements


Top Tags