View selection formula help

Hi all,

I have a view contains all those staffs who have resigned…

Now i have a another view (different database from the previous one), where i want to capture all those staff who have resigned…therefore i use @dbcolum to pull the values from the first view:

Result:=@DbColumn(…);

SELECT (@Contains(Result;Staff)) & (Form = “Form1”)

Result is the list of the name of those staffs who have resigned.

What i want to do is in this view is i want to select those documents whose name is in the first view, so i use @Contains, as long as the staff is the sublist of Result, the @Contains() will return 1.

But i cant get the result i want… I am quite sure the Result contains the correct values as i have tested already.

Anyone helps? Thanks

Subject: View selection formula help…

You can’t use DBColumn in Column or Selection formulas. From the book - “This function does not work in column or selection formulas, or in mail agents.”

Notes is not a relational database, but you’ll be able to do things like that in ND 7 if you store the data in DB2 instead of nsf.

Until ND7 You’ll have to do it the Notes way and first populate a field in the documents in order to select by field value. I’d suggest you create an agent and schedule it once every day.

//Thomas