私は2つのテーブルを有する:簡易表示方法
Table: country1 - fields: CountryId ,CountryName
Table: City1 - fields: CityId, CityName, CountryId
をCountryId
介して2つのテーブル間の関係があり、各都市は、Country id
を有しており、フォームフィールドCityId,CityName, CountryId
とCity1
とグリッドは、単一のデータソースであります私はdesign-designs-grid-methods-new
方法
display CountryName method1(City1 cit)
{
Country1 c1;
select CountryName from c1
where c1.CountryId == cit.CountryId;
return c1.CountryName;
}
で新しいメソッドを作成し、グリッド内の
CountryName
の代わり
CountryId
を表示する必要がありますフォームは、IDを開いたときに
はまだCountryName
フォーム上に表示メソッドを作成することを推奨してはいけません。コンテキストを使わずにフォームを作成することはお勧めしません。再利用は不可能で、パフォーマンスはひどいです。 –