Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
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
Solved! Go to Solution.
Ok I found the issue I did not capitalize the a in XAxis this caused my code to error
Ok I found the issue I did not capitalize the a in XAxis this caused my code to error