Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filtering 3 tables on the same criteria

Status
Not open for further replies.

woodyinoz

IS-IT--Management
Jan 8, 2002
215
GB
Hi all,

I have 3 tables on 3 seperate pages on a form. Each table contains a contract and a structure number but none of these are unique as each occur multiple times in each table.

I want to one a single filter on all three tables where the user can filter contract no and structure no and each table will show only the information for those selected.

Any ideas anyone?

Thanks,

Woody.
 
Ok. One step at a time. Presumably you want the user to specify the contract number. If the user enters this into an unbound field on the form, you could attach code to the newValue method of the field like:

method newValue(var eventInfo Event)
var
dynFilter dynArray string
endvar
if eventInfo.reason() = EditValue then
msgInfo("", "Changing to " + self.value)
;assume fieldname is ContractNo
dynFilter["ContractNo"] = self.value
;assume the tableframe is called table1
table1.setGenFilter(dynFilter)
endif
endmethod

If this starts to get you where you want to go, the concept can be expanded. NB: there may be performance issues associated with setGenFilter.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top