If you want a certain value to display based on what a user selects in another
field, most of the time this can be done easily with a dBLookup, but sometimes
there can be a significant delay if the database is large. In order to speed
this up, you can compute the lists available to the user in the PostOpen event
to make them available on the new document being created and then use the
Country_Names : This field contains a list of Country Names (i.e. Canada,
United States, England). Hidden, computed field. Can be calculated during the
PostOpen event for the form based on the user, role or some other criteria.
Country_Desc : This field contains a list of corresponding descriptions for
each Country (i.e. Great White North, The Land of the Free, The Home of Royalty
and Boiled Food ). Hidden, computed field. Must be computed based on the same
criteria as Country_Names in order to contain the corresponding descriptions.
Selected_Country : Keyword field with the following formula for the list of
keywords : @Trim(@Unique(Country_Names))
Display_Country_Desc : Computed for Display field with the following formula :
index := @Member(Selected_Country; @Trim(Country_Names));
@If(index = 0; Display_Country_Desc; @Trim(@Subset(@Subset(Country_Desc;
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.