Learning DBlookup

I’m not using response documents.I have a db that tracks Owners and their multiple properties.

The Owners document has information on it like a primary phone number that changes from time to time.

The related child document ( a property) needs to have the owners phone number kept current. Right now I have it inheriting the value, but when the number changes on the owner card, it remains unchanged on the Property card.

I’m trying to get dblookup to work.

Parent Card

Form = “Owners Cards”

Related field = “pc_txt_owner_group”

Desired field = “txt_owner_phone”

Child card I want to keep up to date:

Form = “Owners Cards”

Related field = “pc_txt_owner_group”

Desired field I want kept up to date = “pc-txt_owner_phone”

Heres what I have…not working

@DbLookup(“”:“NoCache”;“”;"Owners Cards"pc_txt_owner_group;txt_owner_phone;)

I’m “getting entry not found in Index”?

Or

Maybe there’s a better way to do this?

Subject: * duplicate - ignore

THAT was weird – I edited my original post and it created a duplicate.

Subject: learning DBlookup

You’re getting “Entry not found in index or view index not created”, which means one of two things: either there is no corresponding entry in the view, or somebody forgot to sort the first column of the view. Oh, and you’re going to want to put quotes around the returned field name (or better yet, use a column number), or it’ll always return “” when it does work.

Subject: RE: learning DBlookup

Now it’s saying “@Function arguments expected, but not supplied ‘)’The View is sorted. There is matching data

@DbLookup(“”:“NoCache”;“”;“Owners Cards”;pc_txt_owner_group;txt_owner_phone;)

Jim

Subject: RE: learning DBlookup

You have a semicolon after the return fieldname – and you still haven’t put quotation marks around the return fieldname:

@DbLookup(“”:“NoCache”;“”;“Owners Cards”;pc_txt_owner_group;“txt_owner_phone”)

Without the quotation marks, the lookup will try to return the value of a field whose name is in the current document’s txt_owner_phone field.