Topic Options
Rate This Topic
#137706 - 05/15/07 11:10 PM Dynamic Table Field Qualifications **
Carlos Offline
Stealth Member

Registered: 01/24/07
Posts: 82
Loc: London
Hi,
wondering if I can set the qualification of a table field dynamically based on what character fields are selected on the form?
I would like to have a table refine what is displayed based on a number of selections made by the user from Character boxes.

eg. I have 3 character fields and a table. When character field one is selected, the table showa all assoicated entries. When field one and two are selected, the table shows entries based on the 2 selected fields and so on for the other selections basically refining the list as the character boxes are filled.

I currently have it only showing anything if all the associated character boxes have an entry in them.

Current qualification for table is:
'field1' = $field1$ AND 'field2' = $field2$ AND 'field3' = $field3$

Regards
Carl

Top
#137707 - 05/16/07 12:48 AM Re: Dynamic Table Field Qualifications [Re: Carlos]
thwe Offline
Stealth Member

Registered: 03/11/04
Posts: 188
Loc: Germany
Try:


('field1' = $field1$ OR $field1$ = " ") AND ('field2' = $field2$ OR $field2$ = " ") AND ('field3' = $field3$ OR $field3$ = " ")

Top
#137722 - 05/16/07 07:33 AM Re: Dynamic Table Field Qualifications [Re: thwe]
Shark_7-11 Offline
Stealth Member
*****

Registered: 09/26/06
Posts: 267
Also have a look at:
EXTERNAL()
Here you can build the qualification in a (say temp) field and reference it

I use to create a form Called SHR:Menu and then one of the fields will be External Qualification. This way each and every Menu item/entry has the potential to have it's own qualification. I like Generic code :-p
_________________________
Mayhem, Chaos and Anarchy
My job here is complete!

Top
#137745 - 05/20/07 04:47 PM Re: Dynamic Table Field Qualifications [Re: Shark_7-11]
Carlos Offline
Stealth Member

Registered: 01/24/07
Posts: 82
Loc: London
Thanks guys,
the OR " " works a treat, but can also see the value of an External qualification.

Cheers, appreciate it

Carl



Edited by Carlos (05/20/07 04:47 PM)

Top