Solved

Display list of countries under correct group

Posted on 2004-08-12
2
210 Views
Last Modified: 2013-12-18
I have a view called Company which contains

GROUP             Company
--------             -----------
HP                   Singapore, Malaysia, Thailand, Italy
MOTOROLA      Penang, Kuala Lumpur, Ipoh
Philips              Cambodia, Taiwan

When user go to another view and click to enter a new document,
Under one section :

Customer     Group  field A(editable dialog list which get the values from view Company
                                        column 1)
                   Region field B(editable dialog list to display values based on field A to let    
                                        user select which coompany to display)
                              button field C (display all companies depend on value in field A)

e.g when user select HP in field A, it should display all the companies which are Singapore, Malaysia, Thailand, Italy in field B.
when user select Philips in field A, it should display all the companies in field B.

How to I code my field B to work as the example above and the button field C to display all the companies depend on the value which user select in field A?

0
Comment
Question by:kopibean
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 11781484
Set the first dialog field to
    Refresh form when field is changed
and all other dialog fields to
    Refresh form when field is changed
    Refresh options when form is refreshed
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 30 total points
ID: 11785419
Do what Sjef says... in case you were also asking how to set up teh fields so they have those choices in the first place, here's how:

I will assume the first field is named GROUP and the second field is named REGION
Fields should both be Dialog List fields
Go to properties for GROUP
Go to second tab
The drop down in the "Choices" section should say "use formula for choices"
Formula should be @DBColumn(""; ""; "Company"; 1)
Go to the second tab of properties for REGION
Drop down should also say Use formula for choices
Formula should be:
queryResult := @If(!@Trim(Group)=""; @DbLookup(""; ""; "Company"; GROUP; 2); "");
@If(@IsError(queryResult); "Error - " + @Text(queryResult); queryResult)

Make sure that the Company view sorts on the group field, that the first column has group, and the second column has region.

0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question