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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filter (RecordSelection) Object - RAS

Status
Not open for further replies.

PavanKumarU

Programmer
Jan 31, 2003
56
0
0
US
Hi,
Did anyone work with the filter objects in RAS? I am having an issue working with this object. I am able to retrive the filter defined in the report, but not able to append a new filter to the existing one.
Could someone throw some light please?
Thank,
Pavan
 
I have been successful filtering from RAS but I cannot replace the this filter after the first time it is modified.

Here is the code to filter (it assumes you already have a report loaded (clientDoc) and you are logged into the server.)

dim filter
Set filter = clientDoc.DataDefinition.RecordFilter.clone(true)
filter.FreeEditingText="trim({sp_Projects_w_Workelements_and_SpendPlans;1.PM})=""" & rs.fields("initials").value & """"
clientDoc.DataDefController.RecordFilterController.modify filter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top