I am trying to retrieve values from a table in quickbase.
this is what i have so far.... service.ts
public getNativeFields(){
let headers = new HttpHeaders().set("QB-Realm-Hostname", "xxxxxx.quickbase.com").set("Authorization", "QB-USER-TOKEN xxxxxx_xxx_xxxxxxxxxxxxxxxxxxxxxxxxx");
let requestBody = {
"from": this.someTableTableId,
"select": [6,7]
}
return this.httpClient.post(`${this.apiURL}/records/query?appId=${this.appId}`, requestBody, { headers })
}
in my component.ts I have...
ngOnInit(): void {
let list= this.apiService.getNativeFields();
console.log("list is" );
console.log(list);
list.forEach(element=>{
this.nativeVersions.push(element);
})
console.log("native versions");
console.log(this.nativeVersions);
}
this log returns
how do I extract the {value:"1.0.0"} and {value:"1.0.5"}
Test
↵ ↵↵- test 1
↵ - test 2
↵ - test 3
↵
↵"} __proto__: Object 1: 6: {value: "1.0.5"} 7: {value: "test
↵ ↵↵- test
↵
↵ ↵test
↵ ↵↵- test
↵
↵"} __proto__: Object length: 2 __proto__: Array(0) fields: (2) [{…}, {…}] metadata: {numFields: 2, numRecords: 2, skip: 0, totalRecords: 2} __proto__: Object` – Hugh Oct 28 '20 at 14:56