Filter question

Filter question

Post by KIM969 » Wed, 29 May 1996 04:00:00



Okay... all i want to do is use opal to set a filter on a category field.
normally i right click on the field and type in the filter (its a
tableframe)
i was hoping someone could tell me how to use a button to set the field
filter automatically.  its a paint data base and the category is color
(field name is color),  and i would like to filter to view only those in
the "Blue"
category.  Thank you

 
 
 

Filter question

Post by Jeff Benshetle » Wed, 29 May 1996 04:00:00



> Okay... all i want to do is use opal to set a filter on a category field.
> normally i right click on the field and type in the filter (its a
> tableframe)
> i was hoping someone could tell me how to use a button to set the field
> filter automatically.  its a paint data base and the category is color
> (field name is color),  and i would like to filter to view only those in
> the "Blue"
> category.  Thank youThis may not be 100%, but its a start.

*You have a tableframe on the form, with global scope, lets call it
tblFrm.  
*Create a button on the form.  Using the object Explorer, edit the
pushButton method.

method pushButton(var eventInfo Event)
var
        criteria dynArray[] AnyType
endVar
        criteria["Color"]="Blue"
        tblFrm.setGenFilter(criteria)
endMethod

I'm not certain you can apply a filter directly to a tableframe (I think
so...) but I know you can apply a filter to a TCursor or Table.  If you
apply a filter to a report note that the report must be put into design
mode and then run for the filter to take effect.

 
 
 

Filter question

Post by Thor Warbe » Thu, 30 May 1996 04:00:00



>Okay... all i want to do is use opal to set a filter on a category field.
>normally i right click on the field and type in the filter (its a
>tableframe)
>i was hoping someone could tell me how to use a button to set the field
>filter automatically.  its a paint data base and the category is color
>(field name is color),  and i would like to filter to view only those in
>the "Blue"
>category.  Thank you

Hello Kim,

My need for filtering ( in Pdox 4.5 !! - any newer version is awful
slow so I am stuck to 4.5. And feeling well.)  is provided by this
button:

var
f Form
endVar

attach(f)
Action(DataEndEdit)

f.menuAction(MenuFormOrderRange)
f.sida.MoveTo()
sleep(500)
Action(DataBeginEdit)

Regards
Thor Warberg

 
 
 

1. Merge Replication Row Filters Question

Hi all,

I am replicating a SQL Server 2000 database to SQL CE 2.0 clients (Pocket
PC's).  I am able to filter my "Salespeople" table to the logged in user
(Salespeople.SQLUserName = SUSER_SNAME()).

I want this filter propagate throughout the rest of my database so that the
salesperson will only get the data that he/she needs.  So I set up Row
Filters on all the other tables in the Publication Properties.

The filter only worked on the first joined table though (Salespeople Joined
to SalespeopleCustomers).

All further joins did not filter the records at all (SalespeopleCustomers
Joined to Customers; Customers Joined to X; X Joined to Y, etc.).

Am I correct to assume that my filter should cause all joined tables to be
filtered as well?
According to my results, it seems that a row filter can only be extended to
other tables if they are directly joined to the filtered table. In other
words, if table A is joined to table C through a many-to-many relationship
(table B), can I not filter table C based on criteria in table A?

I hope that was clear.  Can anyone tell me how to filter the entire database
based on the logged in user?

Thanks,

James

2. Finding AutoIncrement Identity from Information Schema

3. Collaborative Filtering questions

4. How do I fit more text in a text box?

5. Filter question

6. Database Connection Problems VB5.0

7. Filter Question

8. Looking for NY MSDBA with InterDev experience

9. SQL 2000 AS Source Table Filter Question

10. Date Filtering question - what is the best approach

11. MDX Sum(Filter) Question

12. Merge replication with dynamic filters question