Is ‘loading’ a record the right concept.
Up to now I’ve been using lines like:
let record = await input.recordAsync("Who is Mum", view);
and in my head this has then let me wokr with a chosen record. But now I want to ‘load’ a record from a ‘link to another record field’ and I suspect I’m missing a fundamental point somewhere:
My code:
let table = base.getTable("Characters")
let deadMen = table.getView("Living Males")
var deadMansRecord = await input.recordAsync("Who Died", deadMen);
let theWiddow = deadMansRecord.getCellValue("Spouse")
let theWiddowID = theWiddow[0].id
console.log(theWiddow)
console.log(theWiddowID)
let widdowHome = theWiddow.getCellValueAsString("Nation of Birth")
console(widdowHome)
and the result when I run it for Albert.
Why is my getCellValueAsString(“Nation of Birth”) not returning Germany?
Reagrds
Neil