User Setup Related Problem

We create a field Catagory is option type(Select,Finance,Purchase,Engineering) and create also three fields are Finance, Purchase, Engineering, all are Boolean type in User Setup Table(91) and Create also three fields are Finance, Purchase, Engineering, all are Boolean type in G/L Account List Page(18) and When run User setup table and one user set Catagory is Finance and Finance is True and close it. And also run G/L Account List Page and select any line such as Land and buildings , and check Finance is true and save it. When run this page then only these line show only that Finance is true. How to solve it.

I using this kind of code given below :

OnOpenPage()

User.RESET;
IF User.GET(USERID) THEN
IF User.Finance=TRUE THEN
//IF Finance=FALSE THEN
//CurrPage.CLOSE;

User.RESET;
IF User.GET(USERID) THEN
//IF User.Finance=TRUE THEN
// SETFILTER(Finance);//=true)// or Purchase=true);//,Engineering,‘True,True,True’);
User.SETRANGE(User.Finance,Finance);
User.SETRANGE(User.Purchase,Purchase);
User.SETRANGE(User.Engineering,Engineering);
IF User.FINDFIRST THEN

User.RESET;
IF User.GET(USERID) THEN
IF User.Finance=TRUE THEN
SETFILTER(Finance,’%1’,TRUE);
IF User.Purchase=TRUE THEN
SETFILTER(Purchase,’%1’,TRUE);
IF User.Engineering=TRUE THEN
SETFILTER(Engineering,’%1’,TRUE);

Hi,
And what is your question?

User.RESET;
User.GET(USERID);
IF User.Catagory=User.Catagory::Finance THEN
BEGIN
RESET;
SETFILTER(Finance,’=%1’,TRUE);
FILTERGROUP(6);
END;

IF User.Catagory=User.Catagory::Purchase THEN
BEGIN
RESET;
SETFILTER(Purchase,’=%1’,TRUE);
FILTERGROUP(6);
END;

IF User.Catagory=User.Catagory::Engineering THEN
BEGIN
RESET;
SETFILTER(Engineering,’=%1’,TRUE);
FILTERGROUP(6);
END;