I have a form called frmCompany with a field called countryCode. and i have another form called frmCountry storing countryCode and countryName. I wish to create a view base on frmCompany with one of the field called Country which is showing country name. Exactly the same like “SELECT frmCountry.countryName FROM frmCompany JOIN frmCountry WHERE frmCompany.countryCode = frmCountry.countryCode” in a relational database. Izit posible? Thanks
Subject: Loopkup in View
Notes is not relational therefore it is not possible in the way that you suggest. If you want to build a selection (view) showing company, country and countrycode then you will have to have some data redundancy. For example, when you create a company document and specify the countrycode, you would have a computed (countryname) field to lookup the countryname associated with that countrycode(using countrycode as the search key). To do this, you will have to have a (hidden) view of country documents, first column sorted by countrycode, second column containing countryname.
Subject: RE: Loopkup in View
Meant one of the things i can do is to save the countryname also in the company’s document? Thanks