× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Provided Foreman_Table maintains a user id column for the foreman (i.e.
Foreman_User_Id), an SQL view may still make it easier on your users.
Something like:

CREATE VIEW onlyYou AS
(SELECT field1,field2,field4,field5
FROM Foreman_Table
WHERE USER = Foreman_User_Id)

This view would implement both field and row selection (leveraging the USER
sql special register), and assuming the preparatory work was done using
native security so foreman can only access this view and not the table
directly, it really implements both field AND row level security, which it
seems what your users are after.

Your queries could then go against this view, and you wouldn't need to
expose users to the IF/THEN/ELSE logic.

HTH, Elvis

Celebrating 11-Years of SQL Performance Excellence on IBM i, i5/OS and
OS/400
www.centerfieldtechnology.com


-----Original Message-----
Subject: RE: Field level security

Nope. The client wants to be able to maintain it herself after I finish it.
SEQUEL's scripting tool has been enhanced to allow IF/THEN/ELSE logic. I'll
just retrieve the user id, tie it to the foreman file, then tie the foreman
number to the crew.

Paul Nelson


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.