Skip to main content
12-Amethyst
April 9, 2024
Solved

Unable to access data in an Infotable

  • April 9, 2024
  • 1 reply
  • 853 views

I am creating a service that needs to take in three Infotables and needs to access certain fields of data within them however when I try all I get is  

(Error in: RR.SA.SignatureViewMashupHelper.XaxisFixer javascript service. Message ::TypeError: Cannot read property "rows" from undefined (XaxisFixer#20))

the specific data i am accessing is a Infotable that is a data type in the larger infotable

this is very confusing as when i inspect the payload of the API call the key of the array that is that infotable is rows so why can i not access the data within.

here is the code snippet of the function

 

 

const reMapper = (obj) => {
 let returnObj = obj;
 return returnObj.Xaxis.rows.map((row) => row.value);
};

 

 

The infotable that "obj" refers to has the columns

SeriesId: String

SeriesTitle: String

XAxis: Infotable

YAxis: Infotable

SeriesLineColour: String

SeriesLineType: String

maxX: Number 

I have already tried turning the infotable into a JSON however that just leaves me with null instead

Best answer by FT_10776532

Ok I found the issue I did not capitalize the a in XAxis this caused my code to error

1 reply

FT_1077653212-AmethystAuthorAnswer
12-Amethyst
April 9, 2024

Ok I found the issue I did not capitalize the a in XAxis this caused my code to error