Solved

Display list of countries under correct group

Posted on 2004-08-12
2
201 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

705 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now